Add attribution to a ChangeLog entry.
[gnulib.git] / ChangeLog
1 2010-04-09  Jim Meyering  <meyering@redhat.com>
2
3         ftruncate: mark module as obsolete; even MinGW provides it, now
4         * modules/ftruncate (Status): Obsolete.
5         (Notice): Say that.
6         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
7         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
8
9 2010-04-08  Bruno Haible  <bruno@clisp.org>
10
11         Fix side effects from tests-related modules.
12         * modules/dprintf-posix (Comment): New section.
13         * modules/fprintf-posix (Comment): Likewise.
14         * modules/obstack-printf-posix (Comment): Likewise.
15         * modules/printf-posix (Comment): Likewise.
16         * modules/snprintf-posix (Comment): Likewise.
17         * modules/sprintf-posix (Comment): Likewise.
18         * modules/vasnprintf-posix (Comment): Likewise.
19         * modules/vasprintf-posix (Comment): Likewise.
20         * modules/vdprintf-posix (Comment): Likewise.
21         * modules/vfprintf-posix (Comment): Likewise.
22         * modules/vprintf-posix (Comment): Likewise.
23         * modules/vsnprintf-posix (Comment): Likewise.
24         * modules/vsprintf-posix (Comment): Likewise.
25         * modules/xprintf-posix (Comment): Likewise.
26         * modules/xvasprintf-posix (Comment): Likewise.
27         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
28         * modules/floorf-tests (Depends-on): Likewise.
29         * modules/round-tests (Depends-on): Likewise.
30         * modules/roundf-tests (Depends-on): Likewise.
31         * modules/trunc-tests (Depends-on): Likewise.
32         * modules/truncf-tests (Depends-on): Likewise.
33         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
34         'fprintf-posix' module is not present.
35         * tests/test-floorf2.c (check): Likewise.
36         * tests/test-trunc2.c (check): Likewise.
37         * tests/test-truncf2.c (check): Likewise.
38         * tests/test-round2.c (equal): Likewise.
39         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
40
41 2010-04-07  Karl Berry  <karl@gnu.org>
42
43         * config/srclist.txt,
44         * config/srclistvars.sh,
45         * config/srclist-update: doc fixes.
46
47 2010-04-07  Jim Meyering  <meyering@redhat.com>
48
49         maint.mk: add a PATH crosschecking syntax-check rule
50         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
51         Useful if you use a test like the one in help-version (coreutils,
52         diffutils, grep, gzip) that ensures $(VERSION) matches what is
53         printed by prog --version.
54
55 2010-04-06  Bruno Haible  <bruno@clisp.org>
56
57         Fix link error on mingw.
58         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
59         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
60
61 2010-04-06  Bruno Haible  <bruno@clisp.org>
62
63         Assume rmdir exists.
64         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
65
66 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
67
68         doc: update users.txt
69         * users.txt: Add gcal.
70
71 2010-04-06  Jim Meyering  <meyering@redhat.com>
72
73         init.sh: simply unset TMPDIR rather than risking env -i
74         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
75         although it probably works fine on all Unix-based systems, some
76         systems (Cygwin?) cannot tolerate a totally cleared environment.
77         Suggestion from Eric Blake.
78
79 2010-04-06  Jim Meyering  <meyering@redhat.com>
80
81         init.sh: portability fix: use env's POSIX-specified -i option not -u
82         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
83         than unportable env -u.  Solaris 5.11's env lacks support for -u.
84
85 2010-04-05  Bruno Haible  <bruno@clisp.org>
86
87         btowc: Work around Cygwin 1.7.2 bug.
88         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
89         does not map NUL to 0.
90         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
91
92 2010-04-05  Bruno Haible  <bruno@clisp.org>
93
94         Make the multithread modules work on Cygwin 1.7.2.
95         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
96         imported symbols can be declared weak, so that it returns "no" on
97         Cygwin 1.7.2.
98
99 2010-04-05  Bruno Haible  <bruno@clisp.org>
100
101         Use the module 'strncat'.
102         * modules/unistr/u8-strncat (Depends-on): Add strncat.
103
104         Tests for module 'strncat'.
105         * modules/strncat-tests: New file.
106         * tests/test-strncat.c: New file.
107
108         New module 'strncat'.
109         * lib/string.in.h (strncat): New declaration.
110         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
111         * m4/strncat.m4: New file, based on m4/memchr.m4.
112         * modules/strncat: New file.
113         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
114         is declared.
115         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
116         REPLACE_STRNCAT.
117         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
118         REPLACE_STRNCAT.
119         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
120         module.
121         * tests/test-string-c++.cc: Check signature of strncat.
122
123 2010-04-05  Jim Meyering  <meyering@redhat.com>
124
125         xstrtoumax-tests: convert to use init.sh
126         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
127         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
128         Use Exit, not exit.
129         Remove uses of $EXEEXT and "./" to run a program in the current dir.
130
131         xstrtoimax-tests: convert to use init.sh
132         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
133         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
134         Use Exit, not exit.
135         Remove uses of $EXEEXT and "./" to run a program in the current dir.
136
137 2010-04-05  Bruno Haible  <bruno@clisp.org>
138
139         sys_socket: Avoid #define replacements in C++ mode.
140         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
141         warning to the function if possible, rather than #defining the symbol
142         to a dysfunctional alias.
143
144 2010-04-05  Bruno Haible  <bruno@clisp.org>
145
146         fseeko: Fix C++ test error on mingw.
147         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
148         gl_FUNC_FSEEKO.
149         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
150         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
151         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
152         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
153
154 2010-04-05  Bruno Haible  <bruno@clisp.org>
155
156         duplocale: Improve test output.
157         * tests/test-duplocale.c (main): Print reason for skipped test.
158
159 2010-04-05  Bruno Haible  <bruno@clisp.org>
160
161         Assume rmdir exists.
162         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
163         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
164
165 2010-04-05  Bruno Haible  <bruno@clisp.org>
166
167         Fix link error on Solaris 8 with cc.
168         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
169
170 2010-04-05  Bruno Haible  <bruno@clisp.org>
171
172         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
173         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
174
175 2010-04-05  Bruno Haible  <bruno@clisp.org>
176
177         vasprintf: Update documentation.
178         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
179
180 2010-04-05  Bruno Haible  <bruno@clisp.org>
181
182         ptsname: Improve test.
183         * tests/test-ptsname.c (main): Also try the various master names of BSD
184         systems.
185
186 2010-04-05  Bruno Haible  <bruno@clisp.org>
187
188         memchr: Avoid a possible C++ test error.
189         * lib/string.in.h (memchr): Provide declaration if function is missing.
190         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
191         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
192         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
193         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
194
195 2010-04-05  Bruno Haible  <bruno@clisp.org>
196
197         strtok_r: Improve idiom.
198         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
199         AC_LIBOBJ is used.
200
201 2010-04-05  Bruno Haible  <bruno@clisp.org>
202
203         strdup: Improve idiom.
204         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
205         AC_LIBOBJ is used.
206         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
207         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
208         when AC_LIBOBJ is used.
209
210 2010-04-05  Bruno Haible  <bruno@clisp.org>
211
212         mbsinit, mbrtowc, wcrtomb: Improve idioms.
213         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
214         don't set REPLACE_MBSINIT to 1.
215         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
216         don't set REPLACE_MBRTOWC to 1.
217         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
218         exist, don't set REPLACE_MBSRTOWCS to 1.
219         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
220         exist, don't set REPLACE_MBSNRTOWCS to 1.
221         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
222         don't set REPLACE_WCRTOMB to 1.
223         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
224         exist, don't set REPLACE_WCSRTOMBS to 1.
225         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
226         exist, don't set REPLACE_WCSNRTOMBS to 1.
227
228 2010-04-05  Bruno Haible  <bruno@clisp.org>
229
230         ldexpl: Improve idiom.
231         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
232         make sure to set HAVE_DECL_LDEXPL to 0.
233
234 2010-04-05  Jim Meyering  <meyering@redhat.com>
235
236         xstrtol-tests: convert to use init.sh
237         * modules/xstrtol-tests (Files): Add tests/init.sh.
238         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
239         Use Exit, not exit.
240         Remove uses of $EXEEXT and "./" to run a program in the current dir.
241
242         atexit-tests: convert to use init.sh
243         * modules/atexit-tests (Files): Add tests/init.sh.
244         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
245         Use Exit, not exit.
246         Remove uses of $EXEEXT and "./" to run a program in the current dir.
247
248         init.sh: fix typo
249         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
250
251         init.sh: make it easier for a test script to write to the tty, ...
252         when using automake's parallel-tests mode.
253         * tests/init.sh (stderr_fileno_): Define overridable variable.
254         (warn_): New function, to use it.
255         (fail_, skip_, framework_failure_): Use warn_.
256
257 2010-04-04  Bruno Haible  <bruno@clisp.org>
258
259         btowc: Avoid warning.
260         * lib/btowc.c: Include <stdlib.h>.
261         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
262
263 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
264             Bruno Haible  <bruno@clisp.org>
265
266         wchar: Port to NetBSD 1.5.
267         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
268         * lib/wctype.in.h (WEOF): Likewise.
269
270 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
271             Bruno Haible  <bruno@clisp.org>
272
273         Port extended stdio to NetBSD 1.5.
274         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
275         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
276         older.
277
278 2010-04-04  Bruno Haible  <bruno@clisp.org>
279
280         string: Remove unused substitution.
281         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
282         HAVE_DECL_STRERROR.
283         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
284
285 2010-04-04  Bruno Haible  <bruno@clisp.org>
286
287         strtod: Avoid a possible C++ test error.
288         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
289         set REPLACE_STRTOD.
290
291 2010-04-04  Bruno Haible  <bruno@clisp.org>
292
293         strerror: Update documentation.
294         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
295
296 2010-04-04  Bruno Haible  <bruno@clisp.org>
297
298         stdio: Fix some C++ test errors on Solaris 8 with GCC.
299         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
300         _GL_CXXALIAS_SYS_CAST.
301
302 2010-04-04  Bruno Haible  <bruno@clisp.org>
303
304         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
305         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
306         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
307         REPLACE_FREXPL to 1.
308         * doc/posix-functions/frexpl.texi: Update documentation.
309
310 2010-04-04  Bruno Haible  <bruno@clisp.org>
311
312         math: Fix some C++ test errors on Solaris 8 and Cygwin.
313         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
314
315 2010-04-04  Bruno Haible  <bruno@clisp.org>
316
317         Implement nanosleep for native Windows.
318         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
319
320 2010-04-04  Bruno Haible  <bruno@clisp.org>
321
322         math: Fix some C++ test errors on Solaris 8.
323         * lib/math.in.h (truncf, trunc): Use simpler idiom.
324
325 2010-04-04  Bruno Haible  <bruno@clisp.org>
326
327         math: Fix some C++ test errors on Cygwin.
328         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
329         truncl): Provide declaration if the system does not have it.
330         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
331         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
332         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
333         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
334         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
335         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
336         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
337         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
338         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
339         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
340         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
341         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
342         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
343         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
344         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
345         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
346         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
347         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
348         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
349         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
350         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
351         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
352
353 2010-04-04  Bruno Haible  <bruno@clisp.org>
354
355         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
356         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
357         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
358         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
359         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
360         * m4/isinf.m4 (gl_ISINF): Likewise.
361         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
362
363 2010-04-04  Bruno Haible  <bruno@clisp.org>
364
365         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
366         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
367
368 2010-04-04  Bruno Haible  <bruno@clisp.org>
369
370         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
371         * modules/tmpfile (configure.ac): Update.
372
373         tmpfile: Fix C++ test error on mingw.
374         * lib/stdio.in.h (tmpfile): New declaration.
375         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
376         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
377         * modules/tmpfile (Depends-on): Add stdio.
378         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
379         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
380         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
381         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
382         REPLACE_TMPFILE.
383         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
384
385 2010-04-04  Bruno Haible  <bruno@clisp.org>
386
387         ioctl: Fix C++ test error on mingw.
388         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
389         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
390         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
391
392 2010-04-03  Bruno Haible  <bruno@clisp.org>
393
394         wcwidth: Fix C++ test error on mingw.
395         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
396         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
397         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
398
399 2010-04-03  Bruno Haible  <bruno@clisp.org>
400
401         nanosleep: Fix C++ test error on mingw.
402         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
403         * lib/time.in.h (nanosleep): Use modern idiom.
404         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
405         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
406         REPLACE_NANOSLEEP to 1.
407         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
408         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
409
410 2010-04-03  Bruno Haible  <bruno@clisp.org>
411
412         strptime: Fix C++ test error on mingw.
413         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
414         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
415         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
416         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
417         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
418         not REPLACE_STRPTIME.
419         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
420         REPLACE_STRPTIME.
421
422 2010-04-03  Bruno Haible  <bruno@clisp.org>
423
424         timegm: Fix C++ test error on mingw.
425         * lib/time.in.h (timegm): Use modern idiom.
426         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
427         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
428         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
429         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
430
431 2010-04-03  Bruno Haible  <bruno@clisp.org>
432
433         timegm: Assume declaration if function exists.
434         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
435         if it exists. Don't clobber ac_cv_func_timegm.
436
437 2010-04-03  Bruno Haible  <bruno@clisp.org>
438
439         time_r: Fix C++ test error on mingw.
440         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
441         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
442         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
443         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
444         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
445
446 2010-04-03  Bruno Haible  <bruno@clisp.org>
447
448         time_r: Minor updates.
449         * modules/time_r (Description): Mention the provided functions.
450         * lib/time_r.c: Don't include <string.h>.
451         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
452         * doc/posix-functions/localtime_r.texi: Likewise.
453
454 2010-04-03  Bruno Haible  <bruno@clisp.org>
455
456         time: Fix regression introduced on 2010-03-08.
457         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
458         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
459
460 2010-04-03  Jim Meyering  <meyering@redhat.com>
461
462         maint.mk: don't silently disable project-specific syntax-check rules
463         * top/maint.mk (_prohibit_regexp): Define, to help people realize
464         that they need to convert their project-specific syntax-check rules
465         to use the new _sc_search_regexp.
466
467 2010-04-03  Bruno Haible  <bruno@clisp.org>
468
469         fchdir: Fix regression introduced on 2010-03-08.
470         * lib/unistd.in.h (fchdir): Fix declaration.
471         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
472         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
473         REPLACE_FCHDIR.
474         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
475         REPLACE_FCHDIR.
476
477 2010-04-03  Bruno Haible  <bruno@clisp.org>
478
479         getpagesize: Fix C++ test error on mingw.
480         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
481         system does not declare the function.
482         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
483         declared.
484         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
485         HAVE_DECL_GETPAGESIZE.
486         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
487
488 2010-04-03  Bruno Haible  <bruno@clisp.org>
489
490         stdio: Make C++ tests work on mingw.
491         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
492         does not declare the function.
493
494 2010-04-03  Bruno Haible  <bruno@clisp.org>
495
496         ftello: Fix C++ test error on mingw.
497         * lib/stdio.in.h (ftello): Use modern idiom.
498         * lib/ftello.c (ftello): Renamed from rpl_ftello.
499         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
500         is missing and that it needs to be replaced.
501         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
502         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
503         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
504
505 2010-04-03  Bruno Haible  <bruno@clisp.org>
506
507         fseeko: Fix C++ test error on mingw.
508         * lib/stdio.in.h (fseeko): Use modern idiom.
509         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
510         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
511         is missing and that it needs to be replaced.
512         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
513         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
514         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
515
516 2010-04-03  Bruno Haible  <bruno@clisp.org>
517
518         mkstemp: Fix C++ test error on mingw.
519         * lib/stdlib.in.h (mkstemp): Use modern idiom.
520         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
521         function is missing and that it needs to be replaced.
522         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
523         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
524
525 2010-04-03  Bruno Haible  <bruno@clisp.org>
526
527         stpncpy: Fix C++ test error on mingw.
528         * lib/string.in.h (stpncpy): Use modern idiom.
529         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
530         function is missing and that it needs to be replaced.
531         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
532         REPLACE_STPNCPY.
533         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
534
535 2010-04-03  Bruno Haible  <bruno@clisp.org>
536
537         sys_stat: Fix C++ test error on mingw.
538         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
539         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
540
541 2010-04-03  Bruno Haible  <bruno@clisp.org>
542
543         pty: Update doc.
544         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
545
546 2010-04-03  Bruno Haible  <bruno@clisp.org>
547
548         unistd: Fix C++ test error on mingw.
549         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
550
551 2010-04-03  Bruno Haible  <bruno@clisp.org>
552
553         Update doc regarding mingw.
554         * doc/glibc-functions/openpty.texi: Update regarding mingw.
555         * doc/glibc-functions/login_tty.texi: Likewise.
556         * doc/glibc-functions/forkpty.texi: Likewise.
557
558 2010-04-03  Bruno Haible  <bruno@clisp.org>
559
560         stdlib: Avoid compilation failure of c-strtold on mingw.
561         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
562
563 2010-04-03  Bruno Haible  <bruno@clisp.org>
564
565         locale: Make C++ tests work on Cygwin and mingw.
566         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
567         cannot provide the function.
568         Reported by Simon Josefsson.
569
570 2010-04-03  Bruno Haible  <bruno@clisp.org>
571
572         localename: Port to MacOS X 10.6.
573         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
574         memory layout of the locales in MacOS X 10.6 as well.
575         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
576
577 2010-04-02  Bruno Haible  <bruno@clisp.org>
578
579         gnulib-tool: Ensure that long-running tests are executed last.
580         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
581         running tests after the one for the other tests.
582
583 2010-04-02  Bruno Haible  <bruno@clisp.org>
584
585         gnulib-tool: Ensure the tests in the main directory are executed first.
586         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
587         start with the current directory.
588
589 2010-04-02  Bruno Haible  <bruno@clisp.org>
590
591         Tests for module 'havelib', moved here from GNU gettext.
592         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
593         modifications.
594         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
595         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
596         with modifications.
597         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
598         modifications.
599         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
600         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
601         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
602         with modifications.
603         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
604         with modifications.
605         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
606         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
607         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
608         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
609         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
610         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
611         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
612         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
613         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
614         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
615         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
616         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
617         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
618         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
619         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
620         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
621         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
622         with modifications.
623         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
624         with modifications.
625         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
626         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
627         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
628         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
629         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
630         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
631         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
632         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
633         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
634         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
635         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
636         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
637         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
638         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
639         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
640         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
641         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
642         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
643         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
644         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
645         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
646         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
647         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
648         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
649         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
650         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
651         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
652         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
653         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
654         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
655         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
656         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
657         * tests/havelib/rpathx/rpathx.c: New file, from
658         gettext/autoconf-lib-link.
659         * tests/havelib/rpathx/Makefile.am: New file, from
660         gettext/autoconf-lib-link.
661         * tests/havelib/rpathx/configure.ac: New file, from
662         gettext/autoconf-lib-link with modifications.
663         * tests/havelib/rpathy/rpathy.c: New file, from
664         gettext/autoconf-lib-link.
665         * tests/havelib/rpathy/Makefile.am: New file, from
666         gettext/autoconf-lib-link.
667         * tests/havelib/rpathy/configure.ac: New file, from
668         gettext/autoconf-lib-link with modifications.
669         * tests/havelib/rpathz/rpathz.c: New file, from
670         gettext/autoconf-lib-link.
671         * tests/havelib/rpathz/Makefile.am: New file, from
672         gettext/autoconf-lib-link.
673         * tests/havelib/rpathz/configure.ac: New file, from
674         gettext/autoconf-lib-link with modifications.
675         * tests/havelib/rpathlx/usex.c: New file, from
676         gettext/autoconf-lib-link.
677         * tests/havelib/rpathlx/Makefile.am: New file, from
678         gettext/autoconf-lib-link.
679         * tests/havelib/rpathlx/configure.ac: New file, from
680         gettext/autoconf-lib-link with modifications.
681         * tests/havelib/rpathly/usey.c: New file, from
682         gettext/autoconf-lib-link.
683         * tests/havelib/rpathly/Makefile.am: New file, from
684         gettext/autoconf-lib-link.
685         * tests/havelib/rpathly/configure.ac: New file, from
686         gettext/autoconf-lib-link with modifications.
687         * tests/havelib/rpathlz/usez.c: New file, from
688         gettext/autoconf-lib-link.
689         * tests/havelib/rpathlz/Makefile.am: New file, from
690         gettext/autoconf-lib-link.
691         * tests/havelib/rpathlz/configure.ac: New file, from
692         gettext/autoconf-lib-link with modifications.
693         * tests/havelib/rpathlyx/usey.c: New file, from
694         gettext/autoconf-lib-link.
695         * tests/havelib/rpathlyx/Makefile.am: New file, from
696         gettext/autoconf-lib-link.
697         * tests/havelib/rpathlyx/configure.ac: New file, from
698         gettext/autoconf-lib-link with modifications.
699         * tests/havelib/rpathlzyx/usez.c: New file, from
700         gettext/autoconf-lib-link.
701         * tests/havelib/rpathlzyx/Makefile.am: New file, from
702         gettext/autoconf-lib-link.
703         * tests/havelib/rpathlzyx/configure.ac: New file, from
704         gettext/autoconf-lib-link with modifications.
705         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
706         with modifications.
707
708 2010-04-02  Bruno Haible  <bruno@clisp.org>
709
710         gnulib-tool: Create distributed built sources also for the tests.
711         * gnulib-tool (func_create_testdir): Also generate distributed built
712         sources in the tests directory.
713
714 2010-04-02  Bruno Haible  <bruno@clisp.org>
715
716         gnulib-tool: Obey user's environment variables.
717         * gnulib-tool (func_create_testdir): When creating built sources,
718         respect the environment variables for autoconf, automake, etc. given by
719         the user.
720
721 2010-04-02  Bruno Haible  <bruno@clisp.org>
722
723         gnulib-tool: Provide the value of --m4-base to modules.
724         * gnulib-tool (func_import, func_create_testdir): Emit a definition
725         of gl_m4_base.
726
727 2010-04-02  Eric Blake  <eblake@redhat.com>
728
729         maint.mk: fix some fallout
730         * NEWS: Document the incompatible change, and its effect on cfg.mk.
731         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
732
733 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
734
735         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
736         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
737         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
738         (sc_cast_of_x_alloc_return_value): Likewise.
739         (sc_cast_of_alloca_return_value): Likewise.
740         (sc_space_tab): Likewise.
741         (sc_prohibit_atoi_atof): Likewise.
742         (sc_prohibit_magic_number_exit): Likewise.
743         (sc_error_exit_success): Likewise.
744         (sc_file_system): Likewise.
745         (sc_prohibit_have_config_h): Likewise.
746         (sc_require_config_h): Likewise.
747         (sc_prohibit_HAVE_MBRTOWC): Likewise.
748         (sc_obsolete_symbols): Likewise.
749         (sc_changelog): Likewise.
750         (sc_program_name): Likewise.
751         (sc_the_the): Likewise.
752         (sc_trailing_blank): Likewise.
753         (sc_two_space_separator_in_usage): Likewise.
754         (sc_useless_cpp_parens): Likewise.
755         (sc_GPL_version): Likewise.
756         (sc_GFDL_version): Likewise.
757         (sc_texinfo_acronym): Likewise.
758         (sc_prohibit_cvs_keyword): Likewise.
759         (sc_prohibit_stat_st_blocks): Likewise.
760         (sc_prohibit_S_IS_definition): Likewise.
761         (sc_redundant_const): Likewise.
762         (sc_makefile_TAB_only_indentation): Likewise.
763         (sc_m4_quote_check): Likewise.
764         (sc_makefile_path_separator_check): Likewise.
765         (sc_copyright_check): Likewise.
766         (sc_Wundef_boolean): Likewise.
767         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
768
769         maint.mk: match 0 or more whitespace-before-function-call '('
770         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
771         that have zero or two-and-more spaces between the function name
772         and the open parenthesis.
773         (sc_error_message_warn_fatal): Likewise.
774         (sc_error_message_uppercase): Likewise.
775         (sc_error_message_period): Likewise.
776
777 2010-03-31  Eric Blake  <eblake@redhat.com>
778
779         maint.mk: check for [ as well as test
780         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
781         Based on a libvirt report by Matthias Bolte.
782
783         gnumakefile: don't squelch _version output
784         * top/GNUmakefile (_version): Create one-shot dependency rather
785         than using $(shell) when version must be regenerated.
786         (_autoreconf): Run verbosely, by default.
787
788         sys_time: avoid compiler warnings
789         * lib/sys_time.in.h (includes): Ensure gcc pragma is
790         unconditional, fixing regression from 2010-03-29.
791         Reported by Simon Josefsson.
792
793 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
794
795         maint.mk: s/_header_without_use/_sc_header_without_use/
796         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
797         (sc_prohibit_assert_without_use): Use the new name.
798         (sc_prohibit_close_stream_without_use): Likewise.
799         (sc_prohibit_getopt_without_use): Likewise.
800         (sc_prohibit_quotearg_without_use): Likewise.
801         (sc_prohibit_quote_without_use): Likewise.
802         (sc_prohibit_long_options_without_use): Likewise.
803         (sc_prohibit_inttostr_without_use): Likewise.
804         (sc_prohibit_ignore_value_without_use): Likewise.
805         (sc_prohibit_error_without_use): Likewise.
806         (sc_prohibit_xalloc_without_use): Likewise.
807         (sc_prohibit_hash_without_use): Likewise.
808         (sc_prohibit_hash_pjw_without_use): Likewise.
809         (sc_prohibit_safe_read_without_use): Likewise.
810         (sc_prohibit_argmatch_without_use): Likewise.
811         (sc_prohibit_canonicalize_without_use): Likewise.
812         (sc_prohibit_root_dev_ino_without_use): Likewise.
813         (sc_prohibit_openat_without_use): Likewise.
814         (sc_prohibit_c_ctype_without_use): Likewise.
815         (sc_prohibit_signal_without_use): Likewise.
816         (sc_prohibit_intprops_without_use): Likewise.
817
818 2010-03-30  Eric Blake  <eblake@redhat.com>
819
820         maint: improve module indicators
821         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
822         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
823         columns, and avoid extra macro expansion.
824
825         fdopendir: work around FreeBSD bug
826         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
827         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
828         * modules/dirent (Makefile.am): Substitute it.
829         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
830         declaration.
831         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
832         fix.
833         Reported by Christian Weisgerber <naddy@mips.inka.de>.
834
835 2010-03-29  Bruno Haible  <bruno@clisp.org>
836
837         Emit #pragma system_header after the inclusion guard, not before.
838         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
839         guard that spans the entire file, not before. This enables an
840         optimization in GCC's preprocessor.
841         * lib/ctype.in.h: Likewise.
842         * lib/dirent.in.h: Likewise.
843         * lib/errno.in.h: Likewise.
844         * lib/float.in.h: Likewise.
845         * lib/getopt.in.h: Likewise.
846         * lib/iconv.in.h: Likewise.
847         * lib/langinfo.in.h: Likewise.
848         * lib/locale.in.h: Likewise.
849         * lib/math.in.h: Likewise.
850         * lib/netdb.in.h: Likewise.
851         * lib/netinet_in.in.h: Likewise.
852         * lib/pty.in.h: Likewise.
853         * lib/sched.in.h: Likewise.
854         * lib/se-selinux.in.h: Likewise.
855         * lib/search.in.h: Likewise.
856         * lib/spawn.in.h: Likewise.
857         * lib/stdarg.in.h: Likewise.
858         * lib/stdint.in.h: Likewise.
859         * lib/string.in.h: Likewise.
860         * lib/strings.in.h: Likewise.
861         * lib/sys_file.in.h: Likewise.
862         * lib/sys_ioctl.in.h: Likewise.
863         * lib/sys_time.in.h: Likewise.
864         * lib/sys_times.in.h: Likewise.
865         * lib/sys_utsname.in.h: Likewise.
866         * lib/sys_wait.in.h: Likewise.
867         * lib/sysexits.in.h: Likewise.
868         * lib/wctype.in.h: Likewise.
869
870 2010-03-28  James Youngman  <jay@gnu.org>
871
872         save-cwd: don't leak a file descriptor when the caller execs.
873         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
874         saved file descriptor.
875         * modules/save-cwd (Depends-on): Depend on cloexec.
876
877 2010-03-29  Bruno Haible  <bruno@clisp.org>
878
879         Remove vestiges of fts-lgpl module.
880         * lib/fts_.h: Assume GNULIB_FTS is 1.
881         * lib/fts.c: Likewise.
882         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
883
884 2010-03-28  Bruno Haible  <bruno@clisp.org>
885
886         Fix definition of tests witness macro.
887         * gnulib-tool (func_import): Fix definition of witness macro.
888
889 2010-03-28  Bruno Haible  <bruno@clisp.org>
890
891         Fix ioctl's protoype on glibc systems.
892         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
893         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
894         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
895         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
896         signature. If not, arrange to replace the ioctl function.
897         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
898         REPLACE_IOCTL.
899         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
900         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
901         Reported by Ludovic Courtès <ludo@gnu.org>.
902
903 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
904
905         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
906         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
907         made it so grep -r --include=GLOB* ... did not work.
908
909 2010-03-26  Jim Meyering  <meyering@redhat.com>
910             Eric Blake  <eblake@redhat.com>
911
912         maint.mk: prohibit use of test's -o and -a operators
913         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
914
915 2010-03-28  Bruno Haible  <bruno@clisp.org>
916
917         Remove unused GNULIB_XYZ macro definitions.
918         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
919         invocation.
920
921 2010-03-28  Bruno Haible  <bruno@clisp.org>
922
923         Mark privileged tests modules.
924         * modules/idpriv-drop-tests (Status): New section.
925         * modules/idpriv-droptemp-tests (Status): New section.
926
927 2010-03-28  Bruno Haible  <bruno@clisp.org>
928
929         Split C++ tests into separate tests modules.
930         * modules/dirent-c++-tests: New file, extracted from
931         modules/dirent-tests.
932         * modules/dirent-tests: Depend on it.
933         * modules/fcntl-h-c++-tests: New file, extracted from
934         modules/fcntl-h-tests.
935         * modules/fcntl-h-tests: Depend on it.
936         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
937         * modules/glob-tests: Depend on it.
938         * modules/iconv-h-c++-tests: New file, extracted from
939         modules/iconv-h-tests.
940         * modules/iconv-h-tests: Depend on it.
941         * modules/langinfo-c++-tests: New file, extracted from
942         modules/langinfo-tests.
943         * modules/langinfo-tests: Depend on it.
944         * modules/locale-c++-tests: New file, extracted from
945         modules/locale-tests.
946         * modules/locale-tests: Depend on it.
947         * modules/math-c++-tests: New file, extracted from modules/math-tests.
948         * modules/math-tests: Depend on it.
949         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
950         * modules/pty-tests: Depend on it.
951         * modules/search-c++-tests: New file, extracted from
952         modules/search-tests.
953         * modules/search-tests: Depend on it.
954         * modules/signal-c++-tests: New file, extracted from
955         modules/signal-tests.
956         * modules/signal-tests: Depend on it.
957         * modules/spawn-c++-tests: New file, extracted from
958         modules/spawn-tests.
959         * modules/spawn-tests: Depend on it.
960         * modules/stdio-c++-tests: New file, extracted from
961         modules/stdio-tests.
962         * modules/stdio-tests: Depend on it.
963         * modules/stdlib-c++-tests: New file, extracted from
964         modules/stdlib-tests.
965         * modules/stdlib-tests: Depend on it.
966         * modules/string-c++-tests: New file, extracted from
967         modules/string-tests.
968         * modules/string-tests: Depend on it.
969         * modules/sys_ioctl-c++-tests: New file, extracted from
970         modules/sys_ioctl-tests.
971         * modules/sys_ioctl-tests: Depend on it.
972         * modules/sys_select-c++-tests: New file, extracted from
973         modules/sys_select-tests.
974         * modules/sys_select-tests: Depend on it.
975         * modules/sys_socket-c++-tests: New file, extracted from
976         modules/sys_socket-tests.
977         * modules/sys_socket-tests: Depend on it.
978         * modules/sys_stat-c++-tests: New file, extracted from
979         modules/sys_stat-tests.
980         * modules/sys_stat-tests: Depend on it.
981         * modules/sys_time-c++-tests: New file, extracted from
982         modules/sys_time-tests.
983         * modules/sys_time-tests: Depend on it.
984         * modules/time-c++-tests: New file, extracted from modules/time-tests.
985         * modules/time-tests: Depend on it.
986         * modules/unistd-c++-tests: New file, extracted from
987         modules/unistd-tests.
988         * modules/unistd-tests: Depend on it.
989         * modules/wchar-c++-tests: New file, extracted from
990         modules/wchar-tests.
991         * modules/wchar-tests: Depend on it.
992         * modules/wctype-c++-tests: New file, extracted from
993         modules/wctype-tests.
994         * modules/wctype-tests: Depend on it.
995         Reported by Simon Josefsson.
996
997 2010-03-28  Bruno Haible  <bruno@clisp.org>
998
999         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
1000         * gnulib-tool (func_exists_module): New function, extracted from
1001         func_verify_module.
1002         (func_verify_module): Use it.
1003         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
1004         'foo' only if 'foo' exists.
1005         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
1006         module.
1007
1008 2010-03-28  Bruno Haible  <bruno@clisp.org>
1009
1010         gnulib-tool: Add support for special categories of tests.
1011         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
1012         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
1013         (func_usage): Document them.
1014         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
1015         inc_unportable_tests, inc_all_tests): New variables.
1016         (func_acceptable): Consider these variables.
1017         (func_modules_transitive_closure): Make it work when the 'Status' field
1018         consists of multiple words.
1019         (func_import): Store and restore the values of inc_cxx_tests,
1020         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
1021         inc_all_tests in gnulib-comp.m4.
1022         (func_create_testdir): Set inc_all_tests to true.
1023         * doc/gnulib.texi (Extra tests modules): New section.
1024         Suggested by Jim Meyering.
1025
1026 2010-03-28  Bruno Haible  <bruno@clisp.org>
1027
1028         ansi-c++-opt: Allow turning off the C++ build by default.
1029         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
1030         gl_CXX_CHOICE_DEFAULT_NO is defined.
1031         Requested by Eric Blake.
1032
1033 2010-03-28  Bruno Haible  <bruno@clisp.org>
1034
1035         unistd: Avoid #define replacements in C++ mode.
1036         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
1037         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
1038         setsockopt, shutdown, select): In C++, attach a warning to the function
1039         if possible, rather than #defining the symbol to a dysfunctional alias.
1040         Reported by John W. Eaton <jwe@gnu.org>.
1041
1042 2010-03-28  Bruno Haible  <bruno@clisp.org>
1043
1044         Fix link errors on mingw.
1045         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
1046         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
1047         $(LIBSOCKET).
1048         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
1049         $(LIBSOCKET).
1050
1051 2010-03-28  Bruno Haible  <bruno@clisp.org>
1052             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1053
1054         lib-ignore: Determine different options for different compilers.
1055         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
1056         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
1057         Add comments.
1058         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
1059         * NEWS: Mention the change.
1060
1061 2010-03-27  Bruno Haible  <bruno@clisp.org>
1062
1063         Remove unused GNULIB_XYZ macro definitions.
1064         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
1065         * modules/fseek (configure.ac): Likewise.
1066         * modules/ioctl (configure.ac): Likewise.
1067         * modules/open (configure.ac): Likewise.
1068         * modules/stdlib-safer (configure.ac): Likewise.
1069
1070 2010-03-27  Bruno Haible  <bruno@clisp.org>
1071
1072         Add a remark about certain modules.
1073         * modules/malloc (Comment): New section.
1074         * modules/realloc (Comment): Likewise.
1075         * modules/sigpipe (Comment): Likewise.
1076
1077 2010-03-27  Bruno Haible  <bruno@clisp.org>
1078
1079         Resolve conflict between the two kinds of module indicators.
1080         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
1081         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
1082         * modules/canonicalize (configure.ac): Invoke
1083         gl_MODULE_INDICATOR_FOR_TESTS.
1084         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
1085         GNULIB_XYZ.
1086         * tests/test-dirent-c++.cc: Likewise.
1087         * tests/test-dirent-safer.c: Likewise.
1088         * tests/test-dup2.c: Likewise.
1089         * tests/test-fchdir.c: Likewise.
1090         * tests/test-fcntl-h-c++.cc: Likewise.
1091         * tests/test-getopt.c: Likewise.
1092         * tests/test-getopt.h: Likewise.
1093         * tests/test-langinfo-c++.cc: Likewise.
1094         * tests/test-locale-c++.cc: Likewise.
1095         * tests/test-math-c++.cc: Likewise.
1096         * tests/test-pty-c++.cc: Likewise.
1097         * tests/test-search-c++.cc: Likewise.
1098         * tests/test-signal-c++.cc: Likewise.
1099         * tests/test-spawn-c++.cc: Likewise.
1100         * tests/test-stdio-c++.cc: Likewise.
1101         * tests/test-stdlib-c++.cc: Likewise.
1102         * tests/test-string-c++.cc: Likewise.
1103         * tests/test-sys_ioctl-c++.cc: Likewise.
1104         * tests/test-sys_select-c++.cc: Likewise.
1105         * tests/test-sys_socket-c++.cc: Likewise.
1106         * tests/test-sys_stat-c++.cc: Likewise.
1107         * tests/test-sys_time-c++.cc: Likewise.
1108         * tests/test-time-c++.cc: Likewise.
1109         * tests/test-unistd-c++.cc: Likewise.
1110         * tests/test-wchar-c++.cc: Likewise.
1111         * tests/uninorm/test-u8-nfc.c: Likewise.
1112         * tests/uninorm/test-u8-nfd.c: Likewise.
1113         * tests/uninorm/test-u8-nfkc.c: Likewise.
1114         * tests/uninorm/test-u8-nfkd.c: Likewise.
1115         * tests/uninorm/test-u16-nfc.c: Likewise.
1116         * tests/uninorm/test-u16-nfd.c: Likewise.
1117         * tests/uninorm/test-u16-nfkc.c: Likewise.
1118         * tests/uninorm/test-u16-nfkd.c: Likewise.
1119         * tests/uninorm/test-u32-nfc.c: Likewise.
1120         * tests/uninorm/test-u32-nfc-big.c: Likewise.
1121         * tests/uninorm/test-u32-nfd.c: Likewise.
1122         * tests/uninorm/test-u32-nfd-big.c: Likewise.
1123         * tests/uninorm/test-u32-nfkc.c: Likewise.
1124         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
1125         * tests/uninorm/test-u32-nfkd.c: Likewise.
1126         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
1127         * tests/uninorm/test-u32-normalize-big.c: Likewise.
1128
1129 2010-03-27  Bruno Haible  <bruno@clisp.org>
1130
1131         Distinguish two kinds of module indicators.
1132         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
1133         gl_MODULE_INDICATOR.
1134         (gl_MODULE_INDICATOR): New macro.
1135         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
1136         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
1137         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
1138         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
1139         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
1140         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
1141         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
1142         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
1143         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
1144         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
1145         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
1146         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
1147         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
1148         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
1149         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
1150         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
1151         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
1152         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
1153         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
1154         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
1155         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
1156         * modules/cloexec (configure.ac): Likewise.
1157         * modules/getopt-gnu (configure.ac): Likewise.
1158         * modules/uninorm/u8-normalize (configure.ac): Likewise.
1159         * modules/uninorm/u16-normalize (configure.ac): Likewise.
1160         * modules/uninorm/u32-normalize (configure.ac): Likewise.
1161         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
1162
1163 2010-03-27  Bruno Haible  <bruno@clisp.org>
1164
1165         New module description field 'Comment'.
1166         * gnulib-tool: New option --extract-comment.
1167         (func_usage): Document it.
1168         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
1169         (func_get_comment): New function.
1170         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
1171
1172 2010-03-27  Bruno Haible  <bruno@clisp.org>
1173
1174         Addendum to 2010-02-07 commit.
1175         * gnulib-tool (func_usage): Document --extract-applicability option.
1176
1177 2010-03-27  Bruno Haible  <bruno@clisp.org>
1178
1179         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
1180         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
1181         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
1182         rather than link errors.
1183
1184 2010-03-27  Bruno Haible  <bruno@clisp.org>
1185
1186         Avoid side effects from tests-related modules on the compilation of lib.
1187         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
1188         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
1189         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
1190         parameter. Emit into AM_CPPFLAGS a definition of the designated C
1191         macro.
1192         (func_import): Define a witness macro. Assign it a value that depends
1193         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
1194         tests-related modules.
1195         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
1196         Reported by Jim Meyering.
1197
1198 2010-03-27  Bruno Haible  <bruno@clisp.org>
1199
1200         Factorize common .m4 code.
1201         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
1202         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
1203         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
1204         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
1205         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
1206         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
1207         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
1208         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
1209         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
1210         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
1211         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
1212         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
1213         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
1214         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
1215         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
1216         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
1217         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
1218         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
1219         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
1220         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
1221         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
1222         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
1223         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
1224         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
1225         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
1226         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
1227         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
1228         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
1229         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
1230         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
1231         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
1232         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
1233
1234 2010-03-27  Bruno Haible  <bruno@clisp.org>
1235
1236         Fix a compilation error on Cygwin with g++ >= 4.3.
1237         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
1238         if it is undefined or if we alias it to chmod.
1239         (lstat): Don't warn about the use of this function if it is undefined
1240         or if we alias it to stat.
1241         Reported by Simon Josefsson.
1242
1243 2010-03-27  Bruno Haible  <bruno@clisp.org>
1244
1245         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
1246         * modules/getlogin (configure.ac): Update.
1247
1248         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
1249         * modules/getlogin_r (configure.ac): Update.
1250
1251         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
1252         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
1253         * modules/inet_ntop (configure.ac): Update.
1254
1255         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
1256         * modules/inet_pton (configure.ac): Update.
1257
1258         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
1259         * modules/mbslen (configure.ac): Update.
1260
1261         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
1262         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
1263         * modules/forkpty (configure.ac): Update.
1264         * modules/openpty (configure.ac): Update.
1265
1266 2010-03-26  Simon Josefsson  <simon@josefsson.org>
1267
1268         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
1269         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
1270
1271 2010-03-25  Eric Blake  <eblake@redhat.com>
1272
1273         maint: use pragma consistently across replacement headers
1274         * lib/ctype.in.h (system_header): Hoist for consistent placement.
1275         * lib/dirent.in.h (system_header): Likewise.
1276         * lib/errno.in.h (system_header): Likewise.
1277         * lib/float.in.h (system_header): Likewise.
1278         * lib/getopt.in.h (system_header): Likewise.
1279         * lib/iconv.in.h (system_header): Likewise.
1280         * lib/inttypes.in.h (system_header): Likewise.
1281         * lib/langinfo.in.h (system_header): Likewise.
1282         * lib/locale.in.h (system_header): Likewise.
1283         * lib/math.in.h (system_header): Likewise.
1284         * lib/netdb.in.h (system_header): Likewise.
1285         * lib/netinet_in.in.h (system_header): Likewise.
1286         * lib/pty.in.h (system_header): Likewise.
1287         * lib/sched.in.h (system_header): Likewise.
1288         * lib/se-selinux.in.h (system_header): Likewise.
1289         * lib/search.in.h (system_header): Likewise.
1290         * lib/spawn.in.h (system_header): Likewise.
1291         * lib/stdarg.in.h (system_header): Likewise.
1292         * lib/stdint.in.h (system_header): Likewise.
1293         * lib/string.in.h (system_header): Likewise.
1294         * lib/strings.in.h (system_header): Likewise.
1295         * lib/sys_file.in.h (system_header): Likewise.
1296         * lib/sys_ioctl.in.h (system_header): Likewise.
1297         * lib/sys_socket.in.h (system_header): Likewise.
1298         * lib/sys_times.in.h (system_header): Likewise.
1299         * lib/sys_utsname.in.h (system_header): Likewise.
1300         * lib/sys_wait.in.h (system_header): Likewise.
1301         * lib/sysexits.in.h (system_header): Likewise.
1302         * lib/unistd.in.h (system_header): Likewise.
1303         * lib/wctype.in.h (system_header): Likewise.
1304
1305         arpa/inet: fix mingw compilation warning
1306         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
1307         Reported by Matthew Bolte.
1308
1309 2010-03-25  Bruno Haible  <bruno@clisp.org>
1310
1311         Avoid collision between gnulib wrapper and libintl wrapper.
1312         * lib/printf.c (printf): Don't define if a printf wrapper is already
1313         defined in intl/printf.c.
1314         Reported by Michel Boaventura <michel@michelboaventura.com>.
1315
1316 2010-03-25  Bruno Haible  <bruno@clisp.org>
1317
1318         Use ANSI C.
1319         * lib/readutmp.h (getutent): Provide ANSI C prototype.
1320
1321 2010-03-25  Bruno Haible  <bruno@clisp.org>
1322
1323         Minor formatting changes.
1324         * lib/acosl.c: Insert space before function argument list.
1325         * lib/argz.c: Likewise.
1326         * lib/asinl.c: Likewise.
1327         * lib/expl.c: Likewise.
1328         * lib/gen-uni-tables.c: Likewise.
1329         * lib/gettext.h: Likewise.
1330         * lib/glthread/lock.h: Likewise.
1331         * lib/tanl.c: Likewise.
1332         * lib/uniname/uniname.c: Likewise.
1333         * tests/test-idpriv-drop.c: Likewise.
1334         * tests/test-idpriv-droptemp.c: Likewise.
1335         * tests/test-lock.c: Likewise.
1336         * tests/test-tls.c: Likewise.
1337         * lib/argp-help.c: Insert space before function-like macro argument
1338         list.
1339         * lib/memcmp.c: Likewise.
1340         * tests/test-base64.c: Likewise.
1341         * lib/localename.c: Insert space before sizeof's argument list.
1342         * lib/safe-alloc.h: Likewise.
1343         * lib/file-set.h: Insert space before macro argument list.
1344         * tests/test-argp.c: Likewise.
1345         * lib/argp-namefrob.h: Insert space before function parameter list.
1346         * lib/getaddrinfo.c: Likewise.
1347         * lib/netdb.in.h: Likewise.
1348         * lib/parse-duration.h: Likewise.
1349         * lib/parse-duration.c: Likewise.
1350         * lib/poll.c: Likewise.
1351         * lib/select.c: Likewise.
1352         * lib/trim.h: Likewise.
1353         * tests/test-usleep.c: Likewise.
1354         * lib/ldexpl.c: Insert space before function parameter list and before
1355         function argument list.
1356         * lib/logl.c: Likewise.
1357         * lib/sqrtl.c: Likewise.
1358         * lib/trim.c: Likewise.
1359         * lib/cosl.c: Use GNU style indentation. Insert space before function
1360         argument list.
1361         * lib/sinl.c: Likewise.
1362         * lib/tsearch.c: Insert space after 'for'.
1363         Reported by Jim Meyering.
1364
1365 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
1366
1367         * maint.mk (sc_Wundef_boolean): Check for the presence of the
1368         config header before grepping, as it's not present before
1369         autoreconf/configure are run.  Reported by Simon Josefsson.
1370
1371 2010-03-23  Bruno Haible  <bruno@clisp.org>
1372
1373         pt_chown: Make it work with automake < 1.11.
1374         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
1375         Reported by Simon Josefsson.
1376
1377 2010-03-23  Bruno Haible  <bruno@clisp.org>
1378
1379         pt_chown: Don't depend on GPLed modules.
1380         * lib/pt_chown.c: Don't include idpriv.h.
1381         (main): Don't drop privileges.
1382         * modules/pt_chown (Depends-on): Remove idpriv-drop.
1383         Reported by Simon Josefsson.
1384
1385 2010-03-24  Simon Josefsson  <simon@josefsson.org>
1386
1387         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
1388         suggestions from karl@freefriends.org (Karl Berry).
1389
1390 2010-03-22  Eric Blake  <eblake@redhat.com>
1391
1392         gethostname: further tweaks
1393         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
1394         are overriding gethostname.
1395         Suggested by Bruno Haible.
1396
1397 2010-03-21  Bruno Haible  <bruno@clisp.org>
1398
1399         Fix comments.
1400         * lib/forkpty.c (rpl_forkpty): Fix comment.
1401         * lib/openpty.c (rpl_openpty): Likewise.
1402         Reported by Eric Blake.
1403
1404 2010-03-22  Eric Blake  <eblake@redhat.com>
1405
1406         gethostname: fix build on mingw
1407         * lib/unistd.in.h (includes): Work around fact that mingw
1408         <winsock2.h> re-includes <unistd.h>, by avoiding any
1409         redeclarations if we are being included by <winsock2.h>.
1410         Reported by Matthias Bolte.
1411
1412 2010-03-21  Bruno Haible  <bruno@clisp.org>
1413
1414         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
1415         * lib/forkpty.c (forkpty): New replacement function, from glibc with
1416         modifications.
1417         * lib/pty.in.h (forkpty): Update declaration. Add comments.
1418         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
1419         provide the replacement.
1420         * modules/forkpty (Depends-on): Add openpty, login_tty.
1421         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
1422         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
1423         * doc/glibc-functions/forkpty.texi: More supported platforms.
1424         * config/srclist.txt: Add forkpty.c (commented).
1425
1426 2010-03-21  Bruno Haible  <bruno@clisp.org>
1427
1428         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
1429         (Makefile.am): Verify that PTY_LIB is defined.
1430
1431         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
1432
1433 2010-03-21  Bruno Haible  <bruno@clisp.org>
1434
1435         Tests for module 'login_tty'.
1436         * modules/login_tty-tests: New file.
1437         * tests/test-login_tty.c: New file.
1438
1439         New module 'login_tty'.
1440         * lib/login_tty.c: New file.
1441         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
1442         * modules/login_tty: New file.
1443         * doc/glibc-functions/login_tty.texi: Mention the new module.
1444
1445 2010-03-21  Bruno Haible  <bruno@clisp.org>
1446
1447         login_tty: Documentation.
1448         * doc/glibc-functions/login_tty.texi: New file.
1449         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
1450
1451 2010-03-21  Bruno Haible  <bruno@clisp.org>
1452
1453         pty: Consistent macro naming.
1454         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
1455         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
1456         * modules/pty (configure.ac): Update.
1457
1458 2010-03-21  Bruno Haible  <bruno@clisp.org>
1459
1460         Tests for openpty: Make stricter.
1461         * tests/test-openpty.c (main): Add test of canonical processing and
1462         erase.
1463         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
1464
1465         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
1466         * lib/openpty.c (openpty): New replacement function.
1467         * lib/pty.in.h: Include <termios.h>.
1468         (openpty): Update declaration. Add comments.
1469         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
1470         is not declared, arrange to provide the replacement. Check for _getpty
1471         and posix_openpt.
1472         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
1473         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
1474         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
1475         * modules/pty-tests (test_pty_c___LDADD): New variable.
1476         * doc/glibc-functions/openpty.texi: More supported platforms.
1477
1478 2010-03-21  Bruno Haible  <bruno@clisp.org>
1479
1480         setenv: Tweaks.
1481         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
1482         the test program.
1483         * doc/posix-functions/setenv.texi: Update platforms list.
1484
1485 2010-03-21  Bruno Haible  <bruno@clisp.org>
1486
1487         New module 'unlockpt'.
1488         * lib/unlockpt.c: New file, from glibc with modifications.
1489         * m4/unlockpt.m4: New file.
1490         * modules/unlockpt: New file.
1491         * lib/stdlib.in.h (unlockpt): New declaration.
1492         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
1493         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
1494         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
1495         HAVE_UNLOCKPT.
1496         * doc/posix-functions/unlockpt.texi: Mention the new module.
1497         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
1498         * config/srclist.txt: Add unlockpt.c (commented).
1499
1500 2010-03-21  Jim Meyering  <meyering@redhat.com>
1501
1502         maint.mk: prohibit inclusion of "intprops.h" without use
1503         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
1504
1505 2010-03-21  Bruno Haible  <bruno@clisp.org>
1506
1507         New module 'grantpt'.
1508         * lib/grantpt.c: New file, from glibc with modifications.
1509         * m4/grantpt.m4: New file.
1510         * modules/grantpt: New file.
1511         * lib/stdlib.in.h (grantpt): New declaration.
1512         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
1513         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
1514         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
1515         HAVE_GRANTPT.
1516         * doc/posix-functions/grantpt.texi: Mention the new module.
1517         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
1518         * config/srclist.txt: Add grantpt.c (commented).
1519
1520 2010-03-21  Bruno Haible  <bruno@clisp.org>
1521
1522         New module 'pt_chown'.
1523         * lib/pt_chown.c: New file, from glibc with modifications.
1524         * lib/pty-private.h: New file, from glibc with modifications.
1525         * modules/pt_chown: New file.
1526         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
1527
1528 2010-03-21  Bruno Haible  <bruno@clisp.org>
1529
1530         Tests for module 'ptsname'.
1531         * modules/ptsname-tests: New file.
1532         * tests/test-ptsname.c: New file.
1533
1534         New module 'ptsname'.
1535         * lib/ptsname.c: New file, from glibc with modifications.
1536         * m4/ptsname.m4: New file.
1537         * modules/ptsname: New file.
1538         * lib/stdlib.in.h (ptsname): New declaration.
1539         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
1540         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
1541         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
1542         HAVE_PTSNAME.
1543         * doc/posix-functions/ptsname.texi: Mention the new module.
1544         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
1545         * config/srclist.txt: Add ptsname.c (commented).
1546
1547 2010-03-21  Bruno Haible  <bruno@clisp.org>
1548
1549         Tests for module 'ttyname_r'.
1550         * modules/ttyname_r-tests: New file.
1551         * tests/test-ttyname_r.c: New file.
1552
1553         New module 'ttyname_r'.
1554         * lib/ttyname_r.c: New file.
1555         * m4/ttyname_r.m4: New file.
1556         * modules/ttyname_r: New file.
1557         * lib/unistd.in.h (ttyname_r): New declaration.
1558         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
1559         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
1560         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
1561         HAVE_TTYNAME_R.
1562         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
1563         * doc/posix-functions/ttyname_r.texi: Mention the new module.
1564
1565 2010-03-20  Bruno Haible  <bruno@clisp.org>
1566
1567         signal: Undefine macro definitions in C++ mode.
1568         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
1569         sigfillset): Undefine macro definitions from the system header in C++
1570         mode.
1571         Reported by John W. Eaton <jwe@gnu.org>.
1572
1573 2010-03-20  Bruno Haible  <bruno@clisp.org>
1574
1575         Ensure no #include statements inside extern "C" { ... }.
1576         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
1577         contain #include statements.
1578         * lib/time.in.h: Likewise.
1579
1580 2010-03-20  Bruno Haible  <bruno@clisp.org>
1581
1582         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
1583         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
1584         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
1585         Reported by John W. Eaton <jwe@gnu.org>.
1586
1587 2010-03-20  Bruno Haible  <bruno@clisp.org>
1588
1589         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
1590         Reported by Jim Meyering.
1591
1592 2010-03-20  Bruno Haible  <bruno@clisp.org>
1593
1594         pipe: Set errno upon failure.
1595         * lib/pipe.h: Specify that when -1 is returned, errno is set.
1596         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
1597         errno value in error message.
1598
1599 2010-03-20  Bruno Haible  <bruno@clisp.org>
1600             Jim Meyering  <meyering@redhat.com>
1601
1602         lchown: Avoid "unused variable" warning.
1603         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
1604
1605 2010-03-20  Bruno Haible  <bruno@clisp.org>
1606
1607         Work around unlink() bug on MacOS X 10.5.6.
1608         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
1609         attempting to unlink a parent directory.
1610         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
1611         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
1612         activate for the replacement function.
1613         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
1614
1615 2010-03-20  Bruno Haible  <bruno@clisp.org>
1616
1617         Fix link errors on Solaris 8.
1618         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
1619         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
1620
1621 2010-03-19  Jim Meyering  <meyering@redhat.com>
1622
1623         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
1624         The _LIBC implementation of build_range_exp correctly honors the
1625         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
1626         However, the non-_LIBC implementation would ignore that syntax-bit
1627         flag and return REG_ERANGE unconditionally.
1628         This change makes it honor that flag.
1629         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
1630         Make two pointer parameters "const".
1631         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
1632         (parse_bracket_exp): Update caller.
1633
1634         regex.m4: correct the reversed range endpoint ([b-a]) test
1635         * m4/regex.m4: When requiring that [b-a] evoke failure,
1636         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
1637         test pass once again for x86-based systems.
1638
1639 2010-03-19  Bruno Haible  <bruno@clisp.org>
1640
1641         scandir: Fix link error on Solaris 8.
1642         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
1643         macros.
1644
1645 2010-03-19  Bruno Haible  <bruno@clisp.org>
1646
1647         getusershell: Fix documentation.
1648         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
1649         module.
1650         * doc/glibc-functions/setusershell.texi: Likewise.
1651
1652         getusershell: Provide declaration, missing on Solaris 9.
1653         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
1654         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
1655         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
1656         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
1657         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1658         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
1659         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
1660         HAVE_GETUSERSHELL.
1661         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
1662
1663 2010-03-19  Bruno Haible  <bruno@clisp.org>
1664
1665         wctype: Provide iswblank function.
1666         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
1667         exists and is fine.
1668         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
1669         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
1670         * tests/test-wctype.c (main): Re-enable the iswblank tests.
1671         * doc/posix-functions/iswblank.texi: Update.
1672
1673 2010-03-19  Bruno Haible  <bruno@clisp.org>
1674
1675         Tests of module 'pty' in C++ mode.
1676         * modules/pty-tests: New file.
1677         * tests/test-pty-c++.cc: New file.
1678         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1679
1680 2010-03-19  Eric Blake  <eblake@redhat.com>
1681
1682         logb: fix documentation
1683         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
1684         1.5 declaration bug.
1685
1686         forkpty, openpty: prefer glibc's const-safe prototype
1687         * lib/forkpty.c (rpl_forkpty): New file.
1688         * lib/openpty.c (rpl_openpty): Likewise.
1689         * modules/forkpty (Files): Distribute it.
1690         * modules/openpty (Files): Likewise.
1691         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
1692         check...
1693         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
1694         replacement for for non-const BSD signature.
1695         * modules/pty (Makefile.am): Substitute witnesses.
1696         * lib/pty.in.h (forkpty, openpty): Declare replacements.
1697         * tests/test-forkpty.c: Update signature check.
1698         * tests/test-openpty.c: Likewise.
1699         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
1700         * doc/glibc-functions/openpty.texi (openpty): Likewise.
1701
1702         forkpty, openpty: split functions into new modules
1703         * modules/pty (Makefile.am): Substitute new witnesses.
1704         (Libraries): Move library detection...
1705         * modules/forkpty: ...into new module.
1706         * modules/openpty: Another new module.
1707         * modules/pty-tests: Rename and split...
1708         * modules/forkpty-tests: ...to this...
1709         * modules/openpty-tests: ...and this.
1710         * tests/test-pty.c: Rename and split...
1711         * tests/test-forkpty.c: ...to this...
1712         * tests/test-openpty.c: ...and this.
1713         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
1714         (gl_PTY): Split library searching...
1715         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
1716         (gl_FORKPTY, gl_OPENPTY): New macros.
1717         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
1718         * NEWS: Mention the split.
1719         * MODULES.html.sh (Misc): Document the modules.
1720         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
1721         * doc/glibc-functions/openpty.texi (openpty): Likewise.
1722
1723         pty: improve replacement header
1724         * lib/pty.in.h: New file.
1725         * modules/pty (Files): Ship it.
1726         (Makefile.am): Always build replacement.
1727         * m4/pty.m4: Rename...
1728         * m4/pty_h.m4: ...to this.
1729         (gl_PTY): Modernize setting of witness macros; update check of
1730         forkpty to take proper advantage of cache.
1731         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
1732
1733         getopt: avoid compiler warning
1734         * lib/getopt.c (attribute_hidden): Remove unused macro.
1735
1736 2010-03-18  Bruno Haible  <bruno@clisp.org>
1737
1738         Fix link errors on Solaris 8.
1739         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
1740         * modules/search-tests (test_search_c___LDADD): Likewise.
1741         * modules/signal-tests (test_signal_c___LDADD): Likewise.
1742         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
1743         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
1744         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
1745         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
1746         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
1747         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
1748
1749 2010-03-18  Bruno Haible  <bruno@clisp.org>
1750
1751         Fix bug introduced on 2010-03-14.
1752         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
1753         (gl_SPAWN_H): Require it.
1754         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
1755         Reported by Simon Josefsson.
1756
1757 2010-03-18  Bruno Haible  <bruno@clisp.org>
1758
1759         Fix typo introduced on 2009-12-31.
1760         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
1761         posix_spawn_file_actions_adddup2.
1762
1763 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
1764         and Eric Blake  <eblake@redhat.com>
1765
1766         test-vc-list-files-git: make more robust
1767         * tests/test-vc-list-files-git.sh: Unset problematic environment
1768         variables.  Chain commands together.
1769
1770 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
1771
1772         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
1773         `AC_CHECK_DECL' invocation.
1774
1775 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
1776
1777         * lib/inttostr.c (inttostr): Make sure the invocation of verify
1778         appears before executable statements. Suggested by Petr Sumbera
1779         <Petr.Sumbera@Sun.COM>.
1780
1781 2010-03-14  Bruno Haible  <bruno@clisp.org>
1782
1783         * tests/test-flock.c (test_exclusive): Comment out a test that causes
1784         portability problems. Instead use a simpler test.
1785         (main): Check that invalid arguments are rejected only on Linux.
1786
1787 2010-03-14  Bruno Haible  <bruno@clisp.org>
1788
1789         Fix bug introduced on 2009-12-31.
1790         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
1791         gl_PREREQ_SYS_H_WINSOCK2 always.
1792         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
1793         SYS_SOCKET_H variable.
1794         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
1795         Update comments.
1796         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
1797         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
1798         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
1799         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
1800         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
1801
1802 2010-03-14  Bruno Haible  <bruno@clisp.org>
1803
1804         Fix values returned by sinl, cosl.
1805         * lib/trigl.h: Add specification comments.
1806         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
1807         that combines the values from the precomputed table with the values of
1808         the Chebyshev polynomials.
1809
1810 2010-03-14  Bruno Haible  <bruno@clisp.org>
1811
1812         Fix compilation error when modules 'posix_spawn[p]' are not used.
1813         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
1814         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
1815
1816 2010-03-14  Bruno Haible  <bruno@clisp.org>
1817
1818         Fix compilation error on mingw when module 'time_r' is not used.
1819         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
1820         is 1.
1821         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
1822         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
1823         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
1824         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
1825
1826 2010-03-14  Bruno Haible  <bruno@clisp.org>
1827
1828         Fix compilation error with Sun C.
1829         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
1830         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
1831         instead of GCC specific ULONG_LONG_MAX.
1832         * lib/xstrtoll.c: Likewise.
1833         * lib/xstrtoull.c: Likewise.
1834
1835 2010-03-13  Bruno Haible  <bruno@clisp.org>
1836
1837         Allow the user to disable C++ code and tests.
1838         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
1839         (gl_PROG_ANSI_CXX): Require it.
1840
1841 2010-03-13  Bruno Haible  <bruno@clisp.org>
1842
1843         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
1844         cases.
1845
1846 2010-03-13  Bruno Haible  <bruno@clisp.org>
1847
1848         Test that gnulib does not break the standard C++ headers.
1849         * tests/test-locale-c++2.cc: New file.
1850         * modules/locale-tests (Files): Add it.
1851         (Makefile.am): Compile it for test-locale-c++.
1852         * tests/test-math-c++2.cc: New file.
1853         * modules/math-tests (Files): Add it.
1854         (Makefile.am): Compile it for test-math-c++.
1855         * tests/test-signal-c++2.cc: New file.
1856         * modules/signal-tests (Files): Add it.
1857         (Makefile.am): Compile it for test-signal-c++.
1858         * tests/test-stdio-c++2.cc: New file.
1859         * modules/stdio-tests (Files): Add it.
1860         (Makefile.am): Compile it for test-stdio-c++.
1861         * tests/test-stdlib-c++2.cc: New file.
1862         * modules/stdlib-tests (Files): Add it.
1863         (Makefile.am): Compile it for test-stdlib-c++.
1864         * tests/test-string-c++2.cc: New file.
1865         * modules/string-tests (Files): Add it.
1866         (Makefile.am): Compile it for test-string-c++.
1867         * tests/test-time-c++2.cc: New file.
1868         * modules/time-tests (Files): Add it.
1869         (Makefile.am): Compile it for test-time-c++.
1870         Reported by John W. Eaton <jwe@gnu.org>.
1871
1872 2010-03-13  Bruno Haible  <bruno@clisp.org>
1873
1874         * gnulib-tool (func_usage): Clarify which options are available for
1875         --create-testdir and --create-megatestdir.
1876
1877 2010-03-13  Bruno Haible  <bruno@clisp.org>
1878
1879         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
1880         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
1881         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
1882         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
1883         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
1884         when appropriate.
1885         Reported by Jim Meyering.
1886
1887 2010-03-12  Simon Josefsson  <simon@josefsson.org>
1888
1889         * gnulib-tool (func_import): Explain origin of code.
1890
1891 2010-03-12  Bruno Haible  <bruno@clisp.org>
1892
1893         Fix problem with automake's definition of CXXLINK.
1894         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
1895         Reported by Simon Josefsson and Ludovic Courtès.
1896
1897 2010-03-12  Bruno Haible  <bruno@clisp.org>
1898
1899         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
1900         stable releases.
1901
1902 2010-03-11  Bruno Haible  <bruno@clisp.org>
1903
1904         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
1905         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
1906         whether the system provides one variant or multiple variants of the
1907         function.
1908         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
1909         C++ compilers.
1910         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
1911         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
1912         Reported by Jim Meyering.
1913
1914 2010-03-09  Simon Josefsson  <simon@josefsson.org>
1915
1916         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
1917
1918 2010-03-08  Bruno Haible  <bruno@clisp.org>
1919
1920         gnulib-tool: Add support for --libtool in --create-testdir.
1921         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
1922         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
1923
1924 2010-03-08  Eric Blake  <eblake@redhat.com>
1925
1926         gnulib-tool.texi: mention possibility of git submodule
1927         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
1928         submodules.
1929         * doc/.gitignore: Ignore another generated file.
1930
1931 2010-03-08  Karl Berry  <karl@gnu.org>
1932
1933         * doc/gnulib-tool.texi (VCS Issues): Mention third option
1934         of committing gnulib files while skipping others.
1935
1936 2010-03-07  Bruno Haible  <bruno@clisp.org>
1937
1938         Tests of module 'wctype' in C++ mode.
1939         * tests/test-wctype-c++.cc: New file.
1940         * modules/wctype-tests (Files): Add it and tests/signature.h.
1941         (Depends-on): Add ansi-c++-opt.
1942         (Makefile.am): Arrange to compile and run test-wctype-c++.
1943
1944         Tests of module 'wchar' in C++ mode.
1945         * tests/test-wchar-c++.cc: New file.
1946         * modules/wchar-tests (Files): Add it and tests/signature.h.
1947         (Depends-on): Add ansi-c++-opt.
1948         (Makefile.am): Arrange to compile and run test-wchar-c++.
1949         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
1950         gl_MODULE_INDICATOR.
1951
1952         Tests of module 'unistd' in C++ mode.
1953         * tests/test-unistd-c++.cc: New file.
1954         * modules/unistd-tests (Files): Add it and tests/signature.h.
1955         (Depends-on): Add ansi-c++-opt.
1956         (Makefile.am): Arrange to compile and run test-unistd-c++.
1957         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
1958         gl_MODULE_INDICATOR.
1959
1960         Tests of module 'time' in C++ mode.
1961         * tests/test-time-c++.cc: New file.
1962         * modules/time-tests (Files): Add it and tests/signature.h.
1963         (Depends-on): Add ansi-c++-opt.
1964         (Makefile.am): Arrange to compile and run test-time-c++.
1965         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1966
1967         Tests of module 'sys_time' in C++ mode.
1968         * tests/test-sys_time-c++.cc: New file.
1969         * modules/sys_time-tests (Files): Add it and tests/signature.h.
1970         (Depends-on): Add ansi-c++-opt.
1971         (Makefile.am): Arrange to compile and run test-sys_time-c++.
1972         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
1973         gl_MODULE_INDICATOR.
1974
1975         Tests of module 'sys_stat' in C++ mode.
1976         * tests/test-sys_stat-c++.cc: New file.
1977         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
1978         (Depends-on): Add ansi-c++-opt.
1979         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
1980         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
1981         gl_MODULE_INDICATOR.
1982
1983         Tests of module 'sys_socket' in C++ mode.
1984         * tests/test-sys_socket-c++.cc: New file.
1985         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
1986         (Depends-on): Add ansi-c++-opt.
1987         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
1988         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
1989         gl_MODULE_INDICATOR.
1990
1991         Tests of module 'sys_select' in C++ mode.
1992         * tests/test-sys_select-c++.cc: New file.
1993         * modules/sys_select-tests (Files): Add it and tests/signature.h.
1994         (Depends-on): Add ansi-c++-opt.
1995         (Makefile.am): Arrange to compile and run test-sys_select-c++.
1996         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
1997         gl_MODULE_INDICATOR.
1998
1999         Tests of module 'sys_ioctl' in C++ mode.
2000         * tests/test-sys_ioctl-c++.cc: New file.
2001         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
2002         (Depends-on): Add ansi-c++-opt.
2003         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
2004         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
2005         gl_MODULE_INDICATOR.
2006
2007         Tests of module 'string' in C++ mode.
2008         * tests/test-string-c++.cc: New file.
2009         * modules/string-tests (Files): Add it and tests/signature.h.
2010         (Depends-on): Add ansi-c++-opt.
2011         (Makefile.am): Arrange to compile and run test-string-c++.
2012         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
2013         gl_MODULE_INDICATOR.
2014
2015         Tests of module 'stdlib' in C++ mode.
2016         * tests/test-stdlib-c++.cc: New file.
2017         * modules/stdlib-tests (Files): Add it and tests/signature.h.
2018         (Depends-on): Add ansi-c++-opt.
2019         (Makefile.am): Arrange to compile and run test-stdlib-c++.
2020         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
2021         gl_MODULE_INDICATOR.
2022
2023         Tests of module 'stdio' in C++ mode.
2024         * tests/test-stdio-c++.cc: New file.
2025         * modules/stdio-tests (Files): Add it and tests/signature.h.
2026         (Depends-on): Add ansi-c++-opt.
2027         (Makefile.am): Arrange to compile and run test-stdio-c++.
2028         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
2029         gl_MODULE_INDICATOR.
2030
2031         Tests of module 'spawn' in C++ mode.
2032         * tests/test-spawn-c++.cc: New file.
2033         * modules/spawn-tests (Files): Add it and tests/signature.h.
2034         (Depends-on): Add ansi-c++-opt.
2035         (Makefile.am): Arrange to compile and run test-spawn-c++.
2036         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
2037         gl_MODULE_INDICATOR.
2038
2039         Tests of module 'signal' in C++ mode.
2040         * tests/test-signal-c++.cc: New file.
2041         * modules/signal-tests (Files): Add it and tests/signature.h.
2042         (Depends-on): Add ansi-c++-opt.
2043         (Makefile.am): Arrange to compile and run test-signal-c++.
2044         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
2045         gl_MODULE_INDICATOR.
2046
2047         Tests of module 'search' in C++ mode.
2048         * tests/test-search-c++.cc: New file.
2049         * modules/search-tests (Files): Add it and tests/signature.h.
2050         (Depends-on): Add ansi-c++-opt.
2051         (Makefile.am): Arrange to compile and run test-search-c++.
2052         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
2053         gl_MODULE_INDICATOR.
2054
2055         Tests of module 'math' in C++ mode.
2056         * tests/test-math-c++.cc: New file.
2057         * modules/math-tests (Files): Add it and tests/signature.h.
2058         (Depends-on): Add ansi-c++-opt.
2059         (Makefile.am): Arrange to compile and run test-math-c++.
2060         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
2061
2062         Tests of module 'locale' in C++ mode.
2063         * tests/test-locale-c++.cc: New file.
2064         * modules/locale-tests (Files): Add it and tests/signature.h.
2065         (Depends-on): Add ansi-c++-opt.
2066         (Makefile.am): Arrange to compile and run test-locale-c++.
2067         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
2068         gl_MODULE_INDICATOR.
2069
2070         Tests of module 'langinfo' in C++ mode.
2071         * tests/test-langinfo-c++.cc: New file.
2072         * modules/langinfo-tests (Files): Add it and tests/signature.h.
2073         (Depends-on): Add ansi-c++-opt.
2074         (Makefile.am): Arrange to compile and run test-langinfo-c++.
2075         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
2076         gl_MODULE_INDICATOR.
2077
2078         Tests of module 'iconv-h' in C++ mode.
2079         * tests/test-iconv-h-c++.cc: New file.
2080         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
2081         (Depends-on): Add ansi-c++-opt.
2082         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
2083
2084         Tests of module 'glob' in C++ mode.
2085         * tests/test-glob-c++.cc: New file.
2086         * modules/glob-tests (Files): Add it.
2087         (Depends-on): Add ansi-c++-opt.
2088         (Makefile.am): Arrange to compile and run test-glob-c++.
2089
2090         Tests of module 'fcntl-h' in C++ mode.
2091         * tests/test-fcntl-h-c++.cc: New file.
2092         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
2093         (Depends-on): Add ansi-c++-opt.
2094         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
2095         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
2096         gl_MODULE_INDICATOR.
2097
2098         Tests of module 'dirent' in C++ mode.
2099         * tests/test-dirent-c++.cc: New file.
2100         * modules/dirent-tests (Files): Add it and tests/signature.h.
2101         (Depends-on): Add ansi-c++-opt.
2102         (Makefile.am): Arrange to compile and run test-dirent-c++.
2103         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
2104         gl_MODULE_INDICATOR.
2105
2106         New module 'ansi-c++-opt'.
2107         * modules/ansi-c++-opt: New file.
2108         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
2109
2110         Document C++ namespace mode.
2111         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
2112
2113         wctype: Avoid #define replacements in C++ mode.
2114         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
2115         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
2116         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
2117         In C++, define a namespaced alias symbol.
2118         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
2119         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
2120         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
2121         rule.
2122
2123         wchar: Avoid #define replacements in C++ mode.
2124         * lib/wchar.in.h: Include c++defs.h.
2125         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
2126         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
2127         symbol.
2128         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
2129         * modules/wchar (Depends-on): Add c++defs.
2130         (Makefile.am): Update wchar.h rule.
2131
2132         unistd: Avoid #define replacements in C++ mode.
2133         * lib/unistd.in.h: Include c++defs.h.
2134         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
2135         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
2136         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
2137         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
2138         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
2139         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
2140         symbol.
2141         (environ): Update.
2142         * modules/unistd (Depends-on): Add c++defs.
2143         (Makefile.am): Update unistd.h rule.
2144
2145         time: Avoid #define replacements in C++ mode.
2146         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
2147         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
2148         define a namespaced alias symbol.
2149         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
2150         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
2151         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
2152         * modules/time (Depends-on): Add c++defs, warn-on-use.
2153         (Makefile.am): Update time.h rule.
2154         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
2155         * modules/nanosleep (configure.ac): Likewise.
2156         * modules/strptime (configure.ac): Likewise.
2157         * modules/timegm (configure.ac): Likewise.
2158
2159         sys_time: Avoid #define replacements in C++ mode.
2160         * lib/sys_time.in.h: Include c++defs.h.
2161         (gettimeofday): In C++, define a namespaced alias symbol.
2162         * modules/sys_time (Depends-on): Add c++defs.
2163         (Makefile.am): Update sys/time.h rule.
2164
2165         sys_stat: Avoid #define replacements in C++ mode.
2166         * lib/sys_stat.in.h: Include c++defs.h.
2167         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
2168         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
2169         namespaced alias symbol.
2170         In C++, define a namespaced alias symbol.
2171         * modules/sys_stat (Depends-on): Add c++defs.
2172         (Makefile.am): Update sys/stat.h rule.
2173
2174         sys_socket: Avoid #define replacements in C++ mode.
2175         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
2176         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
2177         definitions also when the system has a <sys/socket.h>.
2178         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
2179         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
2180         In C++, define a namespaced alias symbol.
2181         * modules/sys_socket (Depends-on): Add c++defs.
2182         (Makefile.am): Update sys/socket.h rule.
2183
2184         sys_select: Avoid #define replacements in C++ mode.
2185         * lib/sys_select.in.h: Include c++defs.h. Enable the function
2186         definitions also when the system has a <sys/select.h>.
2187         (select): In C++, define a namespaced alias symbol.
2188         * modules/sys_select (Depends-on): Add c++defs.
2189         (Makefile.am): Update sys/select.h rule.
2190
2191         sys_ioctl: Avoid #define replacements in C++ mode.
2192         * lib/sys_ioctl.in.h: Include c++defs.h.
2193         (ioctl): In C++, define a namespaced alias symbol.
2194         * modules/sys_ioctl (Depends-on): Add c++defs.
2195         (Makefile.am): Update sys/ioctl.h rule.
2196
2197         string: Avoid #define replacements in C++ mode.
2198         * lib/string.in.h: Include c++defs.h.
2199         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
2200         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
2201         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
2202         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
2203         strsignal, strverscmp): In C++, define a namespaced alias symbol.
2204         * modules/string (Depends-on): Add c++defs.
2205         (Makefile.am): Update string.h rule.
2206
2207         stdlib: Avoid #define replacements in C++ mode.
2208         * lib/stdlib.in.h: Include c++defs.h.
2209         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
2210         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
2211         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
2212         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
2213         symbol.
2214         * modules/stdlib (Depends-on): Add c++defs.
2215         (Makefile.am): Update stdlib.h rule.
2216
2217         stdio: Avoid #define replacements in C++ mode.
2218         * lib/stdio.in.h: Include c++defs.h.
2219         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
2220         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
2221         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
2222         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
2223         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
2224         namespaced alias symbol.
2225         * modules/stdio (Depends-on): Add c++defs.
2226         (Makefile.am): Update stdio.h rule.
2227
2228         spawn: Avoid #define replacements in C++ mode.
2229         * lib/spawn.in.h: Include c++defs.h.
2230         (posix_spawn, posix_spawnp, posix_spawnattr_init,
2231         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
2232         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
2233         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
2234         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
2235         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
2236         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
2237         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
2238         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
2239         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
2240         In C++, define a namespaced alias symbol.
2241         * modules/spawn (Depends-on): Add c++defs.
2242         (Makefile.am): Update spawn.h rule.
2243
2244         signal: Avoid #define replacements in C++ mode.
2245         * lib/signal.in.h: Include c++defs.h.
2246         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
2247         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
2248         namespaced alias symbol.
2249         * modules/signal (Depends-on): Add c++defs.
2250         (Makefile.am): Update signal.h rule.
2251
2252         search: Avoid #define replacements in C++ mode.
2253         * lib/search.in.h: Include c++defs.h.
2254         (_gl_search_compar_fn, _gl_search_action_fn): New types.
2255         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
2256         symbol.
2257         * modules/search (Depends-on): Add c++defs.
2258         (Makefile.am): Update search.h rule.
2259
2260         math: Avoid #define replacements in C++ mode.
2261         * lib/math.in.h: Include c++defs.h.
2262         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
2263         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
2264         trunc, truncl): In C++, define a namespaced alias symbol.
2265         * modules/math (Depends-on): Add c++defs.
2266         (Makefile.am): Update math.h rule.
2267
2268         locale: Avoid #define replacements in C++ mode.
2269         * lib/locale.in.h: Include c++defs.h.
2270         (duplocale): In C++, define a namespaced alias symbol.
2271         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
2272         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
2273         * modules/locale (Depends-on): Add c++defs.
2274         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
2275
2276         langinfo: Avoid #define replacements in C++ mode.
2277         * lib/langinfo.in.h: Include c++defs.h.
2278         (nl_langinfo): In C++, define a namespaced alias symbol.
2279         * modules/langinfo (Depends-on): Add c++defs.
2280         (Makefile.am): Update langinfo.h rule.
2281
2282         iconv-h: Avoid #define replacements in C++ mode.
2283         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
2284         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
2285         symbol.
2286         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
2287         whenever iconv is present.
2288         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
2289         (Makefile.am): Update iconv.h rule.
2290
2291         glob: Avoid #define replacements in C++ mode.
2292         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
2293         (_gl_glob_errfunc_fn): New type.
2294         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
2295         symbol.
2296         * modules/glob (Depends-on): Add c++defs, warn-on-use.
2297         (Makefile.am): Update glob.h rule.
2298
2299         fcntl-h: Avoid #define replacements in C++ mode.
2300         * lib/fcntl.in.h: Include c++defs.h.
2301         (fcntl, open, openat): In C++, define a namespaced alias symbol.
2302         * modules/fcntl-h (Depends-on): Add c++defs.
2303         (Makefile.am): Update fcntl.h rule.
2304
2305         dirent: Avoid #define replacements in C++ mode.
2306         * lib/dirent.in.h: Include c++defs.h.
2307         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
2308         namespaced alias symbol.
2309         (dirfd): Update declaration.
2310         * modules/dirent (Depends-on): Add c++defs.
2311         (Makefile.am): Update dirent.h rule.
2312
2313         ctype: Make it usable in C++ code.
2314         * lib/ctype.in.h: Include c++defs.h.
2315         (isblank): Declare as extern "C".
2316         * modules/ctype (Depends-on): Add c++defs.
2317         (Makefile.am): Update ctype.h rule.
2318
2319         New module 'c++defs'.
2320         * modules/c++defs: New file.
2321         * build-aux/c++defs.h: New file.
2322         Reported by John W. Eaton <jwe@gnu.org>.
2323
2324 2010-03-07  Bruno Haible  <bruno@clisp.org>
2325
2326         logb: Provide missing declaration for Cygwin.
2327         * lib/math.in.h (logb): New declaration.
2328         * m4/logb.m4: New file.
2329         * modules/logb (Files): Add m4/logb.m4.
2330         (Depends-on): Add math.
2331         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
2332         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
2333         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
2334         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
2335         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
2336
2337 2010-03-07  Bruno Haible  <bruno@clisp.org>
2338
2339         Fix test-cond link error.
2340         * tests/test-cond.c: Include <stdio.h>.
2341
2342 2010-03-07  Bruno Haible  <bruno@clisp.org>
2343
2344         Fix test-dirent-safer link error.
2345         * modules/dirent-safer-tests (Makefile.am): Define
2346         test_dirent_safer_LDADD.
2347
2348 2010-03-07  Bruno Haible  <bruno@clisp.org>
2349
2350         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
2351         among default module list.
2352
2353 2010-03-07  Bruno Haible  <bruno@clisp.org>
2354
2355         Fix link error on platforms with GNU libiconv.
2356         * modules/unistr/u8-strcoll-tests (Makefile): Define
2357         test_u8_strcoll_LDADD.
2358         * modules/unistr/u16-strcoll-tests (Makefile): Define
2359         test_u16_strcoll_LDADD.
2360         * modules/unistr/u32-strcoll-tests (Makefile): Define
2361         test_u32_strcoll_LDADD.
2362
2363 2010-03-07  Bruno Haible  <bruno@clisp.org>
2364
2365         Use POSIX declarations for socket functions.
2366         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
2367         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
2368         rpl_sendto): Change declaration to match POSIX.
2369         * lib/connect.c (rpl_connect): Likewise.
2370         * lib/accept.c (rpl_accept): Likewise.
2371         * lib/bind.c (rpl_bind): Likewise.
2372         * lib/getpeername.c (rpl_getpeername): Likewise.
2373         * lib/getsockname.c (rpl_getsockname): Likewise.
2374         * lib/recv.c (rpl_recv): Likewise.
2375         * lib/send.c (rpl_send): Likewise.
2376         * lib/recvfrom.c (rpl_recvfrom): Likewise.
2377         * lib/sendto.c (rpl_sendto): Likewise.
2378
2379 2010-03-06  Bruno Haible  <bruno@clisp.org>
2380
2381         Clarify access, euidaccess, faccessat.
2382         * doc/posix-functions/faccessat.texi: Mention security problem under
2383         "Other problems", not "Portability problems".
2384         * doc/posix-functions/access.texi: Likewise. Mention a related security
2385         problem.
2386         * doc/glibc-functions/euidaccess.texi: Mention security problems.
2387         * lib/euidaccess.c: Add comments about platforms.
2388         * lib/unistd.in.h (access, euidaccess): Add warnings.
2389
2390 2010-03-07  Bruno Haible  <bruno@clisp.org>
2391
2392         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
2393         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
2394         (POSIX_SPAWN_SETSCHEDULER): Likewise.
2395         (POSIX_SPAWN_USEVFORK): Define in a way that works when
2396         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
2397         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
2398         declare when POSIX_SPAWN_SETSCHEDULER is zero.
2399         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
2400         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
2401         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
2402         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
2403         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
2404         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
2405         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
2406         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
2407         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
2408         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
2409         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
2410         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
2411         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
2412         Likewise.
2413         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
2414         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
2415         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
2416         Likewise.
2417         * tests/test-spawn.c (main): Make it work when
2418         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
2419
2420 2010-03-07  Bruno Haible  <bruno@clisp.org>
2421
2422         Fix incorrect Makefile.am generation in German locale.
2423         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
2424         Execute sed command with character range in C locale.
2425
2426 2010-03-06  Bruno Haible  <bruno@clisp.org>
2427
2428         Tests for module 'iconv-h'.
2429         * modules/iconv-h-tests: New file.
2430         * tests/test-iconv-h.c: New file.
2431
2432         New module 'iconv-h'.
2433         * modules/iconv-h: New file.
2434         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
2435         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
2436         (configure.ac): Remove gl_ICONV_H.
2437         (Makefile.am): Remove rule for iconv.h.
2438
2439 2010-03-06  Bruno Haible  <bruno@clisp.org>
2440
2441         More consistent naming of *.m4 files.
2442         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
2443         * modules/wctype (Files): Update.
2444
2445         More consistent naming of *.m4 files.
2446         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
2447         * modules/wchar (Files): Update.
2448
2449 2010-03-06  Jim Meyering  <meyering@redhat.com>
2450
2451         euidaccess: relax license to LGPLv2+
2452         * modules/euidaccess (License): Relax to LGPLv2+.
2453
2454 2010-03-06  Bruno Haible  <bruno@clisp.org>
2455
2456         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
2457         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
2458         (Makefile.am): Augment lib_SOURCES instead.
2459
2460 2010-03-04  Jim Meyering  <meyering@redhat.com>
2461
2462         utime: remove obsolete module
2463         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
2464         unnecessary for years, and has been marked as obsolete for 10 months.
2465         * modules/utime: Remove file.
2466         * lib/utime.c: Remove file.
2467         * m4/utime.m4: Remove file.
2468         * m4/utimes-null.m4: Remove file.
2469         * doc/posix-functions/utime.texi (utime): Remove reference to
2470         the module.  Move the sole "fixed by gnulib" item into the
2471         "problems not fixed by Gnulib" list.
2472         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
2473
2474 2010-03-05  Simon Josefsson  <simon@josefsson.org>
2475
2476         * modules/exit (License): Relax license to LGPLv2+.
2477         (Status): Mark as obsolete.
2478         * NEWS: Mention deprecated 'exit' module.
2479         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
2480         of now obsolete 'exit'.
2481
2482 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2483
2484         fts-lgpl: remove unused module
2485         * modules/fts-lgpl: Remove.
2486         * MODULES.html.sh (func_all_modules): Adjust.
2487         * check-module (find_included_lib_files): Adjust.
2488         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
2489
2490 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
2491
2492         copy-acl: enhance Solaris ACL error handling
2493         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
2494         * lib/set-mode-acl.c (qset_acl): Likewise.
2495
2496 2010-03-02  Bruno Haible  <bruno@clisp.org>
2497
2498         spawn: Don't override the system defined values on FreeBSD 8.
2499         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
2500         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
2501         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
2502         if HAVE_POSIX_SPAWN is 1.
2503         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
2504
2505 2010-03-01  Bruno Haible  <bruno@clisp.org>
2506
2507         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
2508         regarding Automake.
2509
2510 2010-02-25  Bruno Haible  <bruno@clisp.org>
2511
2512         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
2513         * gnulib-tool: Define 'echo' as a function only before the ksh alias
2514         setting, not afterwards.
2515         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
2516
2517 2010-02-24  Eric Blake  <eblake@redhat.com>
2518
2519         bootstrap, git-version-gen: use timestamp
2520         * build-aux/git-version-gen (scriptversion): Force UTC.
2521         * build-aux/bootstrap (scriptversion): New variable.
2522
2523         bootstrap: allow older git
2524         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
2525         older than 1.6.4.  Requested by the libvirt project.
2526
2527 2010-02-23  Eric Blake  <eblake@redhat.com>
2528
2529         warn-on-use: work with old autoconf
2530         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
2531         AS_VAR semantics of autoconf 2.60.
2532         Reported by Bruno Haible.
2533
2534         bootstrap: improve some comments
2535         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
2536         clarification comments.
2537
2538         gettimeofday: provide correct function
2539         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
2540         when replacement is declared, otherwise provide gettimeofday.
2541         Reported by Michael Goffioul.
2542
2543 2010-02-23  Jim Meyering  <meyering@redhat.com>
2544
2545         lib-ignore: relax license to "unlimited", not LGPLv2+
2546         * modules/lib-ignore (License): Relax to "unlimited".
2547
2548 2010-02-23  Jim Meyering  <meyering@redhat.com>
2549
2550         lib-ignore: relax license to LGPLv2+
2551         * modules/lib-ignore (License): Relax to LGPLv2+.
2552
2553 2010-02-22  Eric Blake  <eblake@redhat.com>
2554
2555         lseek: avoid bash 3.2 broken pipe bug
2556         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
2557         warning from bash 3.2.
2558         Reported by Ben Pfaff, with analysis from Bruno Haible.
2559
2560         bootstrap: support non-FSF copyright holder
2561         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
2562         bootstrap.conf override of COPYRIGHT_HOLDER.
2563         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
2564
2565         bootstrap: interoperate with gettext 0.14.1
2566         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
2567
2568         bootstrap: allow for alternate submodule location
2569         * build-aux/bootstrap (gnulib_path): New variable; use instead of
2570         hardcoding submodule location.
2571         (gnulib_mk): Allow direct use of Makefile.am.
2572
2573         bootstrap: use GNULIB_SRCDIR to reduce disk usage
2574         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
2575         rather than reconfiguring where the submodule points.
2576
2577         gettimeofday: restore support for platforms that lack function
2578         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
2579         replacement if function is missing.
2580         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
2581         * modules/sys_time (Makefile.am): Substitute it.
2582         * lib/sys_time.in.h (gettimeofday): Check it.
2583         Reported by Michael Goffioul.
2584
2585 2010-02-21  Bruno Haible  <bruno@clisp.org>
2586
2587         * lib/stdio.in.h (obstack_printf): Fix typo.
2588
2589 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
2590
2591         vc-list-files: use bzr ls's -R option
2592         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
2593         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
2594
2595 2010-02-21  Jim Meyering  <meyering@redhat.com>
2596
2597         init.sh: fix EXEEXT shims to work also for names like test-prog
2598         * tests/init.sh: Re-exec a better shell, when needed.
2599         If the current shell lacks support for posix $(...), an init.sh-using
2600         test will now try to find a shell that supports that.  If EXEEXT is
2601         nonempty, we also require support for hyphen-in-alias-name and shell
2602         substitutions like ${var#glob}.  Failure to find such a shell results
2603         in a skipped test.
2604
2605 2010-02-21  Bruno Haible  <bruno@clisp.org>
2606
2607         Really work around around "broken pipe" error message from bash 3.2.
2608         * gnulib-tool (func_reset_sigpipe): Remove function.
2609         (echo): In bash 3.2, define to a function that uses printf.
2610         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
2611
2612 2010-02-20  Bruno Haible  <bruno@clisp.org>
2613
2614         Restore support for automake 1.9.6 with autoconf 2.61.
2615         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
2616         Reported by James Youngman <jay@gnu.org>.
2617
2618 2010-02-20  Bruno Haible  <bruno@clisp.org>
2619
2620         Improve *printf warning condition.
2621         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
2622         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
2623         and the function is overridden due to SIGPIPE emulation.
2624
2625 2010-02-20  Bruno Haible  <bruno@clisp.org>
2626
2627         * lib/stdio.in.h: Tweak comments.
2628
2629 2010-02-19  Bruno Haible  <bruno@clisp.org>
2630
2631         Make it easier to find modules. New gnulib-tool option '--find'.
2632         * gnulib-tool: New option --find.
2633         (func_usage): Document it.
2634         (func_sanitize_modulelist): New function, extracted from
2635         func_all_modules.
2636         (func_all_modules): Invoke it.
2637         * doc/gnulib-tool.texi (Which modules?): New node.
2638
2639 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
2640
2641         * lib/sys_select.in.h: Provide select replacement even if
2642         sys/select.h exists on a system, for Interix.
2643
2644 2010-02-18  Jim Meyering  <meyering@redhat.com>
2645
2646         init.sh: don't use $(...) just yet
2647         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
2648         to accommodate e.g., Solaris' /bin/sh.
2649
2650 2010-02-17  Bruno Haible  <bruno@clisp.org>
2651
2652         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
2653         Reported by Ludovic Courtès <ludo@gnu.org>.
2654
2655 2010-02-16  Simon Josefsson  <simon@josefsson.org>
2656
2657         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
2658         linking with -lintl.
2659
2660 2010-02-17  Simon Josefsson  <simon@josefsson.org>
2661
2662         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
2663         if not provided by the system's netdb.h.  Reported by
2664         ludo@gnu.org (Ludovic Courtès).
2665
2666 2010-02-15  Jim Meyering  <meyering@redhat.com>
2667
2668         init.sh: improve portability and efficiency
2669         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
2670         "dummy" in a for loop.
2671         Use '!', not '^' to select the complement of a character set used
2672         in a "case" statement.
2673         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
2674         Suggestions from Eric Blake.
2675
2676         init.sh: automatically accommodate programs with the .exe suffix
2677         Automatically arrange for an invocation of "prog" to execute the
2678         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
2679         may use the simpler "prog", yet still work when built on a system
2680         that requires specifying the added suffix.
2681         Do this by constructing a function named "prog" that invokes
2682         "prog.exe" for each .exe file in selected directories.
2683         * tests/init.sh (find_exe_basenames_): New function.
2684         (create_exe_shim_functions_): New function.
2685         (path_prepend_): Use it.
2686
2687         maint.mk: mark syntax-check sc_*.m rules as .PHONY
2688         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
2689         "make -t syntax-check" doesn't create a ton of sc_*.m files.
2690
2691 2010-02-14  Jim Meyering  <meyering@redhat.com>
2692
2693         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
2694         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
2695         (sc_prohibit_hash_pjw_without_use): New rule.
2696
2697         maint.mk: allow the default upload destination dir to be overridden
2698         * top/maint.mk (upload_dest_dir_): Define with a default that
2699         preserves the status quo.
2700         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
2701         Reported by Peter Simons.
2702
2703         maint.mk: prohibit inclusion of "hash.h" without_use
2704         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
2705
2706 2010-02-10  Jim Meyering  <meyering@redhat.com>
2707
2708         maint.mk: prohibit inclusion of "ignore-value.h" without_use
2709         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
2710
2711 2010-02-09  Eric Blake  <ebb9@byu.net>
2712         and Bruno Haible  <bruno@clisp.org>
2713
2714         obstack-printf-posix: ensure declaration
2715         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
2716         extracted from gl_FUNC_OBSTACK_PRINTF.
2717         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
2718         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
2719         Likewise.
2720         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
2721         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
2722         0.
2723
2724 2010-02-08  Bruno Haible  <bruno@clisp.org>
2725
2726         gnulib-tool: Fix typo in 2010-02-07 commit.
2727         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
2728         Reported by Eric Blake.
2729
2730 2010-02-07  Bruno Haible  <bruno@clisp.org>
2731
2732         gnulib-tool: Fix up caching patches.
2733         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
2734         option --no-cache. Use associative arrays when supported by the shell.
2735         (sed_comments): New variable.
2736         (modcache): Renamed from do_cache.
2737         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
2738         abbreviate unnecessarily.
2739         (have_associative): New variable.
2740         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
2741         way also for ksh and zsh.
2742         (func_init_sed_convert_to_cache_statements): New function, extracted
2743         from func_cache_lookup_module. Add support for associative arrays.
2744         Don't set the c_MODULE_cached variable here. Ignore all lines before
2745         the first field header. Remove only the final newline, not all trailing
2746         newlines. Support empty fields correctly. Limit the use of 'eval' to
2747         assignments.
2748         (func_get_description, func_get_status, func_get_notice,
2749         func_get_applicability, func_get_filelist, func_get_dependencies,
2750         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
2751         func_get_automake_snippet, func_get_include_directive,
2752         func_get_link_directive, func_get_license, func_get_maintainer):
2753         Update documentation. List the unoptimized code first. Add support for
2754         associative arrays. Limit the use of 'eval' to assignments.
2755         (func_get_applicability): Undo stylistic pessimisations.
2756         (func_get_automake_snippet, func_get_include_directive): Reduce code
2757         duplication.
2758         (func_modules_transitive_closure, func_modules_add_dummy,
2759         func_modules_notice, func_modules_to_filelist, func_add_file,
2760         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
2761         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
2762         func_create_testdir, func_create_megatestdir): Update documentation.
2763
2764 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2765
2766         * gnulib-tool (func_cache_lookup_module): Store the module name
2767         belonging to the cache variable; error out if two different
2768         module names map to the same cache variable name.
2769
2770 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2771
2772         gnulib-tool: Make caching optional.
2773         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
2774         Update matching short versions of --no-changelog.
2775         (func_usage): Update.
2776         (sed_extract_cache_prog): Renamed from ...
2777         (sed_extract_prog): ... this; revert to old extraction script.
2778         (func_get_description, func_get_status)
2779         (func_get_notice, func_get_applicability, func_get_filelist)
2780         (func_get_dependencies, func_get_autoconf_early_snippet)
2781         (func_get_autoconf_snippet, func_get_automake_snippet)
2782         (func_get_include_directive, func_get_link_directive)
2783         (func_get_license, func_get_maintainer): If $do_cache is false,
2784         use old, non-caching extraction scripts.
2785         Suggestion by Bruno Haible.
2786
2787 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2788
2789         gnulib-tool: cache module metainformation.
2790         * gnulib-tool (sed_extract_prog): Match newline before each
2791         header, and rewrite header to a shell variable suffix.
2792         (func_cache_var, func_cache_lookup_module): New functions,
2793         to turn a module name into a cache variable prefix, and to
2794         look up and cache module metainformation.
2795         (func_get_description, func_get_status)
2796         (func_get_notice, func_get_applicability, func_get_filelist)
2797         (func_get_dependencies, func_get_autoconf_early_snippet)
2798         (func_get_autoconf_snippet, func_get_automake_snippet)
2799         (func_get_include_directive, func_get_link_directive)
2800         (func_get_license, func_get_maintainer): Use
2801         func_cache_lookup_module.
2802
2803 2010-02-07  Bruno Haible  <bruno@clisp.org>
2804
2805         fnctl: Fix missing dependency.
2806         * modules/fcntl (Depends-on): Add getdtablesize.
2807         Reported by John W. Eaton <jwe@gnu.org>.
2808
2809 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
2810
2811         Argp: fix recognition of short alias options.
2812
2813         * lib/argp-parse.c (convert_options): Fix improper use of
2814         `|' between character values.
2815         * tests/test-argp.c (group1_option): New alias option
2816         --read (-r).
2817         (group1_parser): Special handling for 'r'.
2818         (test15): New test case.
2819         (test_fun): Add test15.
2820         * tests/test-argp-2.sh: Update expected --help and --usage
2821         outputs.
2822
2823 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
2824
2825         * tests/test-argp.c: Fix indentation.
2826
2827 2010-02-04  Eric Blake  <ebb9@byu.net>
2828
2829         gettimeofday: expose type of second argument
2830         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
2831         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
2832         * tests/test-gettimeofday.c: Use it to silence warning.
2833         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
2834         the issue.
2835
2836 2010-02-03  Jim Meyering  <meyering@redhat.com>
2837
2838         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
2839         * lib/regcomp.c (TYPE_SIGNED): Define.
2840         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
2841
2842         regcomp.c: avoid a new -Wshadow warning
2843         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
2844
2845 2010-02-01  Jim Meyering  <meyering@redhat.com>
2846
2847         removing useless parentheses in cpp #define directives
2848         For motivation, see commit c0221df4, "define STREQ(a,b)
2849         consistently, removing useless parentheses"
2850         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
2851         * lib/mountlist.c (MNT_IGNORE): Likewise.
2852         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
2853
2854 2010-02-01  Eric Blake  <ebb9@byu.net>
2855
2856         sys_time: use link-warning
2857         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
2858         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
2859         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
2860         * modules/sys_time (Depends-on): Add warn-on-use.
2861         (Makefile.am): Always build replacement.
2862         (configure.ac): Update substitutions.
2863         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
2864         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
2865         bother with SYS_TIME_H.
2866         * modules/gettimeofday (configure.ac): Declare indicator.
2867         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
2868         in use.
2869
2870         closein-tests: silence compiler warning
2871         * tests/test-closein.c (main): Ignore fread result.
2872         * modules/closein-tests (Depends-on): Add ignore-value.
2873
2874         tests: silence warning about system return
2875         * tests/test-areadlink-with-size.c (main): Ignore system result.
2876         * tests/test-areadlink.c (main): Likewise.
2877         * tests/test-areadlinkat-with-size.c (main): Likewise.
2878         * tests/test-areadlinkat.c (main): Likewise.
2879         * tests/test-canonicalize-lgpl.c (main): Likewise.
2880         * tests/test-canonicalize.c (main): Likewise.
2881         * tests/test-chown.c (main): Likewise.
2882         * tests/test-fchownat.c (main): Likewise.
2883         * tests/test-fdutimensat.c (main): Likewise.
2884         * tests/test-fstatat.c (main): Likewise.
2885         * tests/test-futimens.c (main): Likewise.
2886         * tests/test-lchown.c (main): Likewise.
2887         * tests/test-link.c (main): Likewise.
2888         * tests/test-linkat.c (main): Likewise.
2889         * tests/test-lstat.c (main): Likewise.
2890         * tests/test-mkdir.c (main): Likewise.
2891         * tests/test-mkdirat.c (main): Likewise.
2892         * tests/test-mkfifo.c (main): Likewise.
2893         * tests/test-mkfifoat.c (main): Likewise.
2894         * tests/test-mknod.c (main): Likewise.
2895         * tests/test-readlink.c (main): Likewise.
2896         * tests/test-remove.c (main): Likewise.
2897         * tests/test-rename.c (main): Likewise.
2898         * tests/test-renameat.c (main): Likewise.
2899         * tests/test-rmdir.c (main): Likewise.
2900         * tests/test-symlink.c (main): Likewise.
2901         * tests/test-symlinkat.c (main): Likewise.
2902         * tests/test-unlink.c (main): Likewise.
2903         * tests/test-unlinkat.c (main): Likewise.
2904         * tests/test-utimens.c (main): Likewise.
2905         * tests/test-utimensat.c (main): Likewise.
2906         * modules/areadlink-tests (Depends-on): Add ignore-value.
2907         * modules/areadlink-with-size-tests (Depends-on): Likewise.
2908         * modules/areadlinkat-tests (Depends-on): Likewise.
2909         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
2910         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
2911         * modules/canonicalize-tests (Depends-on): Likewise.
2912         * modules/chown-tests (Depends-on): Likewise.
2913         * modules/fdutimensat-tests (Depends-on): Likewise.
2914         * modules/futimens-tests (Depends-on): Likewise.
2915         * modules/lchown-tests (Depends-on): Likewise.
2916         * modules/link-tests (Depends-on): Likewise.
2917         * modules/linkat-tests (Depends-on): Likewise.
2918         * modules/lstat-tests (Depends-on): Likewise.
2919         * modules/mkdir-tests (Depends-on): Likewise.
2920         * modules/mkfifo-tests (Depends-on): Likewise.
2921         * modules/mkfifoat-tests (Depends-on): Likewise.
2922         * modules/mknod-tests (Depends-on): Likewise.
2923         * modules/openat-tests (Depends-on): Likewise.
2924         * modules/readlink-tests (Depends-on): Likewise.
2925         * modules/remove-tests (Depends-on): Likewise.
2926         * modules/rename-tests (Depends-on): Likewise.
2927         * modules/renameat-tests (Depends-on): Likewise.
2928         * modules/rmdir-tests (Depends-on): Likewise.
2929         * modules/symlink-tests (Depends-on): Likewise.
2930         * modules/symlinkat-tests (Depends-on): Likewise.
2931         * modules/unlink-tests (Depends-on): Likewise.
2932         * modules/utimens-tests (Depends-on): Likewise.
2933         * modules/utimensat-tests (Depends-on): Likewise.
2934
2935 2010-01-31  Bruno Haible  <bruno@clisp.org>
2936
2937         Perform the same test for many <math.h> functions.
2938         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
2939         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
2940         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
2941         of gl_MATHFUNC.
2942         * modules/acos (configure.ac): Likewise.
2943         * modules/asin (configure.ac): Likewise.
2944         * modules/atan (configure.ac): Likewise.
2945         * modules/atan2 (configure.ac): Likewise.
2946         * modules/cbrt (configure.ac): Likewise.
2947         * modules/copysign (configure.ac): Likewise.
2948         * modules/cos (configure.ac): Likewise.
2949         * modules/cosh (configure.ac): Likewise.
2950         * modules/erf (configure.ac): Likewise.
2951         * modules/erfc (configure.ac): Likewise.
2952         * modules/exp (configure.ac): Likewise.
2953         * modules/fmod (configure.ac): Likewise.
2954         * modules/hypot (configure.ac): Likewise.
2955         * modules/j0 (configure.ac): Likewise.
2956         * modules/j1 (configure.ac): Likewise.
2957         * modules/jn (configure.ac): Likewise.
2958         * modules/lgamma (configure.ac): Likewise.
2959         * modules/log (configure.ac): Likewise.
2960         * modules/log10 (configure.ac): Likewise.
2961         * modules/log1p (configure.ac): Likewise.
2962         * modules/pow (configure.ac): Likewise.
2963         * modules/remainder (configure.ac): Likewise.
2964         * modules/sin (configure.ac): Likewise.
2965         * modules/sinh (configure.ac): Likewise.
2966         * modules/tan (configure.ac): Likewise.
2967         * modules/tanh (configure.ac): Likewise.
2968         * modules/y0 (configure.ac): Likewise.
2969         * modules/y1 (configure.ac): Likewise.
2970         * modules/yn (configure.ac): Likewise.
2971         Suggested by Paolo Bonzini.
2972
2973 2010-01-31  Bruno Haible  <bruno@clisp.org>
2974
2975         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
2976
2977 2010-01-31  Bruno Haible  <bruno@clisp.org>
2978
2979         Work around getdelim() bug on FreeBSD 8.0.
2980         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
2981         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
2982         not work.
2983         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
2984         is 1.
2985         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
2986         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
2987         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
2988         a non-zero size.
2989         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
2990
2991 2010-01-31  Bruno Haible  <bruno@clisp.org>
2992
2993         Work around getline() bug on FreeBSD 8.0.
2994         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
2995         and a non-zero size.
2996         * tests/test-getline.c (main): Likewise.
2997         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
2998         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
2999
3000 2010-01-28  Eric Blake  <ebb9@byu.net>
3001
3002         regex: fix build failure
3003         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
3004         platforms.
3005
3006 2010-01-28  Jim Meyering  <meyering@redhat.com>
3007
3008         regex: do not ignore memory allocation failure
3009         * lib/regex_internal.c (create_cd_newstate): Detect
3010         re_node_set_init_copy failure.   Extracted from glibc commit
3011         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
3012
3013         regex: sync more white-space changes from libc
3014         * lib/regex_internal.c: White-space only changes.
3015         * lib/regexec.c: Likewise.
3016
3017         regex: add many uses of __attribute_warn_unused_result__
3018         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
3019         * lib/regexec.c: Likewise.
3020         Extracted from a messy glibc commit.
3021
3022         regcomp.c: spelling and merge-artifact from glibc
3023         * lib/regcomp.c: Merge remainder of glibc's
3024         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
3025
3026         regcomp.c: sync white-space changes from glibc
3027         * lib/regcomp.c: Merge to accommodate white space
3028         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
3029
3030         regcomp.c: do not ignore internal return values
3031         * lib/regcomp.c: Do not ignore internal return values.
3032         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
3033         but without its white-space changes and spelling fixes.
3034
3035         regex_internal.h: define __attribute_warn_unused_result__
3036         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
3037
3038         maint: add a syntax-check rule to check for vulnerable Makefile.in
3039         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
3040
3041 2010-01-27  Jim Meyering  <meyering@redhat.com>
3042
3043         ncftpput-ftp: clean up spaces
3044         * build-aux/ncftpput-ftp: Make Copyright line consistent.
3045         Remove trailing blanks.
3046
3047 2010-01-27  Simon Josefsson  <simon@josefsson.org>
3048
3049         * build-aux/git-version-gen: Fix copyright statement.
3050         * build-aux/gnupload: Likewise.
3051         * tests/test-arcfour.c: Likewise.
3052         * tests/test-arctwo.c: Likewise.
3053         * tests/test-count-one-bits.c: Likewise.
3054         * tests/test-crc.c: Likewise.
3055         * tests/test-des.c: Likewise.
3056         * tests/test-gc-arcfour.c: Likewise.
3057         * tests/test-gc-arctwo.c: Likewise.
3058         * tests/test-gc-des.c: Likewise.
3059         * tests/test-gc-hmac-md5.c: Likewise.
3060         * tests/test-gc-hmac-sha1.c: Likewise.
3061         * tests/test-gc-md2.c: Likewise.
3062         * tests/test-gc-md4.c: Likewise.
3063         * tests/test-gc-md5.c: Likewise.
3064         * tests/test-gc-pbkdf2-sha1.c: Likewise.
3065         * tests/test-gc-rijndael.c: Likewise.
3066         * tests/test-gc-sha1.c: Likewise.
3067         * tests/test-gc.c: Likewise.
3068         * tests/test-gethostname.c: Likewise.
3069         * tests/test-gettimeofday.c: Likewise.
3070         * tests/test-hash.c: Likewise.
3071         * tests/test-hmac-md5.c: Likewise.
3072         * tests/test-hmac-sha1.c: Likewise.
3073         * tests/test-md2.c: Likewise.
3074         * tests/test-md4.c: Likewise.
3075         * tests/test-md5.c: Likewise.
3076         * tests/test-memchr.c: Likewise.
3077         * tests/test-memchr2.c: Likewise.
3078         * tests/test-memcmp.c: Likewise.
3079         * tests/test-memmem.c: Likewise.
3080         * tests/test-memrchr.c: Likewise.
3081         * tests/test-rawmemchr.c: Likewise.
3082         * tests/test-read-file.c: Likewise.
3083         * tests/test-rijndael.c: Likewise.
3084         * tests/test-sockets.c: Likewise.
3085         * tests/test-strchrnul.c: Likewise.
3086         * tests/test-strstr.c: Likewise.
3087         * tests/test-strtod.c: Likewise.
3088         * build-aux/ncftpput-ftp: Likewise.
3089
3090 2010-01-26  Eric Blake  <ebb9@byu.net>
3091
3092         ignore-value: update recommended header name
3093         * modules/ignore-value (Include): Only use <> for headers that
3094         exist in glibc.
3095
3096 2010-01-26  Jim Meyering  <meyering@redhat.com>
3097
3098         test-userspec.c: avoid compiler warnings
3099         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
3100         and "initialization discards qualifiers..." warnings.
3101         Put the first "uid" in its own scope, and make char* members "const".
3102
3103 2010-01-25  Bruno Haible  <bruno@clisp.org>
3104
3105         gnulib-tool: Make warning diagnostics consistent.
3106         * gnulib-tool (func_warning): New function.
3107         Use it everywhere where gnulib-tool produces output to stderr and it is
3108         not a fatal error.
3109
3110 2010-01-25  Bruno Haible  <bruno@clisp.org>
3111
3112         Fix test dependencies.
3113         * modules/xstrtol-tests (Depends-on): Add inttypes.
3114         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
3115
3116 2010-01-25 Pádraig Brady <P@draigBrady.com>
3117
3118         syntax-check: detect incorrect boolean macro values in config.h
3119         * modules/maintainer-makefile (configure.ac): Parameterize the location
3120         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
3121         The logic is from Eric Blake and the location indicated by Jim Meyering.
3122         Note the more natural CONFIG_HEADER name is prohibited by automake
3123         for backwards compatibility reasons.
3124         * top/maint.mk (sc_Wundef_boolean): New rule.
3125
3126 2010-01-25  Jim Meyering  <meyering@redhat.com>
3127
3128         bootstrap: detect MacOS 10.6's shasum, too
3129         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
3130         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
3131
3132 2010-01-23  Jim Meyering  <meyering@redhat.com>
3133
3134         xstrtoll: new module
3135         * modules/xstrtoll: New file.
3136         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
3137         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
3138         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
3139         ./configure fails if you use this module and lack "long long".
3140         * modules/xstrtoll-tests: New module.
3141         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
3142         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
3143         new init.sh-based test framework.
3144
3145 2010-01-24  Bruno Haible  <bruno@clisp.org>
3146
3147         Tests for module 'yn'.
3148         * modules/yn-tests: New file.
3149         * tests/test-yn.c: New file.
3150
3151         Tests for module 'y1'.
3152         * modules/y1-tests: New file.
3153         * tests/test-y1.c: New file.
3154
3155         Tests for module 'y0'.
3156         * modules/y0-tests: New file.
3157         * tests/test-y0.c: New file.
3158
3159         Tests for module 'tanh'.
3160         * modules/tanh-tests: New file.
3161         * tests/test-tanh.c: New file.
3162
3163         Tests for module 'tan'.
3164         * modules/tan-tests: New file.
3165         * tests/test-tan.c: New file.
3166
3167         Tests for module 'sqrt'.
3168         * modules/sqrt-tests: New file.
3169         * tests/test-sqrt.c: New file.
3170
3171         Tests for module 'sinh'.
3172         * modules/sinh-tests: New file.
3173         * tests/test-sinh.c: New file.
3174
3175         Tests for module 'sin'.
3176         * modules/sin-tests: New file.
3177         * tests/test-sin.c: New file.
3178
3179         Tests for module 'rint'.
3180         * modules/rint-tests: New file.
3181         * tests/test-rint.c: New file.
3182
3183         Tests for module 'remainder'.
3184         * modules/remainder-tests: New file.
3185         * tests/test-remainder.c: New file.
3186
3187         Tests for module 'pow'.
3188         * modules/pow-tests: New file.
3189         * tests/test-pow.c: New file.
3190
3191         Tests for module 'nextafter'.
3192         * modules/nextafter-tests: New file.
3193         * tests/test-nextafter.c: New file.
3194
3195         Tests for module 'modf'.
3196         * modules/modf-tests: New file.
3197         * tests/test-modf.c: New file.
3198
3199         Tests for module 'logb'.
3200         * modules/logb-tests: New file.
3201         * tests/test-logb.c: New file.
3202
3203         Tests for module 'log1p'.
3204         * modules/log1p-tests: New file.
3205         * tests/test-log1p.c: New file.
3206
3207         Tests for module 'log10'.
3208         * modules/log10-tests: New file.
3209         * tests/test-log10.c: New file.
3210
3211         Tests for module 'log'.
3212         * modules/log-tests: New file.
3213         * tests/test-log.c: New file.
3214
3215         Tests for module 'lgamma'.
3216         * modules/lgamma-tests: New file.
3217         * tests/test-lgamma.c: New file.
3218
3219         Tests for module 'ldexp'.
3220         * modules/ldexp-tests: New file.
3221         * tests/test-ldexp.c: New file.
3222
3223         Tests for module 'jn'.
3224         * modules/jn-tests: New file.
3225         * tests/test-jn.c: New file.
3226
3227         Tests for module 'j1'.
3228         * modules/j1-tests: New file.
3229         * tests/test-j1.c: New file.
3230
3231         Tests for module 'j0'.
3232         * modules/j0-tests: New file.
3233         * tests/test-j0.c: New file.
3234
3235         Tests for module 'hypot'.
3236         * modules/hypot-tests: New file.
3237         * tests/test-hypot.c: New file.
3238
3239         Tests for module 'fmod'.
3240         * modules/fmod-tests: New file.
3241         * tests/test-fmod.c: New file.
3242
3243         Tests for module 'fabs'.
3244         * modules/fabs-tests: New file.
3245         * tests/test-fabs.c: New file.
3246
3247         Tests for module 'exp'.
3248         * modules/exp-tests: New file.
3249         * tests/test-exp.c: New file.
3250
3251         Tests for module 'erfc'.
3252         * modules/erfc-tests: New file.
3253         * tests/test-erfc.c: New file.
3254
3255         Tests for module 'erf'.
3256         * modules/erf-tests: New file.
3257         * tests/test-erf.c: New file.
3258
3259         Tests for module 'cosh'.
3260         * modules/cosh-tests: New file.
3261         * tests/test-cosh.c: New file.
3262
3263         Tests for module 'cos'.
3264         * modules/cos-tests: New file.
3265         * tests/test-cos.c: New file.
3266
3267         Tests for module 'copysign'.
3268         * modules/copysign-tests: New file.
3269         * tests/test-copysign.c: New file.
3270
3271         Tests for module 'cbrt'.
3272         * modules/cbrt-tests: New file.
3273         * tests/test-cbrt.c: New file.
3274
3275         Tests for module 'atan2'.
3276         * modules/atan2-tests: New file.
3277         * tests/test-atan2.c: New file.
3278
3279         Tests for module 'atan'.
3280         * modules/atan-tests: New file.
3281         * tests/test-atan.c: New file.
3282
3283         Tests for module 'asin'.
3284         * modules/asin-tests: New file.
3285         * tests/test-asin.c: New file.
3286
3287         Tests for module 'acos'.
3288         * modules/acos-tests: New file.
3289         * tests/test-acos.c: New file.
3290
3291 2010-01-24  Bruno Haible  <bruno@clisp.org>
3292
3293         Fix tests for common <math.h> functions.
3294         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
3295         code snippet that references the function pointer, rather than merely
3296         calling the function. Substitute the FUNC_LIBM variable.
3297         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
3298         * modules/acos (configure.ac): Likewise.
3299         * modules/asin (configure.ac): Likewise.
3300         * modules/atan (configure.ac): Likewise.
3301         * modules/atan2 (configure.ac): Likewise.
3302         * modules/cbrt (configure.ac): Likewise.
3303         * modules/copysign (configure.ac): Likewise.
3304         * modules/cos (configure.ac): Likewise.
3305         * modules/cosh (configure.ac): Likewise.
3306         * modules/erf (configure.ac): Likewise.
3307         * modules/erfc (configure.ac): Likewise.
3308         * modules/exp (configure.ac): Likewise.
3309         * modules/fabs (configure.ac): Likewise.
3310         * modules/fmod (configure.ac): Likewise.
3311         * modules/hypot (configure.ac): Likewise.
3312         * modules/j0 (configure.ac): Likewise.
3313         * modules/j1 (configure.ac): Likewise.
3314         * modules/jn (configure.ac): Likewise.
3315         * modules/ldexp (configure.ac): Likewise.
3316         * modules/lgamma (configure.ac): Likewise.
3317         * modules/log (configure.ac): Likewise.
3318         * modules/log10 (configure.ac): Likewise.
3319         * modules/log1p (configure.ac): Likewise.
3320         * modules/logb (configure.ac): Likewise.
3321         * modules/modf (configure.ac): Likewise.
3322         * modules/nextafter (configure.ac): Likewise.
3323         * modules/pow (configure.ac): Likewise.
3324         * modules/remainder (configure.ac): Likewise.
3325         * modules/rint (configure.ac): Likewise.
3326         * modules/sin (configure.ac): Likewise.
3327         * modules/sinh (configure.ac): Likewise.
3328         * modules/tan (configure.ac): Likewise.
3329         * modules/tanh (configure.ac): Likewise.
3330         * modules/y0 (configure.ac): Likewise.
3331         * modules/y1 (configure.ac): Likewise.
3332         * modules/yn (configure.ac): Likewise.
3333
3334 2010-01-24  Bruno Haible  <bruno@clisp.org>
3335
3336         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
3337         * tests/test-acosl.c (x): New variable.
3338         (main): Store argument in x and fetch it from x.
3339         * tests/test-asinl.c (x): New variable.
3340         (main): Store argument in x and fetch it from x.
3341         * tests/test-atanl.c (x): New variable.
3342         (main): Store argument in x and fetch it from x.
3343         * tests/test-cosl.c (x): New variable.
3344         (main): Store argument in x and fetch it from x.
3345         * tests/test-expl.c (x): New variable.
3346         (main): Store argument in x and fetch it from x.
3347         * tests/test-logl.c (x): New variable.
3348         (main): Store argument in x and fetch it from x.
3349         * tests/test-sinl.c (x): New variable.
3350         (main): Store argument in x and fetch it from x.
3351         * tests/test-sqrtl.c (x): New variable.
3352         (main): Store argument in x and fetch it from x.
3353         * tests/test-tanl.c (x): New variable.
3354         (main): Store argument in x and fetch it from x.
3355
3356 2010-01-24  Bruno Haible  <bruno@clisp.org>
3357
3358         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
3359         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
3360         assignments to the initial TESTS_ENVIRONMENT.
3361         * doc/gnulib.texi (Unit test modules): Document it.
3362         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
3363         TESTS_ENVIRONMENT.
3364         * modules/btowc-tests (Makefile.am): Likewise.
3365         * modules/c-stack-tests (Makefile.am): Likewise.
3366         * modules/c-strcase-tests (Makefile.am): Likewise.
3367         * modules/copy-file-tests (Makefile.am): Likewise.
3368         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
3369         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
3370         * modules/mbrtowc-tests (Makefile.am): Likewise.
3371         * modules/mbscasecmp-tests (Makefile.am): Likewise.
3372         * modules/mbscasestr-tests (Makefile.am): Likewise.
3373         * modules/mbschr-tests (Makefile.am): Likewise.
3374         * modules/mbscspn-tests (Makefile.am): Likewise.
3375         * modules/mbsinit-tests (Makefile.am): Likewise.
3376         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
3377         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
3378         * modules/mbspbrk-tests (Makefile.am): Likewise.
3379         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
3380         * modules/mbsrchr-tests (Makefile.am): Likewise.
3381         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
3382         * modules/mbsspn-tests (Makefile.am): Likewise.
3383         * modules/mbsstr-tests (Makefile.am): Likewise.
3384         * modules/nl_langinfo-tests (Makefile.am): Likewise.
3385         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
3386         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
3387         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
3388         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
3389         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
3390         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
3391         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
3392         * modules/wcrtomb-tests (Makefile.am): Likewise.
3393         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
3394         * modules/wcsrtombs-tests (Makefile.am): Likewise.
3395         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
3396         assignments from TESTS_ENVIRONMENT.
3397         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
3398         augmentation.
3399         * modules/argp-version-etc-tests (Makefile.am): Likewise.
3400         * modules/atexit-tests (Makefile.am): Likewise.
3401         * modules/binary-io-tests (Makefile.am): Likewise.
3402         * modules/closein-tests (Makefile.am): Likewise.
3403         * modules/dprintf-posix-tests (Makefile.am): Likewise.
3404         * modules/exclude-tests (Makefile.am): Likewise.
3405         * modules/fflush-tests (Makefile.am): Likewise.
3406         * modules/fpending-tests (Makefile.am): Likewise.
3407         * modules/fprintf-posix-tests (Makefile.am): Likewise.
3408         * modules/freadahead-tests (Makefile.am): Likewise.
3409         * modules/freadptr-tests (Makefile.am): Likewise.
3410         * modules/freadseek-tests (Makefile.am): Likewise.
3411         * modules/fseek-tests (Makefile.am): Likewise.
3412         * modules/fseeko-tests (Makefile.am): Likewise.
3413         * modules/ftell-tests (Makefile.am): Likewise.
3414         * modules/ftello-tests (Makefile.am): Likewise.
3415         * modules/idpriv-drop-tests (Makefile.am): Likewise.
3416         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
3417         * modules/lseek-tests (Makefile.am): Likewise.
3418         * modules/parse-duration-tests (Makefile.am): Likewise.
3419         * modules/perror-tests (Makefile.am): Likewise.
3420         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
3421         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
3422         * modules/pipe-tests (Makefile.am): Likewise.
3423         * modules/pread-tests (Makefile.am): Likewise.
3424         * modules/printf-posix-tests (Makefile.am): Likewise.
3425         * modules/select-tests (Makefile.am): Likewise.
3426         * modules/sigpipe-tests (Makefile.am): Likewise.
3427         * modules/tsearch-tests (Makefile.am): Likewise.
3428         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
3429         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
3430         * modules/uniname/uniname-tests (Makefile.am): Likewise.
3431         * modules/uniwidth/width-tests (Makefile.am): Likewise.
3432         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
3433         * modules/version-etc-tests (Makefile.am): Likewise.
3434         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
3435         * modules/vprintf-posix-tests (Makefile.am): Likewise.
3436         * modules/xalloc-die-tests (Makefile.am): Likewise.
3437         * modules/xprintf-posix-tests (Makefile.am): Likewise.
3438         * modules/xstrtoimax-tests (Makefile.am): Likewise.
3439         * modules/xstrtol-tests (Makefile.am): Likewise.
3440         * modules/xstrtoumax-tests (Makefile.am): Likewise.
3441         * modules/yesno-tests (Makefile.am): Likewise.
3442         Suggested by Jim Meyering.
3443
3444 2010-01-24  Bruno Haible  <bruno@clisp.org>
3445
3446         More documentation.
3447         * doc/gnulib.texi (Writing modules): New chapter.
3448         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
3449         the new chapter.
3450
3451 2010-01-24  Jim Meyering  <meyering@redhat.com>
3452
3453         maint.mk: do not prepend "./" after filtering
3454         * top/maint.mk (_prepend_srcdir_prefix): New variable
3455         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
3456         "./" when $(srcdir) is ".".
3457
3458         define STREQ(a,b) consistently, removing useless parentheses
3459         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
3460         since the only risk is that "a" or "b" contains an unparenthesized
3461         comma, but if either did that, STREQ would have 3 or more arguments.
3462         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
3463         * lib/fts.c (STREQ): Remove unnecessary parentheses.
3464         * lib/hash-triple.c (STREQ): Likewise.
3465         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
3466         * lib/getugroups.c (STREQ): Likewise.
3467
3468 2010-01-23  Jim Meyering  <meyering@redhat.com>
3469
3470         maint.mk: fix syntax-check in a non-srcdir build directory
3471         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
3472         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
3473
3474 2010-01-22  Jim Meyering  <meyering@redhat.com>
3475
3476         userspec: add unit tests
3477         * tests/test-userspec.c: New file.
3478         * modules/userspec-tests: Likewise.
3479
3480 2010-01-21  Jim Meyering  <meyering@redhat.com>
3481
3482         maint.mk: handle source file names containing "." robustly
3483         * top/maint.mk (_dot_escaped_srcdir): Define.
3484         (VC_LIST): Use it in LHS of sed substitution.
3485
3486 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
3487
3488         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
3489         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
3490         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
3491         from a non-srcdir build.
3492
3493 2010-01-20  Eric Blake  <ebb9@byu.net>
3494
3495         warn-on-use: use instead of link-warning
3496         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
3497         * modules/unistd (Depends-on, Makefile.am): Likewise.
3498         * modules/arpa_inet (Depends-on): Replace link-warning with
3499         warn-on-use.
3500         (Makefile.am): Update rules accordingly.
3501         * modules/ctype (Depends-on, Makefile.am): Likewise.
3502         * modules/dirent (Depends-on, Makefile.am): Likewise.
3503         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
3504         * modules/inttypes (Depends-on, Makefile.am): Likewise.
3505         * modules/langinfo (Depends-on, Makefile.am): Likewise.
3506         * modules/locale (Depends-on, Makefile.am): Likewise.
3507         * modules/math (Depends-on, Makefile.am): Likewise.
3508         * modules/search (Depends-on, Makefile.am): Likewise.
3509         * modules/signal (Depends-on, Makefile.am): Likewise.
3510         * modules/spawn (Depends-on, Makefile.am): Likewise.
3511         * modules/stdlib (Depends-on, Makefile.am): Likewise.
3512         * modules/string (Depends-on, Makefile.am): Likewise.
3513         * modules/strings (Depends-on, Makefile.am): Likewise.
3514         * modules/sys_file (Depends-on, Makefile.am): Likewise.
3515         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
3516         * modules/sys_select (Depends-on, Makefile.am): Likewise.
3517         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
3518         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
3519         * modules/sys_times (Depends-on, Makefile.am): Likewise.
3520         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
3521         * modules/wchar (Depends-on, Makefile.am): Likewise.
3522         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
3523         should be poisoned.
3524         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
3525         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
3526         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
3527         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
3528         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
3529         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
3530         * m4/math_h.m4 (gl_MATH_H): Likewise.
3531         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
3532         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
3533         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3534         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
3535         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
3536         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
3537         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
3538         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
3539         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
3540         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3541         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
3542         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
3543         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
3544         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
3545         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3546         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
3547         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
3548         GL_LINK_WARNING.
3549         * lib/ctype.in.h: Likewise.
3550         * lib/dirent.in.h: Likewise.
3551         * lib/fcntl.in.h: Likewise.
3552         * lib/inttypes.in.h: Likewise.
3553         * lib/langinfo.in.h: Likewise.
3554         * lib/locale.in.h: Likewise.
3555         * lib/math.in.h: Likewise.
3556         * lib/search.in.h: Likewise.
3557         * lib/signal.in.h: Likewise.
3558         * lib/spawn.in.h: Likewise.
3559         * lib/stdio.in.h: Likewise.
3560         * lib/stdlib.in.h: Likewise.
3561         * lib/string.in.h: Likewise.
3562         * lib/strings.in.h: Likewise.
3563         * lib/sys_file.in.h: Likewise.
3564         * lib/sys_ioctl.in.h: Likewise.
3565         * lib/sys_select.in.h: Likewise.
3566         * lib/sys_socket.in.h: Likewise.
3567         * lib/sys_stat.in.h: Likewise.
3568         * lib/sys_times.in.h: Likewise.
3569         * lib/sys_utsname.in.h: Likewise.
3570         * lib/unistd.in.h: Likewise.
3571         * lib/wchar.in.h: Likewise.
3572
3573 2010-01-20  Bruno Haible  <bruno@clisp.org>
3574
3575         Avoid duplicate -lm.
3576         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
3577         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
3578         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
3579         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
3580         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
3581         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
3582         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
3583         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
3584         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
3585         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
3586         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
3587         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
3588         Reported by Paolo Bonzini.
3589
3590 2010-01-19  Bruno Haible  <bruno@clisp.org>
3591
3592         langinfo, nl_langinfo: Relicense under LGPLv2+.
3593         * modules/langinfo (License): Change to LGPLv2+.
3594         * modules/nl_langinfo (License): Likewise.
3595         Patch by David Lutterkort <lutter@redhat.com>.
3596
3597 2010-01-19  Bruno Haible  <bruno@clisp.org>
3598
3599         Avoid compilation error with cc on OSF/1 5.1.
3600         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
3601         statement, not before.
3602         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3603
3604 2010-01-18  Bruno Haible  <bruno@clisp.org>
3605
3606         Avoid a link error due to the __printf__ symbol.
3607         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
3608         and 2.6.x.
3609         (__format__, __printf__): Remove definitions.
3610         * lib/argp-fmtstream.h: Likewise.
3611         * lib/argp.h: Likewise.
3612         * lib/error.h: Likewise.
3613         * lib/vasnprintf.h: Likewise.
3614         * lib/xprintf.h: Likewise.
3615         * lib/xvasprintf.h: Likewise.
3616         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3617
3618 2010-01-18  Bruno Haible  <bruno@clisp.org>
3619
3620         Tests for module 'tanl'.
3621         * modules/tanl-tests: New file.
3622         * tests/test-tanl.c: New file.
3623
3624         Tests for module 'sqrtl'.
3625         * modules/sqrtl-tests: New file.
3626         * tests/test-sqrtl.c: New file.
3627
3628         Tests for module 'sinl'.
3629         * modules/sinl-tests: New file.
3630         * tests/test-sinl.c: New file.
3631
3632         Tests for module 'logl'.
3633         * modules/logl-tests: New file.
3634         * tests/test-logl.c: New file.
3635
3636         Tests for module 'expl'.
3637         * modules/expl-tests: New file.
3638         * tests/test-expl.c: New file.
3639
3640         Tests for module 'cosl'.
3641         * modules/cosl-tests: New file.
3642         * tests/test-cosl.c: New file.
3643
3644         Tests for module 'atanl'.
3645         * modules/atanl-tests: New file.
3646         * tests/test-atanl.c: New file.
3647
3648         Tests for module 'asinl'.
3649         * modules/asinl-tests: New file.
3650         * tests/test-asinl.c: New file.
3651
3652         Tests for module 'acosl'.
3653         * modules/acosl-tests: New file.
3654         * tests/test-acosl.c: New file.
3655
3656         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
3657         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
3658         tanl): Use the standard gnulib idiom.
3659         * lib/cosl.c: Don't include trigl.c and sincosl.c.
3660         * lib/sinl.c: Likewise.
3661         * lib/tanl.c: Don't include trigl.c.
3662         (kernel_tanl): Make static.
3663         * lib/sincosl.c: Include trigl.h first.
3664         * lib/trigl.c: Likewise.
3665         * m4/acosl.m4: New file.
3666         * m4/asinl.m4: New file.
3667         * m4/atanl.m4: New file.
3668         * m4/cosl.m4: New file.
3669         * m4/expl.m4: New file.
3670         * m4/logl.m4: New file.
3671         * m4/sinl.m4: New file.
3672         * m4/sqrtl.m4: New file.
3673         * m4/tanl.m4: New file.
3674         * m4/mathl.m4: Remove file.
3675         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
3676         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
3677         Don't initialize GNULIB_MATHL.
3678         * modules/acosl: New file.
3679         * modules/asinl: New file.
3680         * modules/atanl: New file.
3681         * modules/cosl: New file.
3682         * modules/expl: New file.
3683         * modules/logl: New file.
3684         * modules/sinl: New file.
3685         * modules/sqrtl: New file.
3686         * modules/tanl: New file.
3687         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
3688         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
3689         substitute GNULIB_MATHL.
3690         * modules/mathl: Rewritten.
3691         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
3692         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
3693         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
3694         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
3695         * doc/posix-functions/expl.texi: Mention the 'expl' module.
3696         * doc/posix-functions/logl.texi: Mention the 'logl' module.
3697         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
3698         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
3699         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
3700
3701 2010-01-18  Bruno Haible  <bruno@clisp.org>
3702
3703         sqrt: Make gl_FUNC_SQRT requirable.
3704         * m4/sqrt.m4: New file.
3705         * modules/sqrt (Files): Add it.
3706         (configure.ac): Invoke gl_FUNC_SQRT.
3707
3708 2010-01-18  Bruno Haible  <bruno@clisp.org>
3709
3710         New modules for common <math.h> functions.
3711         * m4/mathfunc.m4: New file.
3712         * modules/acos: New file.
3713         * modules/asin: New file.
3714         * modules/atan: New file.
3715         * modules/atan2: New file.
3716         * modules/cbrt: New file.
3717         * modules/copysign: New file.
3718         * modules/cos: New file.
3719         * modules/cosh: New file.
3720         * modules/erf: New file.
3721         * modules/erfc: New file.
3722         * modules/exp: New file.
3723         * modules/fabs: New file.
3724         * modules/fmod: New file.
3725         * modules/hypot: New file.
3726         * modules/j0: New file.
3727         * modules/j1: New file.
3728         * modules/jn: New file.
3729         * modules/ldexp: New file.
3730         * modules/lgamma: New file.
3731         * modules/log: New file.
3732         * modules/log10: New file.
3733         * modules/log1p: New file.
3734         * modules/logb: New file.
3735         * modules/modf: New file.
3736         * modules/nextafter: New file.
3737         * modules/pow: New file.
3738         * modules/remainder: New file.
3739         * modules/rint: New file.
3740         * modules/sin: New file.
3741         * modules/sinh: New file.
3742         * modules/sqrt: New file.
3743         * modules/tan: New file.
3744         * modules/tanh: New file.
3745         * modules/y0: New file.
3746         * modules/y1: New file.
3747         * modules/yn: New file.
3748         * doc/posix-functions/acos.texi: Mention the 'acos' module.
3749         * doc/posix-functions/asin.texi: Mention the 'asin' module.
3750         * doc/posix-functions/atan.texi: Mention the 'atan' module.
3751         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
3752         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
3753         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
3754         * doc/posix-functions/cos.texi: Mention the 'cos' module.
3755         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
3756         * doc/posix-functions/erf.texi: Mention the 'erf' module.
3757         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
3758         * doc/posix-functions/exp.texi: Mention the 'exp' module.
3759         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
3760         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
3761         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
3762         * doc/posix-functions/j0.texi: Mention the 'j0' module.
3763         * doc/posix-functions/j1.texi: Mention the 'j1' module.
3764         * doc/posix-functions/jn.texi: Mention the 'jn' module.
3765         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
3766         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
3767         * doc/posix-functions/log.texi: Mention the 'log' module.
3768         * doc/posix-functions/log10.texi: Mention the 'log10' module.
3769         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
3770         * doc/posix-functions/logb.texi: Mention the 'logb' module.
3771         * doc/posix-functions/modf.texi: Mention the 'modf' module.
3772         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
3773         * doc/posix-functions/pow.texi: Mention the 'pow' module.
3774         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
3775         * doc/posix-functions/rint.texi: Mention the 'rint' module.
3776         * doc/posix-functions/sin.texi: Mention the 'sin' module.
3777         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
3778         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
3779         * doc/posix-functions/tan.texi: Mention the 'tan' module.
3780         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
3781         * doc/posix-functions/y0.texi: Mention the 'y0' module.
3782         * doc/posix-functions/y1.texi: Mention the 'y1' module.
3783         * doc/posix-functions/yn.texi: Mention the 'yn' module.
3784
3785 2010-01-18  Jim Meyering  <meyering@redhat.com>
3786
3787         ignore-value: relax license to LGPLv2+
3788         * modules/ignore-value (License): Relax to LGPLv2+.
3789
3790         getdate: don't leak when TZ contains two or more '"'s
3791         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
3792         double quote in TZ after the first one.
3793
3794         readtokens: do not leak internal token_lengths buffer
3795         * lib/readtokens.c (readtokens): Free the local, lengths,
3796         when the supplied "token_lengths" parameter is NULL.
3797
3798 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3799
3800         Fix a couple of missing LIBTHREAD link failures on AIX.
3801         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
3802         $(LIBTHREAD).
3803         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
3804
3805         Link test-poll against INET_PTON_LIB.
3806         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
3807         for inet_pton on Solaris 10.
3808
3809 2010-01-17  Bruno Haible  <bruno@clisp.org>
3810
3811         unistdio/*-sprintf: Fix typo in module description.
3812         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
3813         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
3814         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
3815         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
3816         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
3817         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
3818         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
3819         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3820
3821 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3822
3823         gnulib-tool: fix filelist for AIX, HP-UX ksh.
3824         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
3825         variables in shell case patterns, for AIX and HP-UX ksh.
3826
3827         Split large sed scripts, for HP-UX sed.
3828         * modules/stdio: Split sed scripts around 50 sed commands,
3829         to avoid HP-UX limit of 99 commands, in the near future.
3830         * modules/string: Likewise.
3831         * modules/unistd: Likewise.
3832
3833         gnulib-tool: avoid writing in the current directory.
3834         * gnulib-tool (func_emit_lib_Makefile_am)
3835         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
3836         not in the current directory, so concurrent gnulib-tool
3837         instances do not interfere.
3838
3839 2010-01-16  Jim Meyering  <meyering@redhat.com>
3840
3841         doc: update users.txt
3842         * users.txt: Add grep.
3843         (diffutils, gzip): Update URLs.
3844
3845 2010-01-12  Bruno Haible  <bruno@clisp.org>
3846
3847         posix_spawn: Avoid test failure on Cygwin.
3848         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
3849         characters.
3850         Reported by Simon Josefsson.
3851
3852 2010-01-12  Bruno Haible  <bruno@clisp.org>
3853
3854         * tests/test-cond.c (main): When skipping the test, show the reason.
3855
3856 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3857
3858         * lib/striconv.c (str_cd_iconv): Avoid if before free.
3859
3860 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3861
3862         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
3863         VC_LIST_ALWAYS_EXCLUDE_REGEX.
3864
3865 2010-01-12  Eric Blake  <ebb9@byu.net>
3866
3867         build: guarantee AS_VAR_IF
3868         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
3869         (gl_AS_VAR_IF): Move...
3870         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
3871         Reported by Simon Josefsson.
3872
3873 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3874
3875         * lib/stdio.in.h: Fix typo.
3876
3877 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3878
3879         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
3880         libgpg-error.
3881
3882 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3883
3884         * tests/test-xalloc-die.sh: Use $EXEEXT.
3885
3886 2010-01-12  Simon Josefsson  <simon@josefsson.org>
3887             Bruno Haible  <bruno@clisp.org>
3888
3889         getlogin, getlogin_r: Avoid test failure.
3890         * tests/test-getlogin.c: Include <stdio.h>.
3891         (main): Skip the test when the function fails because stdin is not a
3892         tty.
3893         * tests/test-getlogin_r.c: Include <stdio.h>.
3894         (main): Skip the test when the function fails because stdin is not a
3895         tty.
3896
3897 2010-01-11  Eric Blake  <ebb9@byu.net>
3898
3899         tests: avoid more large file warnings
3900         * tests/test-fflush.c: Avoid warning about ftell use.
3901         * tests/test-fseek.c: Avoid warning about fseek use.
3902
3903 2010-01-10  Bruno Haible  <bruno@clisp.org>
3904
3905         nproc: Work better on Linux when /proc and /sys are not mounted.
3906         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
3907         as lower bound when, on glibc/Linux systems,
3908         sysconf (_SC_NPROCESSORS_CONF) returns 1.
3909         Suggested by Pádraig Brady <P@draigbrady.com>.
3910         Reported by Dmitry V. Levin <ldv@altlinux.org>.
3911
3912         nproc: Refactor.
3913         * lib/nproc.c (num_processors_via_affinity_mask): New function,
3914         extracted from num_processors.
3915         (num_processors): Call it.
3916
3917 2010-01-11  Jim Meyering  <meyering@redhat.com>
3918
3919         utimecmp: avoid new warning from upcoming gcc-4.5.0
3920         * lib/utimecmp.c (BILLION): Define using #define rather than an
3921         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
3922
3923 2010-01-11  Eric Blake  <ebb9@byu.net>
3924
3925         math: add portability warnings for classification macros
3926         * modules/math (Depends-on): Add warn-on-use.
3927         (Makefile.am): Provide new substitutions.
3928         * m4/math_h.m4 (gl_MATH_H): Require inline.
3929         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
3930         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
3931         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
3932         implement warnings.
3933
3934         unistd: warn on use of environ without module
3935         * modules/unistd (Depends-on): Add warn-on-use.
3936         (Makefile.am): Provide new substitutions.
3937         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
3938         * lib/unistd.in.h (environ): Wrap with a warning helper function.
3939
3940         stdio: warn on suspicious uses
3941         * modules/stdio (Depends-on): Add warn-on-use.
3942         (Makefile.am): Provide new substitutions.
3943         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
3944         fseeko.
3945         * lib/stdio.in.h (gets): Always warn on use.
3946         (fseek, ftell): Adjust when warnings are issued, and honor
3947         _GL_NO_LARGE_FILES as a way to silence the warning.
3948         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
3949         any warning about large file offsets.
3950         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
3951         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
3952         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
3953         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
3954         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
3955         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
3956         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
3957         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
3958
3959         warn-on-use: new module
3960         * modules/warn-on-use: New file.
3961         * build-aux/warn-on-use.h: Likewise.
3962         * m4/warn-on-use.m4: Likewise.
3963         * MODULES.html.sh (Support for building): Mention it.
3964
3965 2010-01-10  Bruno Haible  <bruno@clisp.org>
3966
3967         Tests for module 'unistr/u32-strdup'.
3968         * modules/unistr/u32-strdup-tests: New file.
3969         * tests/unistr/test-u32-strdup.c: New file.
3970
3971         Tests for module 'unistr/u16-strdup'.
3972         * modules/unistr/u16-strdup-tests: New file.
3973         * tests/unistr/test-u16-strdup.c: New file.
3974
3975         Tests for module 'unistr/u8-strdup'.
3976         * modules/unistr/u8-strdup-tests: New file.
3977         * tests/unistr/test-u8-strdup.c: New file.
3978         * tests/unistr/test-strdup.h: New file.
3979
3980         Tests for module 'unistr/u32-strncmp'.
3981         * modules/unistr/u32-strncmp-tests: New file.
3982         * tests/unistr/test-u32-strncmp.c: New file.
3983
3984         Tests for module 'unistr/u16-strncmp'.
3985         * modules/unistr/u16-strncmp-tests: New file.
3986         * tests/unistr/test-u16-strncmp.c: New file.
3987
3988         Tests for module 'unistr/u8-strncmp'.
3989         * modules/unistr/u8-strncmp-tests: New file.
3990         * tests/unistr/test-u8-strncmp.c: New file.
3991         * tests/unistr/test-strncmp.h: New file.
3992
3993         Tests for module 'unistr/u32-strcoll'.
3994         * modules/unistr/u32-strcoll-tests: New file.
3995         * tests/unistr/test-u32-strcoll.c: New file.
3996
3997         Tests for module 'unistr/u16-strcoll'.
3998         * modules/unistr/u16-strcoll-tests: New file.
3999         * tests/unistr/test-u16-strcoll.c: New file.
4000
4001         Tests for module 'unistr/u8-strcoll'.
4002         * modules/unistr/u8-strcoll-tests: New file.
4003         * tests/unistr/test-u8-strcoll.c: New file.
4004
4005         Tests for module 'unistr/u32-strcmp'.
4006         * modules/unistr/u32-strcmp-tests: New file.
4007         * tests/unistr/test-u32-strcmp.c: New file.
4008         * tests/unistr/test-u32-strcmp.h: New file.
4009
4010         Tests for module 'unistr/u16-strcmp'.
4011         * modules/unistr/u16-strcmp-tests: New file.
4012         * tests/unistr/test-u16-strcmp.c: New file.
4013         * tests/unistr/test-u16-strcmp.h: New file.
4014
4015         Tests for module 'unistr/u8-strcmp'.
4016         * modules/unistr/u8-strcmp-tests: New file.
4017         * tests/unistr/test-u8-strcmp.c: New file.
4018         * tests/unistr/test-u8-strcmp.h: New file.
4019         * tests/unistr/test-strcmp.h: New file.
4020
4021         Tests for module 'unistr/u32-strncat'.
4022         * modules/unistr/u32-strncat-tests: New file.
4023         * tests/unistr/test-u32-strncat.c: New file.
4024
4025         Tests for module 'unistr/u16-strncat'.
4026         * modules/unistr/u16-strncat-tests: New file.
4027         * tests/unistr/test-u16-strncat.c: New file.
4028
4029         Tests for module 'unistr/u8-strncat'.
4030         * modules/unistr/u8-strncat-tests: New file.
4031         * tests/unistr/test-u8-strncat.c: New file.
4032         * tests/unistr/test-strncat.h: New file.
4033
4034         Tests for module 'unistr/u32-strcat'.
4035         * modules/unistr/u32-strcat-tests: New file.
4036         * tests/unistr/test-u32-strcat.c: New file.
4037
4038         Tests for module 'unistr/u16-strcat'.
4039         * modules/unistr/u16-strcat-tests: New file.
4040         * tests/unistr/test-u16-strcat.c: New file.
4041
4042         Tests for module 'unistr/u8-strcat'.
4043         * modules/unistr/u8-strcat-tests: New file.
4044         * tests/unistr/test-u8-strcat.c: New file.
4045         * tests/unistr/test-strcat.h: New file.
4046
4047         Tests for module 'unistr/u32-stpncpy'.
4048         * modules/unistr/u32-stpncpy-tests: New file.
4049         * tests/unistr/test-u32-stpncpy.c: New file.
4050
4051         Tests for module 'unistr/u16-stpncpy'.
4052         * modules/unistr/u16-stpncpy-tests: New file.
4053         * tests/unistr/test-u16-stpncpy.c: New file.
4054
4055         Tests for module 'unistr/u8-stpncpy'.
4056         * modules/unistr/u8-stpncpy-tests: New file.
4057         * tests/unistr/test-u8-stpncpy.c: New file.
4058         * tests/unistr/test-stpncpy.h: New file.
4059
4060         Tests for module 'unistr/u32-strncpy'.
4061         * modules/unistr/u32-strncpy-tests: New file.
4062         * tests/unistr/test-u32-strncpy.c: New file.
4063
4064         Tests for module 'unistr/u16-strncpy'.
4065         * modules/unistr/u16-strncpy-tests: New file.
4066         * tests/unistr/test-u16-strncpy.c: New file.
4067
4068         Tests for module 'unistr/u8-strncpy'.
4069         * modules/unistr/u8-strncpy-tests: New file.
4070         * tests/unistr/test-u8-strncpy.c: New file.
4071         * tests/unistr/test-strncpy.h: New file.
4072
4073         Tests for module 'unistr/u32-stpcpy'.
4074         * modules/unistr/u32-stpcpy-tests: New file.
4075         * tests/unistr/test-u32-stpcpy.c: New file.
4076
4077         Tests for module 'unistr/u16-stpcpy'.
4078         * modules/unistr/u16-stpcpy-tests: New file.
4079         * tests/unistr/test-u16-stpcpy.c: New file.
4080
4081         Tests for module 'unistr/u8-stpcpy'.
4082         * modules/unistr/u8-stpcpy-tests: New file.
4083         * tests/unistr/test-u8-stpcpy.c: New file.
4084         * tests/unistr/test-stpcpy.h: New file.
4085
4086         Tests for module 'unistr/u32-strcpy'.
4087         * modules/unistr/u32-strcpy-tests: New file.
4088         * tests/unistr/test-u32-strcpy.c: New file.
4089
4090         Tests for module 'unistr/u16-strcpy'.
4091         * modules/unistr/u16-strcpy-tests: New file.
4092         * tests/unistr/test-u16-strcpy.c: New file.
4093
4094         Tests for module 'unistr/u8-strcpy'.
4095         * modules/unistr/u8-strcpy-tests: New file.
4096         * tests/unistr/test-u8-strcpy.c: New file.
4097         * tests/unistr/test-strcpy.h: New file.
4098
4099         Tests for module 'unistr/u32-strnlen'.
4100         * modules/unistr/u32-strnlen-tests: New file.
4101         * tests/unistr/test-u32-strnlen.c: New file.
4102
4103         Tests for module 'unistr/u16-strnlen'.
4104         * modules/unistr/u16-strnlen-tests: New file.
4105         * tests/unistr/test-u16-strnlen.c: New file.
4106
4107         Tests for module 'unistr/u8-strnlen'.
4108         * modules/unistr/u8-strnlen-tests: New file.
4109         * tests/unistr/test-u8-strnlen.c: New file.
4110         * tests/unistr/test-strnlen.h: New file.
4111
4112         Tests for module 'unistr/u32-strlen'.
4113         * modules/unistr/u32-strlen-tests: New file.
4114         * tests/unistr/test-u32-strlen.c: New file.
4115
4116         Tests for module 'unistr/u16-strlen'.
4117         * modules/unistr/u16-strlen-tests: New file.
4118         * tests/unistr/test-u16-strlen.c: New file.
4119
4120         Tests for module 'unistr/u8-strlen'.
4121         * modules/unistr/u8-strlen-tests: New file.
4122         * tests/unistr/test-u8-strlen.c: New file.
4123
4124         Tests for module 'unistr/u32-prev'.
4125         * modules/unistr/u32-prev-tests: New file.
4126         * tests/unistr/test-u32-prev.c: New file.
4127
4128         Tests for module 'unistr/u16-prev'.
4129         * modules/unistr/u16-prev-tests: New file.
4130         * tests/unistr/test-u16-prev.c: New file.
4131
4132         Tests for module 'unistr/u8-prev'.
4133         * modules/unistr/u8-prev-tests: New file.
4134         * tests/unistr/test-u8-prev.c: New file.
4135
4136         Tests for module 'unistr/u32-next'.
4137         * modules/unistr/u32-next-tests: New file.
4138         * tests/unistr/test-u32-next.c: New file.
4139
4140         Tests for module 'unistr/u16-next'.
4141         * modules/unistr/u16-next-tests: New file.
4142         * tests/unistr/test-u16-next.c: New file.
4143
4144         Tests for module 'unistr/u8-next'.
4145         * modules/unistr/u8-next-tests: New file.
4146         * tests/unistr/test-u8-next.c: New file.
4147
4148         Tests for module 'unistr/u32-strmbtouc'.
4149         * modules/unistr/u32-strmbtouc-tests: New file.
4150         * tests/unistr/test-u32-strmbtouc.c: New file.
4151
4152         Tests for module 'unistr/u16-strmbtouc'.
4153         * modules/unistr/u16-strmbtouc-tests: New file.
4154         * tests/unistr/test-u16-strmbtouc.c: New file.
4155
4156         Tests for module 'unistr/u8-strmbtouc'.
4157         * modules/unistr/u8-strmbtouc-tests: New file.
4158         * tests/unistr/test-u8-strmbtouc.c: New file.
4159
4160         Tests for module 'unistr/u32-strmblen'.
4161         * modules/unistr/u32-strmblen-tests: New file.
4162         * tests/unistr/test-u32-strmblen.c: New file.
4163
4164         Tests for module 'unistr/u16-strmblen'.
4165         * modules/unistr/u16-strmblen-tests: New file.
4166         * tests/unistr/test-u16-strmblen.c: New file.
4167
4168         Tests for module 'unistr/u8-strmblen'.
4169         * modules/unistr/u8-strmblen-tests: New file.
4170         * tests/unistr/test-u8-strmblen.c: New file.
4171
4172         Tests for module 'unistr/u32-cpy-alloc'.
4173         * modules/unistr/u32-cpy-alloc-tests: New file.
4174         * tests/unistr/test-u32-cpy-alloc.c: New file.
4175
4176         Tests for module 'unistr/u16-cpy-alloc'.
4177         * modules/unistr/u16-cpy-alloc-tests: New file.
4178         * tests/unistr/test-u16-cpy-alloc.c: New file.
4179
4180         Tests for module 'unistr/u8-cpy-alloc'.
4181         * modules/unistr/u8-cpy-alloc-tests: New file.
4182         * tests/unistr/test-u8-cpy-alloc.c: New file.
4183         * tests/unistr/test-cpy-alloc.h: New file.
4184
4185         Tests for module 'unistr/u32-mbsnlen'.
4186         * modules/unistr/u32-mbsnlen-tests: New file.
4187         * tests/unistr/test-u32-mbsnlen.c: New file.
4188
4189         Tests for module 'unistr/u16-mbsnlen'.
4190         * modules/unistr/u16-mbsnlen-tests: New file.
4191         * tests/unistr/test-u16-mbsnlen.c: New file.
4192
4193         Tests for module 'unistr/u8-mbsnlen'.
4194         * modules/unistr/u8-mbsnlen-tests: New file.
4195         * tests/unistr/test-u8-mbsnlen.c: New file.
4196
4197         Tests for module 'unistr/u32-chr'.
4198         * modules/unistr/u32-chr-tests: New file.
4199         * tests/unistr/test-u32-chr.c: New file.
4200
4201         Tests for module 'unistr/u16-chr'.
4202         * modules/unistr/u16-chr-tests: New file.
4203         * tests/unistr/test-u16-chr.c: New file.
4204
4205         Tests for module 'unistr/u8-chr'.
4206         * modules/unistr/u8-chr-tests: New file.
4207         * tests/unistr/test-u8-chr.c: New file.
4208         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
4209
4210         Tests for module 'unistr/u32-cmp2'.
4211         * modules/unistr/u32-cmp2-tests: New file.
4212         * tests/unistr/test-u32-cmp2.c: New file.
4213
4214         Tests for module 'unistr/u16-cmp2'.
4215         * modules/unistr/u16-cmp2-tests: New file.
4216         * tests/unistr/test-u16-cmp2.c: New file.
4217
4218         Tests for module 'unistr/u8-cmp2'.
4219         * modules/unistr/u8-cmp2-tests: New file.
4220         * tests/unistr/test-u8-cmp2.c: New file.
4221         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
4222
4223         Tests for module 'unistr/u32-cmp'.
4224         * modules/unistr/u32-cmp-tests: New file.
4225         * tests/unistr/test-u32-cmp.c: New file.
4226
4227         Tests for module 'unistr/u16-cmp'.
4228         * modules/unistr/u16-cmp-tests: New file.
4229         * tests/unistr/test-u16-cmp.c: New file.
4230
4231         Tests for module 'unistr/u8-cmp'.
4232         * modules/unistr/u8-cmp-tests: New file.
4233         * tests/unistr/test-u8-cmp.c: New file.
4234         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
4235
4236         Tests for module 'unistr/u32-set'.
4237         * modules/unistr/u32-set-tests: New file.
4238         * tests/unistr/test-u32-set.c: New file.
4239
4240         Tests for module 'unistr/u16-set'.
4241         * modules/unistr/u16-set-tests: New file.
4242         * tests/unistr/test-u16-set.c: New file.
4243
4244         Tests for module 'unistr/u8-set'.
4245         * modules/unistr/u8-set-tests: New file.
4246         * tests/unistr/test-u8-set.c: New file.
4247         * tests/unistr/test-set.h: New file.
4248
4249         Tests for module 'unistr/u32-move'.
4250         * modules/unistr/u32-move-tests: New file.
4251         * tests/unistr/test-u32-move.c: New file.
4252
4253         Tests for module 'unistr/u16-move'.
4254         * modules/unistr/u16-move-tests: New file.
4255         * tests/unistr/test-u16-move.c: New file.
4256
4257         Tests for module 'unistr/u8-move'.
4258         * modules/unistr/u8-move-tests: New file.
4259         * tests/unistr/test-u8-move.c: New file.
4260         * tests/unistr/test-move.h: New file.
4261
4262         Tests for module 'unistr/u32-cpy'.
4263         * modules/unistr/u32-cpy-tests: New file.
4264         * tests/unistr/test-u32-cpy.c: New file.
4265
4266         Tests for module 'unistr/u16-cpy'.
4267         * modules/unistr/u16-cpy-tests: New file.
4268         * tests/unistr/test-u16-cpy.c: New file.
4269
4270         Tests for module 'unistr/u8-cpy'.
4271         * modules/unistr/u8-cpy-tests: New file.
4272         * tests/unistr/test-u8-cpy.c: New file.
4273         * tests/unistr/test-cpy.h: New file.
4274
4275 2010-01-09  Bruno Haible  <bruno@clisp.org>
4276
4277         Tests for module 'unistr/u32-uctomb'.
4278         * modules/unistr/u32-uctomb-tests: New file.
4279         * tests/unistr/test-u32-uctomb.c: New file.
4280
4281         Tests for module 'unistr/u16-uctomb'.
4282         * modules/unistr/u16-uctomb-tests: New file.
4283         * tests/unistr/test-u16-uctomb.c: New file.
4284
4285         Tests for module 'unistr/u8-uctomb'.
4286         * modules/unistr/u8-uctomb-tests: New file.
4287         * tests/unistr/test-u8-uctomb.c: New file.
4288
4289         Tests for module 'unistr/u32-mbtoucr'.
4290         * modules/unistr/u32-mbtoucr-tests: New file.
4291         * tests/unistr/test-u32-mbtoucr.c: New file.
4292
4293         Tests for module 'unistr/u16-mbtoucr'.
4294         * modules/unistr/u16-mbtoucr-tests: New file.
4295         * tests/unistr/test-u16-mbtoucr.c: New file.
4296
4297         Tests for module 'unistr/u8-mbtoucr'.
4298         * modules/unistr/u8-mbtoucr-tests: New file.
4299         * tests/unistr/test-u8-mbtoucr.c: New file.
4300
4301         Tests for module 'unistr/u32-mbtouc'.
4302         * modules/unistr/u32-mbtouc-tests: New file.
4303         * tests/unistr/test-u32-mbtouc.c: New file.
4304
4305         Tests for module 'unistr/u16-mbtouc'.
4306         * modules/unistr/u16-mbtouc-tests: New file.
4307         * tests/unistr/test-u16-mbtouc.c: New file.
4308
4309         Tests for module 'unistr/u8-mbtouc'.
4310         * modules/unistr/u8-mbtouc-tests: New file.
4311         * tests/unistr/test-u8-mbtouc.c: New file.
4312
4313         Tests for module 'unistr/u32-mbtouc-unsafe'.
4314         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
4315         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
4316         * tests/unistr/test-u32-mbtouc.h: New file.
4317
4318         Tests for module 'unistr/u16-mbtouc-unsafe'.
4319         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
4320         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
4321         * tests/unistr/test-u16-mbtouc.h: New file.
4322
4323         Tests for module 'unistr/u8-mbtouc-unsafe'.
4324         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
4325         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
4326         * tests/unistr/test-u8-mbtouc.h: New file.
4327
4328         Tests for module 'unistr/u32-mblen'.
4329         * modules/unistr/u32-mblen-tests: New file.
4330         * tests/unistr/test-u32-mblen.c: New file.
4331
4332         Tests for module 'unistr/u16-mblen'.
4333         * modules/unistr/u16-mblen-tests: New file.
4334         * tests/unistr/test-u16-mblen.c: New file.
4335
4336         Tests for module 'unistr/u8-mblen'.
4337         * modules/unistr/u8-mblen-tests: New file.
4338         * tests/unistr/test-u8-mblen.c: New file.
4339
4340         Tests for module 'unistr/u32-to-u16'.
4341         * modules/unistr/u32-to-u16-tests: New file.
4342         * tests/unistr/test-u32-to-u16.c: New file.
4343
4344         Tests for module 'unistr/u32-to-u8'.
4345         * modules/unistr/u32-to-u8-tests: New file.
4346         * tests/unistr/test-u32-to-u8.c: New file.
4347
4348         Tests for module 'unistr/u16-to-u32'.
4349         * modules/unistr/u16-to-u32-tests: New file.
4350         * tests/unistr/test-u16-to-u32.c: New file.
4351
4352         Tests for module 'unistr/u16-to-u8'.
4353         * modules/unistr/u16-to-u8-tests: New file.
4354         * tests/unistr/test-u16-to-u8.c: New file.
4355
4356         Tests for module 'unistr/u8-to-u32'.
4357         * modules/unistr/u8-to-u32-tests: New file.
4358         * tests/unistr/test-u8-to-u32.c: New file.
4359
4360         Tests for module 'unistr/u8-to-u16'.
4361         * modules/unistr/u8-to-u16-tests: New file.
4362         * tests/unistr/test-u8-to-u16.c: New file.
4363
4364         Tests for module 'unistr/u32-check'.
4365         * modules/unistr/u32-check-tests: New file.
4366         * tests/unistr/test-u32-check.c: New file.
4367
4368         Tests for module 'unistr/u16-check'.
4369         * modules/unistr/u16-check-tests: New file.
4370         * tests/unistr/test-u16-check.c: New file.
4371
4372         Tests for module 'unistr/u8-check'.
4373         * modules/unistr/u8-check-tests: New file.
4374         * tests/unistr/test-u8-check.c: New file.
4375
4376         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
4377         (category_equals): New function.
4378         (main): Add more tests.
4379         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
4380
4381         * tests/unictype/test-bidi_byname.c (main): Add more tests.
4382
4383 2010-01-10  Bruno Haible  <bruno@clisp.org>
4384
4385         unistr/u*-strcoll: Try harder to distinguish different strings.
4386         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
4387         compare s1 and s2 to see if they are different.
4388
4389 2010-01-10  Bruno Haible  <bruno@clisp.org>
4390
4391         unistr/u*-stpncpy: Fix the return value.
4392         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
4393         description of the return value consistent with stpncpy in glibc.
4394         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
4395         written non-NUL unit.
4396
4397 2010-01-10  Bruno Haible  <bruno@clisp.org>
4398
4399         unistr/u*-next: Add missing dependencies.
4400         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
4401         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
4402         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
4403
4404 2010-01-10  Bruno Haible  <bruno@clisp.org>
4405
4406         unistr/u8-mbsnlen: Fix return value for incomplete character.
4407         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
4408         u8_mblen.
4409         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
4410         Remove unistr/u8-mblen.
4411         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
4412         u16_mblen.
4413         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
4414         Remove unistr/u16-mblen.
4415
4416 2010-01-10  Bruno Haible  <bruno@clisp.org>
4417
4418         wchar: Fix compilation error when <wchar.h> is used from coreutils.
4419         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
4420         Reported by Brian Gough <bjg@gnu.org> and
4421         Chris Clayton <chris2553@googlemail.com> via
4422         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
4423
4424 2010-01-09  Bruno Haible  <bruno@clisp.org>
4425
4426         unistr/u16-to-u32: Reject invalid input.
4427         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
4428         u16_mbtouc.
4429         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
4430         Remove unistr/u16-mbtouc.
4431
4432         unistr/u16-to-u8: Reject invalid input.
4433         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
4434         u16_mbtouc.
4435         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
4436         Remove unistr/u16-mbtouc.
4437
4438         unistr/u8-to-u32: Reject invalid input.
4439         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
4440         u8_mbtouc.
4441         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
4442         Remove unistr/u8-mbtouc.
4443
4444         unistr/u8-to-u16: Reject invalid input.
4445         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
4446         u8_mbtouc.
4447         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
4448         Remove unistr/u8-mbtouc.
4449
4450 2010-01-09  Bruno Haible  <bruno@clisp.org>
4451
4452         Tests for module 'getlogin'.
4453         * modules/getlogin-tests: New file.
4454         * tests/test-getlogin.c: New file.
4455
4456         New module 'getlogin'.
4457         * lib/unistd.in.h (getlogin): New declaration.
4458         * lib/getlogin.c: New file.
4459         * m4/getlogin.m4: New file.
4460         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
4461         HAVE_GETLOGIN.
4462         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
4463         HAVE_GETLOGIN.
4464         * modules/getlogin: New file.
4465         * doc/posix-functions/getlogin.texi: Mention the new module.
4466         Reported by John W. Eaton <jwe@gnu.org>.
4467
4468 2010-01-09  Bruno Haible  <bruno@clisp.org>
4469
4470         getlogin_r: Support for native Windows.
4471         * lib/getlogin_r.c: Include <windows.h>
4472         (getlogin_r): Implement for native Windows.
4473         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
4474         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
4475         via John W. Eaton <jwe@gnu.org>.
4476
4477 2010-01-09  Bruno Haible  <bruno@clisp.org>
4478
4479         getlogin_r: Small fixes.
4480         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
4481         succeeds.
4482         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
4483         before testing whether getlogin_r is declared. No need to set
4484         HAVE_DECL_GETLOGIN_R to 1.
4485         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
4486
4487 2010-01-09  Bruno Haible  <bruno@clisp.org>
4488
4489         * lib/unistd.in.h (getlogin_r): Add comment.
4490
4491 2010-01-09  Bruno Haible  <bruno@clisp.org>
4492
4493         Tests for module 'getlogin_r'.
4494         * modules/getlogin_r-tests: New file.
4495         * tests/test-getlogin_r.c: New file.
4496
4497 2010-01-09  Jim Meyering  <meyering@redhat.com>
4498
4499         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
4500         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
4501         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
4502
4503 2010-01-08  Simon Josefsson  <simon@josefsson.org>
4504
4505         * lib/dup2.c (rpl_dup2): Improve comment.
4506
4507 2010-01-08  Eric Blake  <ebb9@byu.net>
4508
4509         maint.mk: allow packages to add makefile @@ exceptions
4510         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
4511         (sc_makefile_check): Rename...
4512         (sc_makefile_at_at_check): ...to this, and use hook.
4513
4514         dup2: work around mingw bug
4515         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
4516         Reported by Simon Josefsson.
4517
4518 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
4519
4520         glob: Fix C++ compilation.
4521         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
4522         C++.
4523
4524 2010-01-07  Bruno Haible  <bruno@clisp.org>
4525
4526         Fix indentation of wctype.in.h, broken since 2007-01-06.
4527         * lib/wctype.in.h: Fix indentation of preprocessor directives.
4528
4529 2010-01-07  Bruno Haible  <bruno@clisp.org>
4530
4531         mbslen: Avoid collision with system function.
4532         * lib/string.in.h [MirBSD]: Include <wchar.h>.
4533         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
4534         * m4/mbslen.m4: New file.
4535         * modules/mbslen (Files): Add it.
4536         (configure.ac): Invoke gl_MBSLEN.
4537         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
4538         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
4539         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
4540         via Ian Beckwith <ianb@erislabs.net>.
4541
4542 2010-01-07  Bruno Haible  <bruno@clisp.org>
4543
4544         dirent: Document the last fix.
4545         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
4546
4547 2010-01-07  Bruno Haible  <bruno@clisp.org>
4548
4549         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
4550         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
4551         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
4552         va_list are defined.
4553         * doc/posix-headers/stdio.texi: Document the bug of missing types.
4554         Reported by Eric Blake.
4555
4556 2010-01-07  Bruno Haible  <bruno@clisp.org>
4557
4558         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
4559         * modules/xlist (Depends-on): Add 'list',
4560         * modules/xoset (Depends-on): Add 'oset'.
4561         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4562
4563 2010-01-07  Bruno Haible  <bruno@clisp.org>
4564
4565         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
4566         * doc/posix-functions/strncasecmp.texi: Likewise.
4567
4568 2010-01-07  Bruno Haible  <bruno@clisp.org>
4569
4570         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
4571
4572 2010-01-07  John W. Eaton  <jwe@octave.org>
4573
4574         wctype: allow C++ use
4575         * lib/wctype.in.h: Add extern "C" block for C++.
4576
4577 2010-01-06  Eric Blake  <ebb9@byu.net>
4578
4579         maint.mk: detect incorrect GFDL usage
4580         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
4581
4582 2010-01-06  Jim Meyering  <meyering@redhat.com>
4583         and Eric Blake  <ebb9@byu.net>
4584
4585         maint.mk: ignore multi-line copyright in NEWS
4586         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
4587
4588 2010-01-06  Eric Blake  <ebb9@byu.net>
4589
4590         select: add missing dependency
4591         * modules/select-tests (Depends-on): Move sockets dependency...
4592         * modules/select (Depends-on): ...here.
4593         Reported by Ian Beckwith.
4594
4595         doc: regenerate INSTALL
4596         * doc/INSTALL: Reflect recent autoconf update.
4597         * doc/INSTALL.ISO: Likewise.
4598         * doc/INSTALL.UTF-8: Likewise.
4599
4600         pread: fix compilation on glibc
4601         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
4602         Reported by Ralf Wildenhues.
4603
4604         dirent: fix test failure
4605         * lib/dirent.in.h (includes): Guarantee ino_t.
4606         Reported by Ralf Wildenhues.
4607
4608 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
4609
4610         linkat, renameat: avoid bad free
4611         * lib/at-func2.c (at_func2): Fix typo.
4612         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
4613
4614 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4615
4616         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
4617         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
4618         to avoid failure of symlink test later.
4619
4620 2010-01-06  Eric Blake  <ebb9@byu.net>
4621
4622         stdio, unistd: guarantee ssize_t
4623         * lib/unistd.in.h (includes): Ensure that types required by POSIX
4624         2008 are exposed when needed.
4625         * lib/stdio.in.h (includes): Likewise.
4626         Reported by Ralf Wildenhues.
4627
4628 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
4629
4630         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
4631         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
4632         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
4633
4634 2010-01-06  Jim Meyering  <meyering@redhat.com>
4635
4636         readtokens: this module *does* require xalloc.h
4637         It uses only functions that were omitted by the old syntax-check rule.
4638         * lib/readtokens.c: Include "xalloc.h" once again.
4639         * modules/readtokens (Depends-on): Add xalloc.
4640         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
4641
4642 2010-01-05  Eric Blake  <ebb9@byu.net>
4643
4644         maint: support 'make announcement' from a VPATH build
4645         * top/maint.mk (announcement): Look for correct NEWS file.
4646
4647 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
4648
4649         utimens (fdutimens): ignore a negative FD, per contract
4650         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
4651         when we have a valid file descriptor.  Otherwise, using a brand
4652         new glibc (with just-patched futimens that now fails with EBADF)
4653         would cause this function to fail with ENOSYS.
4654         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
4655         See also http://bugzilla.redhat.com/552320.
4656
4657 2010-01-05  Eric Blake  <ebb9@byu.net>
4658
4659         strcase: document what it provides
4660         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
4661         gnulib module.
4662         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
4663         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
4664
4665 2010-01-05  Jim Meyering  <meyering@redhat.com>
4666
4667         maint: remove useless inclusions of "xalloc.h"
4668         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
4669         * lib/readtokens.c: Likewise.
4670         * lib/same.c: Likewise.
4671         * modules/getloadavg (Depends-on): Remove xalloc.
4672         * modules/readtokens: Likewise.
4673         * modules/same: Likewise.
4674
4675         maint.mk: include 4 more function names in alloca.h-checking regexp
4676         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
4677         regexp.  Before, we would give a false-positive (saying alloca.h
4678         is included unnecessarily) when the only uses involved omitted symbols.
4679
4680         xalloc.h: use consistent formatting
4681         * lib/xalloc.h: Move declarations to start in the first column.
4682
4683 2010-01-05  Eric Blake  <ebb9@byu.net>
4684
4685         mkdir: avoid xalloc
4686         * lib/mkdir.c (includes): Drop unused header.
4687         Reported by John W. Eaton.
4688
4689 2010-01-04  Jim Meyering  <meyering@redhat.com>
4690
4691         nl_langinfo: avoid configure-time syntax error
4692         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
4693         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
4694         the empty string.  Don't let that provoke a shell syntax error.
4695
4696         regcomp, regexec, fnmatch: avoid array bounds read error
4697         * lib/regcomp.c (build_equiv_class): From glibc:
4698         Use only the low 24 bits of a findidx return value as an index
4699         into the weights array.  Patch by Ulrich Drepper:
4700         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
4701         * lib/regexec.c (check_node_accept_bytes): Likewise.
4702         * lib/fnmatch_loop.c (FCT): Likewise.
4703
4704         regcomp: skip collseq lookup when there are no rules
4705         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
4706         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
4707
4708         regcomp: recognize ill-formed { } expressions
4709         * lib/regcomp.c (parse_dup_op): From glibc:
4710         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
4711
4712         regcomp: fix typo in comment
4713         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
4714         s/satisfy/satisfies/.
4715
4716         regcomp: sync from glibc: remove dead store
4717         * lib/regcomp.c (duplicate_node_closure): Remove useless
4718         search_duplicated_node call and dead store.
4719
4720         regcomp: sync from glibc; always use nl_langinfo
4721         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
4722         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
4723         * modules/regex (Depends-on): Add nl_langinfo.
4724
4725 2010-01-04  Eric Blake  <ebb9@byu.net>
4726
4727         fdopendir: fix configure test
4728         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
4729
4730 2010-01-01  Bruno Haible  <bruno@clisp.org>
4731
4732         wchar: Remove unused configure check.
4733         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
4734
4735 2010-01-01  Eric Blake  <ebb9@byu.net>
4736
4737         headers: make check of system header explicit
4738         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
4739         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
4740         ourselves.
4741         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
4742         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4743         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
4744         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
4745         internals.
4746         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
4747         missing.
4748         Suggested by Bruno Haible.
4749
4750 2010-01-01  Jim Meyering  <meyering@redhat.com>
4751
4752         ChangeLog: tweak to eliminate unnecessary copyright line
4753         * ChangeLog: Remove a copyright line that was mistakenly updated
4754         by today's update-copyright run.  Reported by Eric Blake.
4755
4756         test-update-copyright: don't let envvar setting cause test failure
4757         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
4758
4759 2010-01-01  Bruno Haible  <bruno@clisp.org>
4760
4761         localename: Avoid gcc warning.
4762         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
4763         function if it is not used.
4764
4765 2010-01-01  Jim Meyering  <meyering@redhat.com>
4766
4767         update nearly all FSF copyright year lists to include 2010
4768         Use the same procedure as for 2009, outlined in
4769         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
4770
4771         version-etc: set COPYRIGHT_YEAR to 2010
4772         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
4773
4774 2009-12-31  Eric Blake  <ebb9@byu.net>
4775
4776         doc: correct availability of cygwin 1.5.x getopt
4777         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
4778         variables.
4779         * doc/posix-functions/opterr.texi (opterr): Likewise.
4780         * doc/posix-functions/optind.texi (optind): Likewise.
4781         * doc/posix-functions/optopt.texi (optopt): Likewise.
4782         * doc/posix-functions/tzname.texi (tzname): Likewise.
4783
4784         openat: update maintainer
4785         * modules/openat (Maintainer): Add myself.
4786
4787         utimens: avoid shadowing warning
4788         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
4789         buffers into one, to avoid shadowing, as well as avoiding a
4790         redundant stat.
4791         Reported by Jim Meyering.
4792
4793         test-dup2: avoid compiler warning
4794         * tests/test-dup2.c (is_inheritable): Only define if used.
4795
4796 2010-01-01  Bruno Haible  <bruno@clisp.org>
4797
4798         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
4799         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
4800         defined, use wctomb instead of wcrtomb.
4801
4802 2010-01-01  Bruno Haible  <bruno@clisp.org>
4803
4804         iconv: Reject native Solaris iconv.
4805         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
4806         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
4807
4808 2009-12-31  Bruno Haible  <bruno@clisp.org>
4809
4810         * tests/test-signal.c (main): Remove test of 'SIG'.
4811
4812 2009-12-31  Bruno Haible  <bruno@clisp.org>
4813
4814         spawn: Fix incomplete fix.
4815         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
4816         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
4817         warnings for GNULIB_POSIXCHECK again.
4818         Reported by Eric Blake.
4819
4820 2009-12-31  Bruno Haible  <bruno@clisp.org>
4821
4822         Avoid namespace pollution on glibc systems.
4823         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
4824         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
4825         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
4826         glibc systems.
4827
4828 2009-12-31  Bruno Haible  <bruno@clisp.org>
4829
4830         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
4831         (gl_REPLACE_WCHAR_H): Turn into a no-op.
4832         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
4833         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
4834         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
4835         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
4836         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
4837
4838 2009-12-31  Bruno Haible  <bruno@clisp.org>
4839
4840         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
4841         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
4842         afterwards.
4843
4844 2009-12-31  Bruno Haible  <bruno@clisp.org>
4845
4846         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
4847         SYS_UTSNAME_H.
4848
4849 2009-12-31  Bruno Haible  <bruno@clisp.org>
4850
4851         spawn: Fix misapplied patch.
4852         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
4853         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
4854         warnings for GNULIB_POSIXCHECK.
4855
4856 2009-12-31  Bruno Haible  <bruno@clisp.org>
4857
4858         times: Update after sys_times changed.
4859         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
4860         * modules/times (Files): Add it.
4861         (configure.ac): Invoke gl_FUNC_TIMES.
4862
4863 2009-12-31  Bruno Haible  <bruno@clisp.org>
4864
4865         Use AC_C_INLINE where necessary.
4866         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
4867         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
4868         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
4869         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
4870         * m4/mbfile.m4 (gl_MBFILE): Likewise.
4871         * m4/mbiter.m4 (gl_MBITER): Likewise.
4872         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
4873         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
4874         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
4875         * modules/u64 (configure.ac): Likewise.
4876
4877 2009-12-31  Bruno Haible  <bruno@clisp.org>
4878
4879         Use AC_C_INLINE instead of module 'inline' where possible.
4880         * modules/inline (Description): Clarify purpose.
4881         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
4882         * modules/count-one-bits (Depends-on): Remove inline.
4883         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
4884         * modules/openat (Depends-on): Remove inline.
4885         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
4886         instead of depending on module 'inline'.
4887         * modules/filevercmp (Depends-on, configure.ac): Likewise.
4888         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
4889         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
4890         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
4891         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
4892         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
4893         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
4894         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
4895         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
4896         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
4897         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
4898         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
4899         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
4900         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
4901         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
4902         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
4903         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
4904         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
4905         Likewise.
4906         * modules/unictype/property-ascii-hex-digit (Depends-on,
4907         configure.ac): Likewise.
4908         * modules/unictype/property-bidi-arabic-digit (Depends-on,
4909         configure.ac): Likewise.
4910         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
4911         configure.ac): Likewise.
4912         * modules/unictype/property-bidi-block-separator (Depends-on,
4913         configure.ac): Likewise.
4914         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
4915         configure.ac): Likewise.
4916         * modules/unictype/property-bidi-common-separator (Depends-on,
4917         configure.ac): Likewise.
4918         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
4919         Likewise.
4920         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
4921         configure.ac): Likewise.
4922         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
4923         configure.ac): Likewise.
4924         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
4925         configure.ac): Likewise.
4926         * modules/unictype/property-bidi-european-digit (Depends-on,
4927         configure.ac): Likewise.
4928         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
4929         configure.ac): Likewise.
4930         * modules/unictype/property-bidi-left-to-right (Depends-on,
4931         configure.ac): Likewise.
4932         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
4933         configure.ac): Likewise.
4934         * modules/unictype/property-bidi-other-neutral (Depends-on,
4935         configure.ac): Likewise.
4936         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
4937         Likewise.
4938         * modules/unictype/property-bidi-segment-separator (Depends-on,
4939         configure.ac): Likewise.
4940         * modules/unictype/property-bidi-whitespace (Depends-on,
4941         configure.ac): Likewise.
4942         * modules/unictype/property-combining (Depends-on, configure.ac):
4943         Likewise.
4944         * modules/unictype/property-composite (Depends-on, configure.ac):
4945         Likewise.
4946         * modules/unictype/property-currency-symbol (Depends-on,
4947         configure.ac): Likewise.
4948         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
4949         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
4950         Likewise.
4951         * modules/unictype/property-default-ignorable-code-point (Depends-on,
4952         configure.ac): Likewise.
4953         * modules/unictype/property-deprecated (Depends-on, configure.ac):
4954         Likewise.
4955         * modules/unictype/property-diacritic (Depends-on, configure.ac):
4956         Likewise.
4957         * modules/unictype/property-extender (Depends-on, configure.ac):
4958         Likewise.
4959         * modules/unictype/property-format-control (Depends-on, configure.ac):
4960         Likewise.
4961         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
4962         Likewise.
4963         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
4964         Likewise.
4965         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
4966         Likewise.
4967         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
4968         Likewise.
4969         * modules/unictype/property-hyphen (Depends-on, configure.ac):
4970         Likewise.
4971         * modules/unictype/property-id-continue (Depends-on, configure.ac):
4972         Likewise.
4973         * modules/unictype/property-id-start (Depends-on, configure.ac):
4974         Likewise.
4975         * modules/unictype/property-ideographic (Depends-on, configure.ac):
4976         Likewise.
4977         * modules/unictype/property-ids-binary-operator (Depends-on,
4978         configure.ac): Likewise.
4979         * modules/unictype/property-ids-trinary-operator (Depends-on,
4980         configure.ac): Likewise.
4981         * modules/unictype/property-ignorable-control (Depends-on,
4982         configure.ac): Likewise.
4983         * modules/unictype/property-iso-control (Depends-on, configure.ac):
4984         Likewise.
4985         * modules/unictype/property-join-control (Depends-on, configure.ac):
4986         Likewise.
4987         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
4988         Likewise.
4989         * modules/unictype/property-line-separator (Depends-on, configure.ac):
4990         Likewise.
4991         * modules/unictype/property-logical-order-exception (Depends-on,
4992         configure.ac): Likewise.
4993         * modules/unictype/property-lowercase (Depends-on, configure.ac):
4994         Likewise.
4995         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
4996         * modules/unictype/property-non-break (Depends-on, configure.ac):
4997         Likewise.
4998         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
4999         Likewise.
5000         * modules/unictype/property-numeric (Depends-on, configure.ac):
5001         Likewise.
5002         * modules/unictype/property-other-alphabetic (Depends-on,
5003         configure.ac): Likewise.
5004         * modules/unictype/property-other-default-ignorable-code-point
5005         (Depends-on, configure.ac): Likewise.
5006         * modules/unictype/property-other-grapheme-extend (Depends-on,
5007         configure.ac): Likewise.
5008         * modules/unictype/property-other-id-continue (Depends-on,
5009         configure.ac): Likewise.
5010         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
5011         Likewise.
5012         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
5013         Likewise.
5014         * modules/unictype/property-other-math (Depends-on, configure.ac):
5015         Likewise.
5016         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
5017         Likewise.
5018         * modules/unictype/property-paired-punctuation (Depends-on,
5019         configure.ac): Likewise.
5020         * modules/unictype/property-paragraph-separator (Depends-on,
5021         configure.ac): Likewise.
5022         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
5023         Likewise.
5024         * modules/unictype/property-pattern-white-space (Depends-on,
5025         configure.ac): Likewise.
5026         * modules/unictype/property-private-use (Depends-on, configure.ac):
5027         Likewise.
5028         * modules/unictype/property-punctuation (Depends-on, configure.ac):
5029         Likewise.
5030         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
5031         Likewise.
5032         * modules/unictype/property-radical (Depends-on, configure.ac):
5033         Likewise.
5034         * modules/unictype/property-sentence-terminal (Depends-on,
5035         configure.ac): Likewise.
5036         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
5037         Likewise.
5038         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
5039         * modules/unictype/property-terminal-punctuation (Depends-on,
5040         configure.ac): Likewise.
5041         * modules/unictype/property-titlecase (Depends-on, configure.ac):
5042         Likewise.
5043         * modules/unictype/property-unassigned-code-value (Depends-on,
5044         configure.ac): Likewise.
5045         * modules/unictype/property-unified-ideograph (Depends-on,
5046         configure.ac): Likewise.
5047         * modules/unictype/property-uppercase (Depends-on, configure.ac):
5048         Likewise.
5049         * modules/unictype/property-variation-selector (Depends-on,
5050         configure.ac): Likewise.
5051         * modules/unictype/property-white-space (Depends-on, configure.ac):
5052         Likewise.
5053         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
5054         Likewise.
5055         * modules/unictype/property-xid-start (Depends-on, configure.ac):
5056         Likewise.
5057         * modules/unictype/property-zero-width (Depends-on, configure.ac):
5058         Likewise.
5059         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
5060         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
5061         Likewise.
5062
5063 2009-12-31  Bruno Haible  <bruno@clisp.org>
5064
5065         Remove unnecessary AC_C_INLINE invocation.
5066         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
5067         since 2009-08-21.
5068
5069 2009-12-31  Jim Meyering  <meyering@redhat.com>
5070
5071         maint.mk: don't require explicit gpg_key_ID in cfg.mk
5072         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
5073         With this change, we can all remove the gpg_key_ID = ... definition
5074         from our respective cfg.mk files.
5075
5076         maint.mk: create announcement template in ~/, not in /tmp
5077         * top/maint.mk (emit_upload_commands): Adjust.
5078         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
5079         Remove temporary file, .ci-msg.
5080
5081 2009-12-31  Eric Blake  <ebb9@byu.net>
5082
5083         link-warning: always build headers with link warnings
5084         * modules/arpa_inet (Makefile.am): Always build replacement
5085         header.
5086         * modules/ctype (Makefile.am): Likewise.
5087         * modules/dirent (Makefile.am): Likewise.
5088         * modules/inttypes (Makefile.am): Likewise.
5089         * modules/langinfo (Makefile.am): Likewise.
5090         * modules/locale (Makefile.am): Likewise.
5091         * modules/spawn (Makefile.am): Likewise.
5092         * modules/sys_file (Makefile.am): Likewise.
5093         * modules/sys_ioctl (Makefile.am): Likewise.
5094         * modules/sys_select (Makefile.am): Likewise.
5095         * modules/sys_socket (Makefile.am): Likewise.
5096         * modules/sys_times (Makefile.am): Likewise.
5097         * modules/sys_utsname (Makefile.am): Likewise.
5098         * modules/sys_wait (Makefile.am): Likewise.
5099         * modules/wchar (Makefile.am): Likewise.
5100         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
5101         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
5102         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
5103         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
5104         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
5105         Likewise.
5106         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
5107         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
5108         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
5109         Likewise.
5110         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
5111         Likewise.
5112         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
5113         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
5114         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
5115         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
5116         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
5117         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
5118         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
5119         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
5120         (gl_WCHAR_H_DEFAULTS): Likewise.
5121
5122 2009-12-31  Eric Blake  <ebb9@byu.net>
5123
5124         signal, spawn: use link warnings
5125         * lib/signal.in.h (sigset_t): Make unconditional.
5126         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
5127         (sigpending, sigprocmask, sigaction): Add link warnings.
5128         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
5129         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
5130         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
5131         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
5132         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
5133         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
5134         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
5135         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
5136         (posix_spawn_file_actions_destroy)
5137         (posix_spawn_file_actions_addopen)
5138         (posix_spawn_file_actions_addclose)
5139         (posix_spawn_file_actions_adddup2): Likewise.
5140         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
5141         * tests/test-signal.c (main): Enhance test.
5142
5143         spawn: improve wrapper support
5144         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
5145         (gl_SPAWN_H_DEFAULTS): New defaults.
5146         * modules/spawn (Makefile.am): Substitute them.
5147         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
5148         Only declare if missing or broken.
5149
5150         sys_times, sys_utsname: use include_next
5151         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
5152         header.
5153         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
5154         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
5155         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
5156         * modules/sys_times (Depends-on): Add include_next.
5157         (Makefile.am): Substitute additional values.
5158         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
5159         * lib/sys_times.in.h (includes): Include native header, if
5160         available.
5161         * lib/sys_utsname.in.h (includes): Likewise.
5162         * tests/test-sys_times.c (main): Enhance test.
5163
5164         fdutimensat: revert prior patch
5165         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
5166         utimens.h.
5167         Reported by Bruno Haible.
5168
5169 2009-12-30  Eric Blake  <ebb9@byu.net>
5170
5171         sys_wait: drop link-warning dependency
5172         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
5173         link-warning efforts.
5174         * lib/sys_wait.in.h: Likewise.
5175
5176         fdutimensat: remove bogus dependency
5177         * modules/fdutimensat (Depends-on): Drop inline.
5178
5179         unistd: fix typo
5180         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
5181
5182 2009-12-30  Bruno Haible  <bruno@clisp.org>
5183
5184         Fix compilation error with Solaris cc.
5185         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
5186         * lib/unicase/u16-is-invariant.c: Likewise.
5187         * lib/unicase/u32-is-invariant.c: Likewise.
5188         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
5189
5190 2009-12-30  Bruno Haible  <bruno@clisp.org>
5191
5192         Fix test crash.
5193         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
5194         locales.
5195         Reported by Simon Josefsson <simon@josefsson.org>.
5196
5197 2009-12-30  Bruno Haible  <bruno@clisp.org>
5198
5199         Fix compilation error on most platforms.
5200         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
5201         Reported by Simon Josefsson <simon@josefsson.org>
5202         and Nelson H. F. Beebe <beebe@math.utah.edu>.
5203
5204 2009-12-30  Eric Blake  <ebb9@byu.net>
5205
5206         futimens, utimensat: work around ntfs-3g bug
5207         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
5208         a ctime bug is present, and expand workaround to cover ntfs-3g.
5209         * lib/utimens.c (fdutimens, lutimens): Likewise.
5210         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
5211         (validate_timespec): Adjust return value.
5212         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
5213         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
5214         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
5215
5216 2009-12-29  Eric Blake  <ebb9@byu.net>
5217
5218         link-warning: make usage consistent
5219         * modules/ctype (Depends-on): Add link-warning.
5220         (Makefile.am): Update rules accordingly.
5221         * modules/langinfo (Depends-on, Makefile.am): Likewise.
5222         * modules/locale (Depends-on, Makefile.am): Likewise.
5223         * modules/sys_file (Makefile.am): Likewise.
5224         * modules/getopt-posix (Makefile.am): Delete unused link warning
5225         efforts.
5226         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
5227         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
5228         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
5229         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
5230
5231         stdio: remove unused variables
5232         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
5233         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
5234         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
5235
5236         tests: test more substitute headers
5237         * modules/ctype-tests: New file.
5238         * modules/dirent-tests: Likewise.
5239         * modules/spawn-tests: Likewise.
5240         * modules/sys_file-tests: Likewise.
5241         * modules/sys_ioctl-tests: Likewise.
5242         * modules/sys_wait-tests: Likewise.
5243         * tests/test-ctype.c: Likewise.
5244         * tests/test-dirent.c: Likewise.
5245         * tests/test-spawn.c: Likewise.
5246         * tests/test-sys_file.c: Likewise.
5247         * tests/test-sys_ioctl.c: Likewise.
5248         * tests/test-sys_wait.c: Likewise.
5249         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
5250         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
5251         whether or not flock is in use.
5252
5253         tests: remove License section from module
5254         * modules/arpa_inet-tests: Remove unneeded section.
5255         * modules/byteswap-tests: Likewise.
5256         * modules/ceilf-tests: Likewise.
5257         * modules/ceill-tests: Likewise.
5258         * modules/crypto/des-tests: Likewise.
5259         * modules/crypto/gc-arcfour-tests: Likewise.
5260         * modules/crypto/gc-arctwo-tests: Likewise.
5261         * modules/crypto/gc-des-tests: Likewise.
5262         * modules/crypto/gc-hmac-md5-tests: Likewise.
5263         * modules/crypto/gc-hmac-sha1-tests: Likewise.
5264         * modules/crypto/gc-md2-tests: Likewise.
5265         * modules/crypto/gc-md4-tests: Likewise.
5266         * modules/crypto/gc-md5-tests: Likewise.
5267         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
5268         * modules/crypto/gc-rijndael-tests: Likewise.
5269         * modules/crypto/gc-sha1-tests: Likewise.
5270         * modules/crypto/gc-tests: Likewise.
5271         * modules/crypto/md2-tests: Likewise.
5272         * modules/crypto/md4-tests: Likewise.
5273         * modules/fcntl-h-tests: Likewise.
5274         * modules/floorf-tests: Likewise.
5275         * modules/floorl-tests: Likewise.
5276         * modules/frexp-nolibm-tests: Likewise.
5277         * modules/frexp-tests: Likewise.
5278         * modules/frexpl-nolibm-tests: Likewise.
5279         * modules/frexpl-tests: Likewise.
5280         * modules/getaddrinfo-tests: Likewise.
5281         * modules/inttypes-tests: Likewise.
5282         * modules/isfinite-tests: Likewise.
5283         * modules/isinf-tests: Likewise.
5284         * modules/ldexpl-tests: Likewise.
5285         * modules/locale-tests: Likewise.
5286         * modules/math-tests: Likewise.
5287         * modules/netdb-tests: Likewise.
5288         * modules/netinet_in-tests: Likewise.
5289         * modules/printf-frexp-tests: Likewise.
5290         * modules/printf-frexpl-tests: Likewise.
5291         * modules/priv-set-tests: Likewise.
5292         * modules/random_r-tests: Likewise.
5293         * modules/round-tests: Likewise.
5294         * modules/roundf-tests: Likewise.
5295         * modules/roundl-tests: Likewise.
5296         * modules/search-tests: Likewise.
5297         * modules/select-tests: Likewise.
5298         * modules/signal-tests: Likewise.
5299         * modules/stdbool-tests: Likewise.
5300         * modules/stddef-tests: Likewise.
5301         * modules/stdint-tests: Likewise.
5302         * modules/stdio-tests: Likewise.
5303         * modules/stdlib-tests: Likewise.
5304         * modules/string-tests: Likewise.
5305         * modules/strings-tests: Likewise.
5306         * modules/sys_select-tests: Likewise.
5307         * modules/sys_socket-tests: Likewise.
5308         * modules/sys_stat-tests: Likewise.
5309         * modules/sys_time-tests: Likewise.
5310         * modules/sys_utsname-tests: Likewise.
5311         * modules/sysexits-tests: Likewise.
5312         * modules/time-tests: Likewise.
5313         * modules/trunc-tests: Likewise.
5314         * modules/truncf-tests: Likewise.
5315         * modules/truncl-tests: Likewise.
5316         * modules/tsearch-tests: Likewise.
5317         * modules/unistd-tests: Likewise.
5318         * modules/wchar-tests: Likewise.
5319         * modules/wctype-tests: Likewise.
5320
5321         tests: fix license on several tests
5322         * tests/test-des.c: Update to GPLv3+.
5323         * tests/test-flock.c: Likewise.
5324         * tests/test-fsync.c: Likewise.
5325         * tests/test-futimens.h: Likewise.
5326         * tests/test-gc-arcfour.c: Likewise.
5327         * tests/test-gc-arctwo.c: Likewise.
5328         * tests/test-gc-des.c: Likewise.
5329         * tests/test-gc-hmac-md5.c: Likewise.
5330         * tests/test-gc-hmac-sha1.c: Likewise.
5331         * tests/test-gc-md2.c: Likewise.
5332         * tests/test-gc-md4.c: Likewise.
5333         * tests/test-gc-md5.c: Likewise.
5334         * tests/test-gc-pbkdf2-sha1.c: Likewise.
5335         * tests/test-gc-rijndael.c: Likewise.
5336         * tests/test-gc-sha1.c: Likewise.
5337         * tests/test-gc.c: Likewise.
5338         * tests/test-getcwd.c: Likewise.
5339         * tests/test-link.c: Likewise.
5340         * tests/test-link.h: Likewise.
5341         * tests/test-lutimens.h: Likewise.
5342         * tests/test-md2.c: Likewise.
5343         * tests/test-md4.c: Likewise.
5344         * tests/test-mkdir.h: Likewise.
5345         * tests/test-rename.c: Likewise.
5346         * tests/test-rename.h: Likewise.
5347         * tests/test-safe-alloc.c: Likewise.
5348         * tests/test-utimens-common.h: Likewise.
5349         * tests/test-utimens.h: Likewise.
5350
5351         maint: sync license texts
5352         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
5353         * doc/gpl-3.0.texi: Revert copyright year update.
5354         * doc/lgpl-3.0.texi: Likewise.
5355
5356 2009-12-29  Jim Meyering  <meyering@redhat.com>
5357
5358         update nearly all FSF copyright year lists to include 2009
5359         The files named by the following are exempted:
5360             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
5361               test -f "$dst" && { echo "$dst"; continue; }
5362               test -d "$dst" || continue
5363               echo "$dst"/$(basename "$src")
5364             done > exempt
5365             git ls-files tests/unictype >> exempt
5366         In the remaining files, convert to all-interval notation if
5367         - there is already at least one year interval like 2000-2003
5368         - the file is maintained by me
5369         - the file is in lib/uni*/, where that style already prevails
5370         Otherwise, use update-copyright's default.
5371
5372 2009-12-29  Simon Josefsson  <simon@josefsson.org>
5373         and Eric Blake  <ebb9@byu.net>
5374
5375         tests: don't require debug system() to pass
5376         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
5377         * tests/test-rmdir.h (test_rmdir_func): Likewise.
5378         * tests/test-unlink.h (test_unlink_func): Likewise.
5379         * tests/test-fstatat.c (main): ...into callers.
5380         * tests/test-lstat.c (main): Likewise.
5381         * tests/test-rmdir.c (main): Likewise.
5382         * tests/test-unlink.c (main): Likewise.
5383         * tests/test-unlinkat.c (main): Likewise.
5384         * tests/test-areadlink-with-size.c (main): Don't require a
5385         debug-only system call to pass, aiding cross-testing to mingw.
5386         * tests/test-areadlink.c (main): Likewise.
5387         * tests/test-areadlinkat-with-size.c (main): Likewise.
5388         * tests/test-areadlinkat.c (main): Likewise.
5389         * tests/test-canonicalize-lgpl.c (main): Likewise.
5390         * tests/test-canonicalize.c (main): Likewise.
5391         * tests/test-chown.c (main): Likewise.
5392         * tests/test-fchownat.c (main): Likewise.
5393         * tests/test-lchown.c (main): Likewise.
5394         * tests/test-fdutimensat.c (main): Likewise.
5395         * tests/test-futimens.c (main): Likewise.
5396         * tests/test-link.c (main): Likewise.
5397         * tests/test-linkat.c (main): Likewise.
5398         * tests/test-mkdir.c (main): Likewise.
5399         * tests/test-mkdirat.c (main): Likewise.
5400         * tests/test-mkfifo.c (main): Likewise.
5401         * tests/test-mkfifoat.c (main): Likewise.
5402         * tests/test-mknod.c (main): Likewise.
5403         * tests/test-readlink.c (main): Likewise.
5404         * tests/test-remove.c (main): Likewise.
5405         * tests/test-rename.c (main): Likewise.
5406         * tests/test-renameat.c (main): Likewise.
5407         * tests/test-symlink.c (main): Likewise.
5408         * tests/test-symlinkat.c (main): Likewise.
5409         * tests/test-utimens.c (main): Likewise.
5410         * tests/test-utimensat.c (main): Likewise.
5411
5412 2009-12-29  Simon Josefsson  <simon@josefsson.org>
5413
5414         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
5415         on $(UNUSED_PARAMETER_H) to avoid build failure.
5416
5417 2009-12-28  Jim Meyering  <meyering@redhat.com>
5418
5419         update-copyright: you may specify a max. line length other than 72
5420         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
5421
5422         maint: use consistent FSF copyright line syntax
5423         * lib/posixtm.c: Add missing comma in FSF copyright line.
5424         * lib/posixtm.h: Likewise.
5425         * lib/getugroups.c: Add missing ", Inc.".
5426
5427         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
5428         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
5429         FSF copyright line.  Remove trailing blanks.
5430
5431 2009-12-28  Eric Blake  <ebb9@byu.net>
5432
5433         test-dup2: reduce dependencies
5434         * modules/cloexec (Configure.ac): Set witness.
5435         * modules/dup2-tests (Depends-on): Drop cloexec.
5436         * tests/test-dup2.c (main): Skip portion of test if cloexec module
5437         not present.
5438         Suggested by Bruno Haible.
5439
5440 2009-12-26  Bruno Haible  <bruno@clisp.org>
5441
5442         Remove an unneeded dependency.
5443         * modules/fseterr (Depends-on): Remove dup2.
5444
5445 2009-12-26  Eric Blake  <ebb9@byu.net>
5446
5447         tests: use macros.h in more places
5448         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
5449         (ASSERT_STREAM): Provide default of stderr.
5450         * tests/test-dirent-safer.c: Include macros.h, using alternate
5451         stream for assertions.
5452         * tests/test-dup-safer.c: Likewise.
5453         * tests/test-freopen-safer.c: Likewise.
5454         * tests/test-getopt.c: Likewise.
5455         * tests/test-openat-safer.c: Likewise.
5456         * tests/test-pipe.c: Likewise.
5457         * tests/test-popen-safer.c: Likewise.
5458         * modules/dirent-safer-tests (Files): Include macros.h.
5459         * modules/unistd-safer-tests (Files): Likewise.
5460         * modules/freopen-safer-tests (Files): Likewise.
5461         * modules/getopt-posix-tests (Files): Likewise.
5462         * modules/openat-safer-tests (Files): Likewise.
5463         * modules/pipe-tests (Files): Likewise.
5464
5465 2009-12-26  Bruno Haible  <bruno@clisp.org>
5466
5467         javacomp: Portability fix.
5468         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
5469         that it also works on Solaris.
5470
5471 2009-12-26  Bruno Haible  <bruno@clisp.org>
5472
5473         localename: Fix storage allocation of gl_locale_name_thread's result.
5474         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
5475         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
5476         all platforms that have 'uselocale'.
5477         (gl_locale_name_thread_unsafe): New function, extracted from
5478         gl_locale_name_thread.
5479         (gl_locale_name_thread): Call struniq on all platforms that have
5480         'uselocale'.
5481         * tests/test-localename.c (test_locale_name_thread): Check that the
5482         resulting strings are permanently allocated.
5483         * modules/localename-tests (Depends-on): Add strdup.
5484
5485 2009-12-26  Bruno Haible  <bruno@clisp.org>
5486
5487         * tests/test-localename.c (categories): Fill in the strings.
5488
5489 2009-12-26  Jim Meyering  <meyering@redhat.com>
5490
5491         isdir: complete the removal of m4/isdir.m4
5492         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
5493
5494         isdir: clean up, since at least grep still uses it
5495         * lib/isdir.c: Include "isdir.h".
5496         (S_ISDIR): Remove now-unneeded definition.
5497         * modules/isdir (Files): Add lib/isdir.h.
5498         * lib/isdir.h: New file, with declaration.
5499         * m4/isdir.m4: Remove file -- unneeded.
5500
5501 2009-12-25  Bruno Haible  <bruno@clisp.org>
5502
5503         selinux-h: Make generated .h files standalone.
5504         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
5505         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
5506         * lib/se-selinux.in.h: Likewise.
5507         * modules/selinux-h (Depends-on): Add unused-parameter.
5508         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
5509         selinux/selinux.h and selinux/context.h.
5510         Suggested by Eric Blake.
5511
5512 2009-12-25  Bruno Haible  <bruno@clisp.org>
5513
5514         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
5515         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
5516         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
5517         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
5518         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
5519
5520 2009-12-24  Bruno Haible  <bruno@clisp.org>
5521
5522         openat: Fix warning.
5523         * lib/openat-proc.c: Include <unistd.h>.
5524
5525 2009-12-24  Bruno Haible  <bruno@clisp.org>
5526
5527         New module 'unused-parameter'.
5528         * build-aux/unused-parameter.h: New file, extracted from earlier
5529         gnulib-common.m4.
5530         * modules/unused-parameter: New file.
5531         * lib/unistr.h: Include unused-parameter.h.
5532         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
5533         _GL_UNUSED.
5534         * modules/unistr/base (Depends-on): Add unused-parameter.
5535
5536 2009-12-24  Bruno Haible  <bruno@clisp.org>
5537
5538         Add missing dependencies to 'extensions' module.
5539         * m4/extensions.m4: Add comment.
5540         * modules/accept4 (Depends-on): Add extensions.
5541         * modules/dup3 (Depends-on): Likewise.
5542         * modules/fcntl (Depends-on): Likewise.
5543         * modules/futimens (Depends-on): Likewise.
5544         * modules/mknod (Depends-on): Likewise.
5545         * modules/pipe2 (Depends-on): Likewise.
5546         * modules/stat-time (Depends-on): Likewise.
5547         * modules/strcasestr-simple (Depends-on): Likewise.
5548         * modules/strsignal (Depends-on): Likewise.
5549         * modules/utimensat (Depends-on): Likewise.
5550         * modules/localcharset (Depends-on): Likewise. Needed because of
5551         gl_FCNTL_O_FLAGS.
5552         * modules/wcrtomb (Depends-on): Likewise. Needed because of
5553         AC_TYPE_MBSTATE_T.
5554         * modules/wcsnrtombs (Depends-on): Likewise.
5555         * modules/wcsrtombs (Depends-on): Likewise.
5556
5557 2009-12-24  Bruno Haible  <bruno@clisp.org>
5558
5559         binary-io: Avoid gcc warning due to SET_BINARY.
5560         * lib/binary-io.h (SET_BINARY): Cast the result to void.
5561         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
5562
5563 2009-12-24  Bruno Haible  <bruno@clisp.org>
5564
5565         Avoid future namespace pollution on glibc systems.
5566         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
5567         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
5568         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
5569         glibc systems.
5570
5571 2009-12-24  Bruno Haible  <bruno@clisp.org>
5572
5573         Refactor common macros used in tests.
5574         * tests/macros.h: New file.
5575         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
5576         and/or <stdlib.h>, if appropriate.
5577         (ASSERT, SIZEOF): Remove macros.
5578         * tests/test-areadlink-with-size.c: Likewise.
5579         * tests/test-areadlinkat.c: Likewise.
5580         * tests/test-areadlinkat-with-size.c: Likewise.
5581         * tests/test-argmatch.c: Likewise.
5582         * tests/test-argv-iter.c: Likewise.
5583         * tests/test-array-mergesort.c: Likewise.
5584         * tests/test-array_list.c: Likewise.
5585         * tests/test-array_oset.c: Likewise.
5586         * tests/test-avltree_list.c: Likewise.
5587         * tests/test-avltree_oset.c: Likewise.
5588         * tests/test-avltreehash_list.c: Likewise.
5589         * tests/test-base64.c: Likewise.
5590         * tests/test-binary-io.c: Likewise.
5591         * tests/test-bitrotate.c: Likewise.
5592         * tests/test-btowc.c: Likewise.
5593         * tests/test-byteswap.c: Likewise.
5594         * tests/test-c-ctype.c: Likewise.
5595         * tests/test-c-stack.c: Likewise.
5596         * tests/test-c-strcasecmp.c: Likewise.
5597         * tests/test-c-strcasestr.c: Likewise.
5598         * tests/test-c-strncasecmp.c: Likewise.
5599         * tests/test-c-strstr.c: Likewise.
5600         * tests/test-canonicalize-lgpl.c: Likewise.
5601         * tests/test-canonicalize.c: Likewise.
5602         * tests/test-carray_list.c: Likewise.
5603         * tests/test-ceilf1.c: Likewise.
5604         * tests/test-ceilf2.c: Likewise.
5605         * tests/test-ceill.c: Likewise.
5606         * tests/test-chown.c: Likewise.
5607         * tests/test-cloexec.c: Likewise.
5608         * tests/test-copy-acl.c: Likewise.
5609         * tests/test-copy-file.c: Likewise.
5610         * tests/test-count-one-bits.c: Likewise.
5611         * tests/test-dprintf-posix.c: Likewise.
5612         * tests/test-dup2.c: Likewise.
5613         * tests/test-dup3.c: Likewise.
5614         * tests/test-duplocale.c: Likewise.
5615         * tests/test-fbufmode.c: Likewise.
5616         * tests/test-fchdir.c: Likewise.
5617         * tests/test-fchownat.c: Likewise.
5618         * tests/test-fcntl-safer.c: Likewise.
5619         * tests/test-fcntl.c: Likewise.
5620         * tests/test-fdopendir.c: Likewise.
5621         * tests/test-fdutimensat.c: Likewise.
5622         * tests/test-fflush2.c: Likewise.
5623         * tests/test-file-has-acl.c: Likewise.
5624         * tests/test-filevercmp.c: Likewise.
5625         * tests/test-flock.c: Likewise.
5626         * tests/test-floorf1.c: Likewise.
5627         * tests/test-floorf2.c: Likewise.
5628         * tests/test-floorl.c: Likewise.
5629         * tests/test-fnmatch.c: Likewise.
5630         * tests/test-fopen.h: Likewise.
5631         * tests/test-fpending.c: Likewise.
5632         * tests/test-fprintf-posix.c: Likewise.
5633         * tests/test-fpurge.c: Likewise.
5634         * tests/test-freadable.c: Likewise.
5635         * tests/test-freadahead.c: Likewise.
5636         * tests/test-freading.c: Likewise.
5637         * tests/test-freadptr.c: Likewise.
5638         * tests/test-freadptr2.c: Likewise.
5639         * tests/test-freadseek.c: Likewise.
5640         * tests/test-freopen.c: Likewise.
5641         * tests/test-frexp.c: Likewise.
5642         * tests/test-frexpl.c: Likewise.
5643         * tests/test-fseek.c: Likewise.
5644         * tests/test-fseeko.c: Likewise.
5645         * tests/test-fstatat.c: Likewise.
5646         * tests/test-fstrcmp.c: Likewise.
5647         * tests/test-fsync.c: Likewise.
5648         * tests/test-ftell.c: Likewise.
5649         * tests/test-ftello.c: Likewise.
5650         * tests/test-func.c: Likewise.
5651         * tests/test-futimens.c: Likewise.
5652         * tests/test-fwritable.c: Likewise.
5653         * tests/test-fwriting.c: Likewise.
5654         * tests/test-getcwd.c: Likewise.
5655         * tests/test-getdate.c: Likewise.
5656         * tests/test-getdelim.c: Likewise.
5657         * tests/test-getdtablesize.c: Likewise.
5658         * tests/test-getgroups.c: Likewise.
5659         * tests/test-getline.c: Likewise.
5660         * tests/test-getndelim2.c: Likewise.
5661         * tests/test-glob.c: Likewise.
5662         * tests/test-hash.c: Likewise.
5663         * tests/test-i-ring.c: Likewise.
5664         * tests/test-iconv-utf.c: Likewise.
5665         * tests/test-iconv.c: Likewise.
5666         * tests/test-idpriv-drop.c: Likewise.
5667         * tests/test-idpriv-droptemp.c: Likewise.
5668         * tests/test-inet_ntop.c: Likewise.
5669         * tests/test-inet_pton.c: Likewise.
5670         * tests/test-isblank.c: Likewise.
5671         * tests/test-isfinite.c: Likewise.
5672         * tests/test-isinf.c: Likewise.
5673         * tests/test-isnan.c: Likewise.
5674         * tests/test-isnand.h: Likewise.
5675         * tests/test-isnanf.h: Likewise.
5676         * tests/test-isnanl.h: Likewise.
5677         * tests/test-lchown.c: Likewise.
5678         * tests/test-ldexpl.c: Likewise.
5679         * tests/test-link.c: Likewise.
5680         * tests/test-linkat.c: Likewise.
5681         * tests/test-linked_list.c: Likewise.
5682         * tests/test-linkedhash_list.c: Likewise.
5683         * tests/test-localename.c: Likewise.
5684         * tests/test-lseek.c: Likewise.
5685         * tests/test-lstat.c: Likewise.
5686         * tests/test-mbmemcasecmp.c: Likewise.
5687         * tests/test-mbmemcasecoll.c: Likewise.
5688         * tests/test-mbrtowc.c: Likewise.
5689         * tests/test-mbscasecmp.c: Likewise.
5690         * tests/test-mbscasestr1.c: Likewise.
5691         * tests/test-mbscasestr2.c: Likewise.
5692         * tests/test-mbscasestr3.c: Likewise.
5693         * tests/test-mbscasestr4.c: Likewise.
5694         * tests/test-mbschr.c: Likewise.
5695         * tests/test-mbscspn.c: Likewise.
5696         * tests/test-mbsinit.c: Likewise.
5697         * tests/test-mbsncasecmp.c: Likewise.
5698         * tests/test-mbsnrtowcs.c: Likewise.
5699         * tests/test-mbspbrk.c: Likewise.
5700         * tests/test-mbspcasecmp.c: Likewise.
5701         * tests/test-mbsrchr.c: Likewise.
5702         * tests/test-mbsrtowcs.c: Likewise.
5703         * tests/test-mbsspn.c: Likewise.
5704         * tests/test-mbsstr1.c: Likewise.
5705         * tests/test-mbsstr2.c: Likewise.
5706         * tests/test-mbsstr3.c: Likewise.
5707         * tests/test-memchr.c: Likewise.
5708         * tests/test-memchr2.c: Likewise.
5709         * tests/test-memcmp.c: Likewise.
5710         * tests/test-memmem.c: Likewise.
5711         * tests/test-memrchr.c: Likewise.
5712         * tests/test-mkdir.c: Likewise.
5713         * tests/test-mkdirat.c: Likewise.
5714         * tests/test-mkfifo.c: Likewise.
5715         * tests/test-mkfifoat.c: Likewise.
5716         * tests/test-mknod.c: Likewise.
5717         * tests/test-nanosleep.c: Likewise.
5718         * tests/test-nl_langinfo.c: Likewise.
5719         * tests/test-obstack-printf.c: Likewise.
5720         * tests/test-open.c: Likewise.
5721         * tests/test-openat.c: Likewise.
5722         * tests/test-pipe-filter-gi1.c: Likewise.
5723         * tests/test-pipe-filter-gi2-main.c: Likewise.
5724         * tests/test-pipe-filter-ii1.c: Likewise.
5725         * tests/test-pipe-filter-ii2-main.c: Likewise.
5726         * tests/test-pipe2.c: Likewise.
5727         * tests/test-popen.h: Likewise.
5728         * tests/test-posixtm.c: Likewise.
5729         * tests/test-pread.c: Likewise.
5730         * tests/test-printf-frexp.c: Likewise.
5731         * tests/test-printf-frexpl.c: Likewise.
5732         * tests/test-printf-posix.c: Likewise.
5733         * tests/test-priv-set.c: Likewise.
5734         * tests/test-quotearg.c: Likewise.
5735         * tests/test-random_r.c: Likewise.
5736         * tests/test-rawmemchr.c: Likewise.
5737         * tests/test-rbtree_list.c: Likewise.
5738         * tests/test-rbtree_oset.c: Likewise.
5739         * tests/test-rbtreehash_list.c: Likewise.
5740         * tests/test-readlink.c: Likewise.
5741         * tests/test-remove.c: Likewise.
5742         * tests/test-rename.c: Likewise.
5743         * tests/test-renameat.c: Likewise.
5744         * tests/test-rmdir.c: Likewise.
5745         * tests/test-round1.c: Likewise.
5746         * tests/test-roundf1.c: Likewise.
5747         * tests/test-roundl.c: Likewise.
5748         * tests/test-safe-alloc.c: Likewise.
5749         * tests/test-sameacls.c: Likewise.
5750         * tests/test-set-mode-acl.c: Likewise.
5751         * tests/test-setenv.c: Likewise.
5752         * tests/test-sigaction.c: Likewise.
5753         * tests/test-signbit.c: Likewise.
5754         * tests/test-sleep.c: Likewise.
5755         * tests/test-snprintf-posix.c: Likewise.
5756         * tests/test-snprintf.c: Likewise.
5757         * tests/test-sprintf-posix.c: Likewise.
5758         * tests/test-stat-time.c: Likewise.
5759         * tests/test-stat.c: Likewise.
5760         * tests/test-strcasestr.c: Likewise.
5761         * tests/test-strchrnul.c: Likewise.
5762         * tests/test-strerror.c: Likewise.
5763         * tests/test-striconv.c: Likewise.
5764         * tests/test-striconveh.c: Likewise.
5765         * tests/test-striconveha.c: Likewise.
5766         * tests/test-strsignal.c: Likewise.
5767         * tests/test-strstr.c: Likewise.
5768         * tests/test-strtod.c: Likewise.
5769         * tests/test-strverscmp.c: Likewise.
5770         * tests/test-symlink.c: Likewise.
5771         * tests/test-symlinkat.c: Likewise.
5772         * tests/test-trunc1.c: Likewise.
5773         * tests/test-trunc2.c: Likewise.
5774         * tests/test-truncf1.c: Likewise.
5775         * tests/test-truncf2.c: Likewise.
5776         * tests/test-truncl.c: Likewise.
5777         * tests/test-uname.c: Likewise.
5778         * tests/test-unlink.c: Likewise.
5779         * tests/test-unlinkat.c: Likewise.
5780         * tests/test-unsetenv.c: Likewise.
5781         * tests/test-usleep.c: Likewise.
5782         * tests/test-utimens.c: Likewise.
5783         * tests/test-utimensat.c: Likewise.
5784         * tests/test-vasnprintf-posix.c: Likewise.
5785         * tests/test-vasnprintf-posix2.c: Likewise.
5786         * tests/test-vasnprintf.c: Likewise.
5787         * tests/test-vasprintf-posix.c: Likewise.
5788         * tests/test-vasprintf.c: Likewise.
5789         * tests/test-vdprintf-posix.c: Likewise.
5790         * tests/test-vfprintf-posix.c: Likewise.
5791         * tests/test-vprintf-posix.c: Likewise.
5792         * tests/test-vsnprintf-posix.c: Likewise.
5793         * tests/test-vsnprintf.c: Likewise.
5794         * tests/test-vsprintf-posix.c: Likewise.
5795         * tests/test-wcrtomb.c: Likewise.
5796         * tests/test-wcsnrtombs.c: Likewise.
5797         * tests/test-wcsrtombs.c: Likewise.
5798         * tests/test-wctype.c: Likewise.
5799         * tests/test-wcwidth.c: Likewise.
5800         * tests/test-xfprintf-posix.c: Likewise.
5801         * tests/test-xmemdup0.c: Likewise.
5802         * tests/test-xprintf-posix.c: Likewise.
5803         * tests/test-xvasprintf.c: Likewise.
5804         * tests/unicase/test-locale-language.c: Likewise.
5805         * tests/unicase/test-mapping-part1.h: Likewise.
5806         * tests/unicase/test-predicate-part1.h: Likewise.
5807         * tests/unicase/test-u8-casecmp.c: Likewise.
5808         * tests/unicase/test-u8-casecoll.c: Likewise.
5809         * tests/unicase/test-u8-casefold.c: Likewise.
5810         * tests/unicase/test-u8-is-cased.c: Likewise.
5811         * tests/unicase/test-u8-is-casefolded.c: Likewise.
5812         * tests/unicase/test-u8-is-lowercase.c: Likewise.
5813         * tests/unicase/test-u8-is-titlecase.c: Likewise.
5814         * tests/unicase/test-u8-is-uppercase.c: Likewise.
5815         * tests/unicase/test-u8-tolower.c: Likewise.
5816         * tests/unicase/test-u8-totitle.c: Likewise.
5817         * tests/unicase/test-u8-toupper.c: Likewise.
5818         * tests/unicase/test-u16-casecmp.c: Likewise.
5819         * tests/unicase/test-u16-casecoll.c: Likewise.
5820         * tests/unicase/test-u16-casefold.c: Likewise.
5821         * tests/unicase/test-u16-is-cased.c: Likewise.
5822         * tests/unicase/test-u16-is-casefolded.c: Likewise.
5823         * tests/unicase/test-u16-is-lowercase.c: Likewise.
5824         * tests/unicase/test-u16-is-titlecase.c: Likewise.
5825         * tests/unicase/test-u16-is-uppercase.c: Likewise.
5826         * tests/unicase/test-u16-tolower.c: Likewise.
5827         * tests/unicase/test-u16-totitle.c: Likewise.
5828         * tests/unicase/test-u16-toupper.c: Likewise.
5829         * tests/unicase/test-u32-casecmp.c: Likewise.
5830         * tests/unicase/test-u32-casecoll.c: Likewise.
5831         * tests/unicase/test-u32-casefold.c: Likewise.
5832         * tests/unicase/test-u32-is-cased.c: Likewise.
5833         * tests/unicase/test-u32-is-casefolded.c: Likewise.
5834         * tests/unicase/test-u32-is-lowercase.c: Likewise.
5835         * tests/unicase/test-u32-is-titlecase.c: Likewise.
5836         * tests/unicase/test-u32-is-uppercase.c: Likewise.
5837         * tests/unicase/test-u32-tolower.c: Likewise.
5838         * tests/unicase/test-u32-totitle.c: Likewise.
5839         * tests/unicase/test-u32-toupper.c: Likewise.
5840         * tests/unicase/test-ulc-casecmp.c: Likewise.
5841         * tests/unicase/test-ulc-casecoll.c: Likewise.
5842         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
5843         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
5844         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
5845         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
5846         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
5847         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
5848         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
5849         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
5850         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
5851         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
5852         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
5853         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
5854         * tests/unictype/test-bidi_byname.c: Likewise.
5855         * tests/unictype/test-bidi_name.c: Likewise.
5856         * tests/unictype/test-bidi_of.c: Likewise.
5857         * tests/unictype/test-bidi_test.c: Likewise.
5858         * tests/unictype/test-block_list.c: Likewise.
5859         * tests/unictype/test-block_of.c: Likewise.
5860         * tests/unictype/test-block_test.c: Likewise.
5861         * tests/unictype/test-categ_and.c: Likewise.
5862         * tests/unictype/test-categ_and_not.c: Likewise.
5863         * tests/unictype/test-categ_byname.c: Likewise.
5864         * tests/unictype/test-categ_name.c: Likewise.
5865         * tests/unictype/test-categ_none.c: Likewise.
5866         * tests/unictype/test-categ_of.c: Likewise.
5867         * tests/unictype/test-categ_or.c: Likewise.
5868         * tests/unictype/test-categ_test_withtable.c: Likewise.
5869         * tests/unictype/test-combining.c: Likewise.
5870         * tests/unictype/test-decdigit.c: Likewise.
5871         * tests/unictype/test-digit.c: Likewise.
5872         * tests/unictype/test-mirror.c: Likewise.
5873         * tests/unictype/test-numeric.c: Likewise.
5874         * tests/unictype/test-pr_byname.c: Likewise.
5875         * tests/unictype/test-pr_test.c: Likewise.
5876         * tests/unictype/test-predicate-part1.h: Likewise.
5877         * tests/unictype/test-scripts.c: Likewise.
5878         * tests/unictype/test-sy_c_ident.c: Likewise.
5879         * tests/unictype/test-sy_java_ident.c: Likewise.
5880         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
5881         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
5882         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
5883         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
5884         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
5885         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
5886         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
5887         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
5888         * tests/uninorm/test-canonical-decomposition.c: Likewise.
5889         * tests/uninorm/test-compat-decomposition.c: Likewise.
5890         * tests/uninorm/test-composition.c: Likewise.
5891         * tests/uninorm/test-decomposing-form.c: Likewise.
5892         * tests/uninorm/test-decomposition.c: Likewise.
5893         * tests/uninorm/test-u8-nfc.c: Likewise.
5894         * tests/uninorm/test-u8-nfd.c: Likewise.
5895         * tests/uninorm/test-u8-nfkc.c: Likewise.
5896         * tests/uninorm/test-u8-nfkd.c: Likewise.
5897         * tests/uninorm/test-u8-normcmp.c: Likewise.
5898         * tests/uninorm/test-u8-normcoll.c: Likewise.
5899         * tests/uninorm/test-u16-nfc.c: Likewise.
5900         * tests/uninorm/test-u16-nfd.c: Likewise.
5901         * tests/uninorm/test-u16-nfkc.c: Likewise.
5902         * tests/uninorm/test-u16-nfkd.c: Likewise.
5903         * tests/uninorm/test-u16-normcmp.c: Likewise.
5904         * tests/uninorm/test-u16-normcoll.c: Likewise.
5905         * tests/uninorm/test-u32-nfc.c: Likewise.
5906         * tests/uninorm/test-u32-nfd.c: Likewise.
5907         * tests/uninorm/test-u32-nfkc.c: Likewise.
5908         * tests/uninorm/test-u32-nfkd.c: Likewise.
5909         * tests/uninorm/test-u32-normalize-big.c: Likewise.
5910         * tests/uninorm/test-u32-normcmp.c: Likewise.
5911         * tests/uninorm/test-u32-normcoll.c: Likewise.
5912         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
5913         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
5914         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
5915         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
5916         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
5917         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
5918         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
5919         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
5920         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
5921         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
5922         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
5923         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
5924         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
5925         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
5926         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
5927         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
5928         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
5929         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
5930         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
5931         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
5932         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
5933         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
5934         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
5935         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
5936         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
5937         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
5938         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
5939         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
5940         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
5941         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
5942         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
5943         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
5944         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
5945         * tests/uniwidth/test-u8-strwidth.c: Likewise.
5946         * tests/uniwidth/test-u8-width.c: Likewise.
5947         * tests/uniwidth/test-u16-strwidth.c: Likewise.
5948         * tests/uniwidth/test-u16-width.c: Likewise.
5949         * tests/uniwidth/test-u32-strwidth.c: Likewise.
5950         * tests/uniwidth/test-u32-width.c: Likewise.
5951         * tests/uniwidth/test-uc_width.c: Likewise.
5952         * tests/uniwidth/test-uc_width2.c: Likewise.
5953         * modules/acl-tests (Files): Add tests/macros.h.
5954         * modules/areadlink-tests (Files): Likewise.
5955         * modules/areadlink-with-size-tests (Files): Likewise.
5956         * modules/areadlinkat-tests (Files): Likewise.
5957         * modules/areadlinkat-with-size-tests (Files): Likewise.
5958         * modules/argmatch-tests (Files): Likewise.
5959         * modules/argv-iter-tests (Files): Likewise.
5960         * modules/array-list-tests (Files): Likewise.
5961         * modules/array-mergesort-tests (Files): Likewise.
5962         * modules/array-oset-tests (Files): Likewise.
5963         * modules/avltree-list-tests (Files): Likewise.
5964         * modules/avltree-oset-tests (Files): Likewise.
5965         * modules/avltreehash-list-tests (Files): Likewise.
5966         * modules/base64-tests (Files): Likewise.
5967         * modules/binary-io-tests (Files): Likewise.
5968         * modules/bitrotate-tests (Files): Likewise.
5969         * modules/btowc-tests (Files): Likewise.
5970         * modules/byteswap-tests (Files): Likewise.
5971         * modules/c-ctype-tests (Files): Likewise.
5972         * modules/c-stack-tests (Files): Likewise.
5973         * modules/c-strcase-tests (Files): Likewise.
5974         * modules/c-strcasestr-tests (Files): Likewise.
5975         * modules/c-strstr-tests (Files): Likewise.
5976         * modules/canonicalize-lgpl-tests (Files): Likewise.
5977         * modules/canonicalize-tests (Files): Likewise.
5978         * modules/carray-list-tests (Files): Likewise.
5979         * modules/ceilf-tests (Files): Likewise.
5980         * modules/ceill-tests (Files): Likewise.
5981         * modules/chown-tests (Files): Likewise.
5982         * modules/cloexec-tests (Files): Likewise.
5983         * modules/copy-file-tests (Files): Likewise.
5984         * modules/count-one-bits-tests (Files): Likewise.
5985         * modules/dprintf-posix-tests (Files): Likewise.
5986         * modules/dup2-tests (Files): Likewise.
5987         * modules/dup3-tests (Files): Likewise.
5988         * modules/duplocale-tests (Files): Likewise.
5989         * modules/fbufmode-tests (Files): Likewise.
5990         * modules/fchdir-tests (Files): Likewise.
5991         * modules/fcntl-safer-tests (Files): Likewise.
5992         * modules/fcntl-tests (Files): Likewise.
5993         * modules/fdopendir-tests (Files): Likewise.
5994         * modules/fdutimensat-tests (Files): Likewise.
5995         * modules/fflush-tests (Files): Likewise.
5996         * modules/filevercmp-tests (Files): Likewise.
5997         * modules/flock-tests (Files): Likewise.
5998         * modules/floorf-tests (Files): Likewise.
5999         * modules/floorl-tests (Files): Likewise.
6000         * modules/fnmatch-tests (Files): Likewise.
6001         * modules/fopen-safer-tests (Files): Likewise.
6002         * modules/fopen-tests (Files): Likewise.
6003         * modules/fpending-tests (Files): Likewise.
6004         * modules/fprintf-posix-tests (Files): Likewise.
6005         * modules/fpurge-tests (Files): Likewise.
6006         * modules/freadable-tests (Files): Likewise.
6007         * modules/freadahead-tests (Files): Likewise.
6008         * modules/freading-tests (Files): Likewise.
6009         * modules/freadptr-tests (Files): Likewise.
6010         * modules/freadseek-tests (Files): Likewise.
6011         * modules/freopen-tests (Files): Likewise.
6012         * modules/frexp-nolibm-tests (Files): Likewise.
6013         * modules/frexp-tests (Files): Likewise.
6014         * modules/frexpl-nolibm-tests (Files): Likewise.
6015         * modules/frexpl-tests (Files): Likewise.
6016         * modules/fseek-tests (Files): Likewise.
6017         * modules/fseeko-tests (Files): Likewise.
6018         * modules/fstrcmp-tests (Files): Likewise.
6019         * modules/fsync-tests (Files): Likewise.
6020         * modules/ftell-tests (Files): Likewise.
6021         * modules/ftello-tests (Files): Likewise.
6022         * modules/func-tests (Files): Likewise.
6023         * modules/futimens-tests (Files): Likewise.
6024         * modules/fwritable-tests (Files): Likewise.
6025         * modules/fwriting-tests (Files): Likewise.
6026         * modules/getcwd-tests (Files): Likewise.
6027         * modules/getdate-tests (Files): Likewise.
6028         * modules/getdelim-tests (Files): Likewise.
6029         * modules/getdtablesize-tests (Files): Likewise.
6030         * modules/getgroups-tests (Files): Likewise.
6031         * modules/getline-tests (Files): Likewise.
6032         * modules/getndelim2-tests (Files): Likewise.
6033         * modules/glob-tests (Files): Likewise.
6034         * modules/hash-tests (Files): Likewise.
6035         * modules/i-ring-tests (Files): Likewise.
6036         * modules/iconv-tests (Files): Likewise.
6037         * modules/iconv_open-utf-tests (Files): Likewise.
6038         * modules/idpriv-drop-tests (Files): Likewise.
6039         * modules/idpriv-droptemp-tests (Files): Likewise.
6040         * modules/inet_ntop-tests (Files): Likewise.
6041         * modules/inet_pton-tests (Files): Likewise.
6042         * modules/isblank-tests (Files): Likewise.
6043         * modules/isfinite-tests (Files): Likewise.
6044         * modules/isinf-tests (Files): Likewise.
6045         * modules/isnan-tests (Files): Likewise.
6046         * modules/isnand-nolibm-tests (Files): Likewise.
6047         * modules/isnand-tests (Files): Likewise.
6048         * modules/isnanf-nolibm-tests (Files): Likewise.
6049         * modules/isnanf-tests (Files): Likewise.
6050         * modules/isnanl-nolibm-tests (Files): Likewise.
6051         * modules/isnanl-tests (Files): Likewise.
6052         * modules/lchown-tests (Files): Likewise.
6053         * modules/ldexpl-tests (Files): Likewise.
6054         * modules/link-tests (Files): Likewise.
6055         * modules/linkat-tests (Files): Likewise.
6056         * modules/linked-list-tests (Files): Likewise.
6057         * modules/linkedhash-list-tests (Files): Likewise.
6058         * modules/localename-tests (Files): Likewise.
6059         * modules/lseek-tests (Files): Likewise.
6060         * modules/lstat-tests (Files): Likewise.
6061         * modules/mbmemcasecmp-tests (Files): Likewise.
6062         * modules/mbmemcasecoll-tests (Files): Likewise.
6063         * modules/mbrtowc-tests (Files): Likewise.
6064         * modules/mbscasecmp-tests (Files): Likewise.
6065         * modules/mbscasestr-tests (Files): Likewise.
6066         * modules/mbschr-tests (Files): Likewise.
6067         * modules/mbscspn-tests (Files): Likewise.
6068         * modules/mbsinit-tests (Files): Likewise.
6069         * modules/mbsncasecmp-tests (Files): Likewise.
6070         * modules/mbsnrtowcs-tests (Files): Likewise.
6071         * modules/mbspbrk-tests (Files): Likewise.
6072         * modules/mbspcasecmp-tests (Files): Likewise.
6073         * modules/mbsrchr-tests (Files): Likewise.
6074         * modules/mbsrtowcs-tests (Files): Likewise.
6075         * modules/mbsspn-tests (Files): Likewise.
6076         * modules/mbsstr-tests (Files): Likewise.
6077         * modules/memchr-tests (Files): Likewise.
6078         * modules/memchr2-tests (Files): Likewise.
6079         * modules/memcmp-tests (Files): Likewise.
6080         * modules/memmem-tests (Files): Likewise.
6081         * modules/memrchr-tests (Files): Likewise.
6082         * modules/mkdir-tests (Files): Likewise.
6083         * modules/mkfifo-tests (Files): Likewise.
6084         * modules/mkfifoat-tests (Files): Likewise.
6085         * modules/mknod-tests (Files): Likewise.
6086         * modules/nanosleep-tests (Files): Likewise.
6087         * modules/nl_langinfo-tests (Files): Likewise.
6088         * modules/obstack-printf-tests (Files): Likewise.
6089         * modules/open-tests (Files): Likewise.
6090         * modules/openat-tests (Files): Likewise.
6091         * modules/pipe-filter-gi-tests (Files): Likewise.
6092         * modules/pipe-filter-ii-tests (Files): Likewise.
6093         * modules/pipe2-tests (Files): Likewise.
6094         * modules/popen-safer-tests (Files): Likewise.
6095         * modules/popen-tests (Files): Likewise.
6096         * modules/posixtm-tests (Files): Likewise.
6097         * modules/pread-tests (Files): Likewise.
6098         * modules/printf-frexp-tests (Files): Likewise.
6099         * modules/printf-frexpl-tests (Files): Likewise.
6100         * modules/printf-posix-tests (Files): Likewise.
6101         * modules/priv-set-tests (Files): Likewise.
6102         * modules/quotearg-tests (Files): Likewise.
6103         * modules/random_r-tests (Files): Likewise.
6104         * modules/rawmemchr-tests (Files): Likewise.
6105         * modules/rbtree-list-tests (Files): Likewise.
6106         * modules/rbtree-oset-tests (Files): Likewise.
6107         * modules/rbtreehash-list-tests (Files): Likewise.
6108         * modules/readlink-tests (Files): Likewise.
6109         * modules/remove-tests (Files): Likewise.
6110         * modules/rename-tests (Files): Likewise.
6111         * modules/renameat-tests (Files): Likewise.
6112         * modules/rmdir-tests (Files): Likewise.
6113         * modules/round-tests (Files): Likewise.
6114         * modules/roundf-tests (Files): Likewise.
6115         * modules/roundl-tests (Files): Likewise.
6116         * modules/safe-alloc-tests (Files): Likewise.
6117         * modules/setenv-tests (Files): Likewise.
6118         * modules/sigaction-tests (Files): Likewise.
6119         * modules/signbit-tests (Files): Likewise.
6120         * modules/sleep-tests (Files): Likewise.
6121         * modules/snprintf-posix-tests (Files): Likewise.
6122         * modules/snprintf-tests (Files): Likewise.
6123         * modules/sprintf-posix-tests (Files): Likewise.
6124         * modules/stat-tests (Files): Likewise.
6125         * modules/stat-time-tests (Files): Likewise.
6126         * modules/strcasestr-tests (Files): Likewise.
6127         * modules/strchrnul-tests (Files): Likewise.
6128         * modules/strerror-tests (Files): Likewise.
6129         * modules/striconv-tests (Files): Likewise.
6130         * modules/striconveh-tests (Files): Likewise.
6131         * modules/striconveha-tests (Files): Likewise.
6132         * modules/strsignal-tests (Files): Likewise.
6133         * modules/strstr-tests (Files): Likewise.
6134         * modules/strtod-tests (Files): Likewise.
6135         * modules/strverscmp-tests (Files): Likewise.
6136         * modules/symlink-tests (Files): Likewise.
6137         * modules/symlinkat-tests (Files): Likewise.
6138         * modules/trunc-tests (Files): Likewise.
6139         * modules/truncf-tests (Files): Likewise.
6140         * modules/truncl-tests (Files): Likewise.
6141         * modules/uname-tests (Files): Likewise.
6142         * modules/unicase/cased-tests (Files): Likewise.
6143         * modules/unicase/ignorable-tests (Files): Likewise.
6144         * modules/unicase/locale-language-tests (Files): Likewise.
6145         * modules/unicase/tolower-tests (Files): Likewise.
6146         * modules/unicase/totitle-tests (Files): Likewise.
6147         * modules/unicase/toupper-tests (Files): Likewise.
6148         * modules/unicase/u8-casecmp-tests (Files): Likewise.
6149         * modules/unicase/u8-casecoll-tests (Files): Likewise.
6150         * modules/unicase/u8-casefold-tests (Files): Likewise.
6151         * modules/unicase/u8-is-cased-tests (Files): Likewise.
6152         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
6153         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
6154         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
6155         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
6156         * modules/unicase/u8-tolower-tests (Files): Likewise.
6157         * modules/unicase/u8-totitle-tests (Files): Likewise.
6158         * modules/unicase/u8-toupper-tests (Files): Likewise.
6159         * modules/unicase/u16-casecmp-tests (Files): Likewise.
6160         * modules/unicase/u16-casecoll-tests (Files): Likewise.
6161         * modules/unicase/u16-casefold-tests (Files): Likewise.
6162         * modules/unicase/u16-is-cased-tests (Files): Likewise.
6163         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
6164         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
6165         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
6166         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
6167         * modules/unicase/u16-tolower-tests (Files): Likewise.
6168         * modules/unicase/u16-totitle-tests (Files): Likewise.
6169         * modules/unicase/u16-toupper-tests (Files): Likewise.
6170         * modules/unicase/u32-casecmp-tests (Files): Likewise.
6171         * modules/unicase/u32-casecoll-tests (Files): Likewise.
6172         * modules/unicase/u32-casefold-tests (Files): Likewise.
6173         * modules/unicase/u32-is-cased-tests (Files): Likewise.
6174         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
6175         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
6176         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
6177         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
6178         * modules/unicase/u32-tolower-tests (Files): Likewise.
6179         * modules/unicase/u32-totitle-tests (Files): Likewise.
6180         * modules/unicase/u32-toupper-tests (Files): Likewise.
6181         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
6182         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
6183         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
6184         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
6185         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
6186         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
6187         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
6188         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
6189         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
6190         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
6191         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
6192         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
6193         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
6194         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
6195         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
6196         * modules/unictype/bidicategory-name-tests (Files): Likewise.
6197         * modules/unictype/bidicategory-of-tests (Files): Likewise.
6198         * modules/unictype/bidicategory-test-tests (Files): Likewise.
6199         * modules/unictype/block-list-tests (Files): Likewise.
6200         * modules/unictype/block-of-tests (Files): Likewise.
6201         * modules/unictype/block-test-tests (Files): Likewise.
6202         * modules/unictype/category-C-tests (Files): Likewise.
6203         * modules/unictype/category-Cc-tests (Files): Likewise.
6204         * modules/unictype/category-Cf-tests (Files): Likewise.
6205         * modules/unictype/category-Cn-tests (Files): Likewise.
6206         * modules/unictype/category-Co-tests (Files): Likewise.
6207         * modules/unictype/category-Cs-tests (Files): Likewise.
6208         * modules/unictype/category-L-tests (Files): Likewise.
6209         * modules/unictype/category-Ll-tests (Files): Likewise.
6210         * modules/unictype/category-Lm-tests (Files): Likewise.
6211         * modules/unictype/category-Lo-tests (Files): Likewise.
6212         * modules/unictype/category-Lt-tests (Files): Likewise.
6213         * modules/unictype/category-Lu-tests (Files): Likewise.
6214         * modules/unictype/category-M-tests (Files): Likewise.
6215         * modules/unictype/category-Mc-tests (Files): Likewise.
6216         * modules/unictype/category-Me-tests (Files): Likewise.
6217         * modules/unictype/category-Mn-tests (Files): Likewise.
6218         * modules/unictype/category-N-tests (Files): Likewise.
6219         * modules/unictype/category-Nd-tests (Files): Likewise.
6220         * modules/unictype/category-Nl-tests (Files): Likewise.
6221         * modules/unictype/category-No-tests (Files): Likewise.
6222         * modules/unictype/category-P-tests (Files): Likewise.
6223         * modules/unictype/category-Pc-tests (Files): Likewise.
6224         * modules/unictype/category-Pd-tests (Files): Likewise.
6225         * modules/unictype/category-Pe-tests (Files): Likewise.
6226         * modules/unictype/category-Pf-tests (Files): Likewise.
6227         * modules/unictype/category-Pi-tests (Files): Likewise.
6228         * modules/unictype/category-Po-tests (Files): Likewise.
6229         * modules/unictype/category-Ps-tests (Files): Likewise.
6230         * modules/unictype/category-S-tests (Files): Likewise.
6231         * modules/unictype/category-Sc-tests (Files): Likewise.
6232         * modules/unictype/category-Sk-tests (Files): Likewise.
6233         * modules/unictype/category-Sm-tests (Files): Likewise.
6234         * modules/unictype/category-So-tests (Files): Likewise.
6235         * modules/unictype/category-Z-tests (Files): Likewise.
6236         * modules/unictype/category-Zl-tests (Files): Likewise.
6237         * modules/unictype/category-Zp-tests (Files): Likewise.
6238         * modules/unictype/category-Zs-tests (Files): Likewise.
6239         * modules/unictype/category-and-not-tests (Files): Likewise.
6240         * modules/unictype/category-and-tests (Files): Likewise.
6241         * modules/unictype/category-byname-tests (Files): Likewise.
6242         * modules/unictype/category-name-tests (Files): Likewise.
6243         * modules/unictype/category-none-tests (Files): Likewise.
6244         * modules/unictype/category-of-tests (Files): Likewise.
6245         * modules/unictype/category-or-tests (Files): Likewise.
6246         * modules/unictype/category-test-withtable-tests (Files): Likewise.
6247         * modules/unictype/combining-class-tests (Files): Likewise.
6248         * modules/unictype/ctype-alnum-tests (Files): Likewise.
6249         * modules/unictype/ctype-alpha-tests (Files): Likewise.
6250         * modules/unictype/ctype-blank-tests (Files): Likewise.
6251         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
6252         * modules/unictype/ctype-digit-tests (Files): Likewise.
6253         * modules/unictype/ctype-graph-tests (Files): Likewise.
6254         * modules/unictype/ctype-lower-tests (Files): Likewise.
6255         * modules/unictype/ctype-print-tests (Files): Likewise.
6256         * modules/unictype/ctype-punct-tests (Files): Likewise.
6257         * modules/unictype/ctype-space-tests (Files): Likewise.
6258         * modules/unictype/ctype-upper-tests (Files): Likewise.
6259         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
6260         * modules/unictype/decimal-digit-tests (Files): Likewise.
6261         * modules/unictype/digit-tests (Files): Likewise.
6262         * modules/unictype/mirror-tests (Files): Likewise.
6263         * modules/unictype/numeric-tests (Files): Likewise.
6264         * modules/unictype/property-alphabetic-tests (Files): Likewise.
6265         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
6266         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
6267         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
6268         Likewise.
6269         * modules/unictype/property-bidi-block-separator-tests (Files):
6270         Likewise.
6271         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
6272         Likewise.
6273         * modules/unictype/property-bidi-common-separator-tests (Files):
6274         Likewise.
6275         * modules/unictype/property-bidi-control-tests (Files): Likewise.
6276         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
6277         Likewise.
6278         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
6279         Likewise.
6280         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
6281         Likewise.
6282         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
6283         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
6284         Likewise.
6285         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
6286         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
6287         Likewise.
6288         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
6289         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
6290         * modules/unictype/property-bidi-segment-separator-tests (Files):
6291         Likewise.
6292         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
6293         * modules/unictype/property-byname-tests (Files): Likewise.
6294         * modules/unictype/property-combining-tests (Files): Likewise.
6295         * modules/unictype/property-composite-tests (Files): Likewise.
6296         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
6297         * modules/unictype/property-dash-tests (Files): Likewise.
6298         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
6299         * modules/unictype/property-default-ignorable-code-point-tests (Files):
6300         Likewise.
6301         * modules/unictype/property-deprecated-tests (Files): Likewise.
6302         * modules/unictype/property-diacritic-tests (Files): Likewise.
6303         * modules/unictype/property-extender-tests (Files): Likewise.
6304         * modules/unictype/property-format-control-tests (Files): Likewise.
6305         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
6306         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
6307         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
6308         * modules/unictype/property-hex-digit-tests (Files): Likewise.
6309         * modules/unictype/property-hyphen-tests (Files): Likewise.
6310         * modules/unictype/property-id-continue-tests (Files): Likewise.
6311         * modules/unictype/property-id-start-tests (Files): Likewise.
6312         * modules/unictype/property-ideographic-tests (Files): Likewise.
6313         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
6314         * modules/unictype/property-ids-trinary-operator-tests (Files):
6315         Likewise.
6316         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
6317         * modules/unictype/property-iso-control-tests (Files): Likewise.
6318         * modules/unictype/property-join-control-tests (Files): Likewise.
6319         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
6320         * modules/unictype/property-line-separator-tests (Files): Likewise.
6321         * modules/unictype/property-logical-order-exception-tests (Files):
6322         Likewise.
6323         * modules/unictype/property-lowercase-tests (Files): Likewise.
6324         * modules/unictype/property-math-tests (Files): Likewise.
6325         * modules/unictype/property-non-break-tests (Files): Likewise.
6326         * modules/unictype/property-not-a-character-tests (Files): Likewise.
6327         * modules/unictype/property-numeric-tests (Files): Likewise.
6328         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
6329         * modules/unictype/property-other-default-ignorable-code-point-tests
6330         (Files): Likewise.
6331         * modules/unictype/property-other-grapheme-extend-tests (Files):
6332         Likewise.
6333         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
6334         * modules/unictype/property-other-id-start-tests (Files): Likewise.
6335         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
6336         * modules/unictype/property-other-math-tests (Files): Likewise.
6337         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
6338         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
6339         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
6340         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
6341         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
6342         * modules/unictype/property-private-use-tests (Files): Likewise.
6343         * modules/unictype/property-punctuation-tests (Files): Likewise.
6344         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
6345         * modules/unictype/property-radical-tests (Files): Likewise.
6346         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
6347         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
6348         * modules/unictype/property-space-tests (Files): Likewise.
6349         * modules/unictype/property-terminal-punctuation-tests (Files):
6350         Likewise.
6351         * modules/unictype/property-test-tests (Files): Likewise.
6352         * modules/unictype/property-titlecase-tests (Files): Likewise.
6353         * modules/unictype/property-unassigned-code-value-tests (Files):
6354         Likewise.
6355         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
6356         * modules/unictype/property-uppercase-tests (Files): Likewise.
6357         * modules/unictype/property-variation-selector-tests (Files): Likewise.
6358         * modules/unictype/property-white-space-tests (Files): Likewise.
6359         * modules/unictype/property-xid-continue-tests (Files): Likewise.
6360         * modules/unictype/property-xid-start-tests (Files): Likewise.
6361         * modules/unictype/property-zero-width-tests (Files): Likewise.
6362         * modules/unictype/scripts-tests (Files): Likewise.
6363         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
6364         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
6365         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
6366         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
6367         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
6368         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
6369         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
6370         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
6371         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
6372         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
6373         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
6374         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
6375         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
6376         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
6377         * modules/uninorm/composition-tests (Files): Likewise.
6378         * modules/uninorm/decomposing-form-tests (Files): Likewise.
6379         * modules/uninorm/decomposition-tests (Files): Likewise.
6380         * modules/uninorm/filter-tests (Files): Likewise.
6381         * modules/uninorm/nfc-tests (Files): Likewise.
6382         * modules/uninorm/nfd-tests (Files): Likewise.
6383         * modules/uninorm/nfkc-tests (Files): Likewise.
6384         * modules/uninorm/nfkd-tests (Files): Likewise.
6385         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
6386         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
6387         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
6388         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
6389         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
6390         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
6391         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
6392         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
6393         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
6394         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
6395         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
6396         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
6397         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
6398         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
6399         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
6400         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
6401         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
6402         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
6403         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
6404         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
6405         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
6406         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
6407         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
6408         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
6409         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
6410         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
6411         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
6412         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
6413         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
6414         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
6415         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
6416         * modules/uniwidth/u8-width-tests (Files): Likewise.
6417         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
6418         * modules/uniwidth/u16-width-tests (Files): Likewise.
6419         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
6420         * modules/uniwidth/u32-width-tests (Files): Likewise.
6421         * modules/uniwidth/width-tests (Files): Likewise.
6422         * modules/unlink-tests (Files): Likewise.
6423         * modules/unsetenv-tests (Files): Likewise.
6424         * modules/usleep-tests (Files): Likewise.
6425         * modules/utimens-tests (Files): Likewise.
6426         * modules/utimensat-tests (Files): Likewise.
6427         * modules/vasnprintf-posix-tests (Files): Likewise.
6428         * modules/vasnprintf-tests (Files): Likewise.
6429         * modules/vasprintf-posix-tests (Files): Likewise.
6430         * modules/vasprintf-tests (Files): Likewise.
6431         * modules/vdprintf-posix-tests (Files): Likewise.
6432         * modules/vfprintf-posix-tests (Files): Likewise.
6433         * modules/vprintf-posix-tests (Files): Likewise.
6434         * modules/vsnprintf-posix-tests (Files): Likewise.
6435         * modules/vsnprintf-tests (Files): Likewise.
6436         * modules/vsprintf-posix-tests (Files): Likewise.
6437         * modules/wcrtomb-tests (Files): Likewise.
6438         * modules/wcsnrtombs-tests (Files): Likewise.
6439         * modules/wcsrtombs-tests (Files): Likewise.
6440         * modules/wctype-tests (Files): Likewise.
6441         * modules/wcwidth-tests (Files): Likewise.
6442         * modules/xmemdup0-tests (Files): Likewise.
6443         * modules/xprintf-posix-tests (Files): Likewise.
6444         * modules/xvasprintf-tests (Files): Likewise.
6445
6446 2009-12-24  Eric Blake  <ebb9@byu.net>
6447
6448         test-nanosleep: fix typo
6449         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
6450         patch.
6451         Reported by Bruno Haible.
6452
6453 2009-12-24  Bruno Haible  <bruno@clisp.org>
6454
6455         Reduce namespace pollution on glibc systems.
6456         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
6457         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
6458         systems.
6459         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
6460         <getopt.h> on glibc systems.
6461         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
6462         systems.
6463         * lib/fcntl.c: Include <unistd.h> here instead.
6464
6465 2009-12-24  Bruno Haible  <bruno@clisp.org>
6466
6467         * lib/stdlib.in.h (includes): Fix typo in today's commit.
6468
6469 2009-12-24  Eric Blake  <ebb9@byu.net>
6470
6471         tests: add signature checks
6472         * tests/signature.h (SIGNATURE_CHECK): New file.
6473         * modules/atexit-tests (Files): Use it.
6474         * modules/btowc-tests (Files): Likewise.
6475         * modules/canonicalize-lgpl-tests (Files): Likewise.
6476         * modules/ceilf-tests (Files): Likewise.
6477         * modules/ceill-tests (Files): Likewise.
6478         * modules/chown-tests (Files): Likewise.
6479         * modules/dprintf-posix-tests (Files): Likewise.
6480         * modules/dup2-tests (Files): Likewise.
6481         * modules/dup3-tests (Files): Likewise.
6482         * modules/duplocale-tests (Files): Likewise.
6483         * modules/fchdir-tests (Files): Likewise.
6484         * modules/fcntl-tests (Files): Likewise.
6485         * modules/fdopendir-tests (Files): Likewise.
6486         * modules/fflush-tests (Files): Likewise.
6487         * modules/flock-tests (Files): Likewise.
6488         * modules/floorf-tests (Files): Likewise.
6489         * modules/floorl-tests (Files): Likewise.
6490         * modules/fnmatch-tests (Files): Likewise.
6491         * modules/fopen-tests (Files): Likewise.
6492         * modules/fprintf-posix-tests (Files): Likewise.
6493         * modules/freopen-tests (Files): Likewise.
6494         * modules/frexp-nolibm-tests (Files): Likewise.
6495         * modules/frexp-tests (Files): Likewise.
6496         * modules/frexpl-nolibm-tests (Files): Likewise.
6497         * modules/frexpl-tests (Files): Likewise.
6498         * modules/fseek-tests (Files): Likewise.
6499         * modules/fseeko-tests (Files): Likewise.
6500         * modules/fsync-tests (Files): Likewise.
6501         * modules/ftell-tests (Files): Likewise.
6502         * modules/ftello-tests (Files): Likewise.
6503         * modules/futimens-tests (Files): Likewise.
6504         * modules/getaddrinfo-tests (Files): Likewise.
6505         * modules/getcwd-tests (Files): Likewise.
6506         * modules/getdelim-tests (Files): Likewise.
6507         * modules/getdtablesize-tests (Files): Likewise.
6508         * modules/getgroups-tests (Files): Likewise.
6509         * modules/gethostname-tests (Files): Likewise.
6510         * modules/getline-tests (Files): Likewise.
6511         * modules/getopt-posix-tests (Files): Likewise.
6512         * modules/gettimeofday-tests (Files): Likewise.
6513         * modules/glob-tests (Files): Likewise.
6514         * modules/iconv-tests (Files): Likewise.
6515         * modules/inet_ntop-tests (Files): Likewise.
6516         * modules/inet_pton-tests (Files): Likewise.
6517         * modules/isblank-tests (Files): Likewise.
6518         * modules/lchown-tests (Files): Likewise.
6519         * modules/ldexpl-tests (Files): Likewise.
6520         * modules/link-tests (Files): Likewise.
6521         * modules/linkat-tests (Files): Likewise.
6522         * modules/lseek-tests (Files): Likewise.
6523         * modules/lstat-tests (Files): Likewise.
6524         * modules/mbrtowc-tests (Files): Likewise.
6525         * modules/mbsinit-tests (Files): Likewise.
6526         * modules/mbsnrtowcs-tests (Files): Likewise.
6527         * modules/mbsrtowcs-tests (Files): Likewise.
6528         * modules/memchr-tests (Files): Likewise.
6529         * modules/memcmp-tests (Files): Likewise.
6530         * modules/memmem-tests (Files): Likewise.
6531         * modules/memrchr-tests (Files): Likewise.
6532         * modules/mkdir-tests (Files): Likewise.
6533         * modules/mkfifo-tests (Files): Likewise.
6534         * modules/mkfifoat-tests (Files): Likewise.
6535         * modules/mknod-tests (Files): Likewise.
6536         * modules/nanosleep-tests (Files): Likewise.
6537         * modules/nl_langinfo-tests (Files): Likewise.
6538         * modules/obstack-printf-tests (Files): Likewise.
6539         * modules/open-tests (Files): Likewise.
6540         * modules/openat-tests (Files): Likewise.
6541         * modules/perror-tests (Files): Likewise.
6542         * modules/pipe2-tests (Files): Likewise.
6543         * modules/poll-tests (Files): Likewise.
6544         * modules/popen-tests (Files): Likewise.
6545         * modules/posix_spawn-tests (Files): Likewise.
6546         * modules/posix_spawnp-tests (Files): Likewise.
6547         * modules/pread-tests (Files): Likewise.
6548         * modules/printf-posix-tests (Files): Likewise.
6549         * modules/pty-tests (Files): Likewise.
6550         * modules/random_r-tests (Files): Likewise.
6551         * modules/rawmemchr-tests (Files): Likewise.
6552         * modules/readlink-tests (Files): Likewise.
6553         * modules/remove-tests (Files): Likewise.
6554         * modules/rename-tests (Files): Likewise.
6555         * modules/renameat-tests (Files): Likewise.
6556         * modules/rmdir-tests (Files): Likewise.
6557         * modules/round-tests (Files): Likewise.
6558         * modules/roundf-tests (Files): Likewise.
6559         * modules/roundl-tests (Files): Likewise.
6560         * modules/select-tests (Files): Likewise.
6561         * modules/setenv-tests (Files): Likewise.
6562         * modules/sigaction-tests (Files): Likewise.
6563         * modules/sleep-tests (Files): Likewise.
6564         * modules/snprintf-posix-tests (Files): Likewise.
6565         * modules/snprintf-tests (Files): Likewise.
6566         * modules/sprintf-posix-tests (Files): Likewise.
6567         * modules/stat-tests (Files): Likewise.
6568         * modules/strcasestr-tests (Files): Likewise.
6569         * modules/strchrnul-tests (Files): Likewise.
6570         * modules/strerror-tests (Files): Likewise.
6571         * modules/strsignal-tests (Files): Likewise.
6572         * modules/strstr-tests (Files): Likewise.
6573         * modules/strtod-tests (Files): Likewise.
6574         * modules/strverscmp-tests (Files): Likewise.
6575         * modules/symlink-tests (Files): Likewise.
6576         * modules/symlinkat-tests (Files): Likewise.
6577         * modules/times-tests (Files): Likewise.
6578         * modules/trunc-tests (Files): Likewise.
6579         * modules/truncf-tests (Files): Likewise.
6580         * modules/truncl-tests (Files): Likewise.
6581         * modules/tsearch-tests (Files): Likewise.
6582         * modules/uname-tests (Files): Likewise.
6583         * modules/unlink-tests (Files): Likewise.
6584         * modules/unsetenv-tests (Files): Likewise.
6585         * modules/usleep-tests (Files): Likewise.
6586         * modules/utimensat-tests (Files): Likewise.
6587         * modules/vasprintf-tests (Files): Likewise.
6588         * modules/vdprintf-posix-tests (Files): Likewise.
6589         * modules/vfprintf-posix-tests (Files): Likewise.
6590         * modules/vprintf-posix-tests (Files): Likewise.
6591         * modules/vsnprintf-posix-tests (Files): Likewise.
6592         * modules/vsnprintf-tests (Files): Likewise.
6593         * modules/vsprintf-posix-tests (Files): Likewise.
6594         * modules/wcrtomb-tests (Files): Likewise.
6595         * modules/wcsnrtombs-tests (Files): Likewise.
6596         * modules/wcsrtombs-tests (Files): Likewise.
6597         * modules/wcwidth-tests (Files): Likewise.
6598         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
6599         * tests/test-isinf.c (isinf): Likewise.
6600         * tests/test-isnan.c (isnan): Likewise.
6601         * tests/test-signbit.c (signbit): Likewise.
6602         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
6603         declaration, either as macro or with correct signature.
6604         (select): Ensure function under test is declared with correct
6605         signature in correct header.
6606         * tests/test-atexit.c (atexit): Likewise.
6607         * tests/test-btowc.c (btowc): Likewise.
6608         * tests/test-canonicalize-lgpl.c (realpath)
6609         (canonicalize_file_name): Likewise.
6610         * tests/test-ceilf1.c (ceilf): Likewise.
6611         * tests/test-ceill.c (ceill): Likewise.
6612         * tests/test-chown.c (chown): Likewise.
6613         * tests/test-dprintf-posix.c (dprintf): Likewise.
6614         * tests/test-dup2.c (dup2): Likewise.
6615         * tests/test-dup3.c (dup3): Likewise.
6616         * tests/test-duplocale.c (duplocale): Likewise.
6617         * tests/test-fchdir.c (fchdir): Likewise.
6618         * tests/test-fchownat.c (fchownat): Likewise.
6619         * tests/test-fcntl.c (fcntl): Likewise.
6620         * tests/test-fdopendir.c (fdopendir): Likewise.
6621         * tests/test-fflush.c (fflush): Likewise.
6622         * tests/test-flock.c (flock): Likewise.
6623         * tests/test-floorf1.c (floorf): Likewise.
6624         * tests/test-floorl.c (floorl): Likewise.
6625         * tests/test-fnmatch.c (fnmatch): Likewise.
6626         * tests/test-fopen.c (fopen): Likewise.
6627         * tests/test-fprintf-posix.c (fprintf): Likewise.
6628         * tests/test-freopen.c (freopen): Likewise.
6629         * tests/test-frexp.c (frexp): Likewise.
6630         * tests/test-frexpl.c (frexpl): Likewise.
6631         * tests/test-fseek.c (fseek): Likewise.
6632         * tests/test-fseeko.c (fseeko): Likewise.
6633         * tests/test-fstatat.c (fstatat): Likewise.
6634         * tests/test-fsync.c (fsync): Likewise.
6635         * tests/test-ftell.c (ftell): Likewise.
6636         * tests/test-ftello.c (ftello): Likewise.
6637         * tests/test-futimens.c (futimens): Likewise.
6638         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
6639         (gai_strerror): Likewise.
6640         * tests/test-getcwd.c (getcwd): Likewise.
6641         * tests/test-getdelim.c (getdelim): Likewise.
6642         * tests/test-getdtablesize.c (getdtablesize): Likewise.
6643         * tests/test-getgroups.c (getgroups): Likewise.
6644         * tests/test-gethostname.c (gethostname): Likewise.
6645         * tests/test-getline.c (getline): Likewise.
6646         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
6647         Likewise.
6648         * tests/test-gettimeofday.c (gettimeofday): Likewise.
6649         * tests/test-glob.c (glob, globfree): Likewise.
6650         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
6651         * tests/test-inet_ntop.c (inet_ntop): Likewise.
6652         * tests/test-inet_pton.c (inet_pton): Likewise.
6653         * tests/test-isblank.c (isblank): Likewise.
6654         * tests/test-lchown.c (lchown): Likewise.
6655         * tests/test-ldexpl.c (ldexpl): Likewise.
6656         * tests/test-link.c (link): Likewise.
6657         * tests/test-linkat.c (linkat): Likewise.
6658         * tests/test-lseek.c (lseek): Likewise.
6659         * tests/test-lstat.c (lstat): Likewise.
6660         * tests/test-mbrtowc.c (mbrtowc): Likewise.
6661         * tests/test-mbsinit.c (mbsinit): Likewise.
6662         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
6663         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
6664         * tests/test-memchr.c (memchr): Likewise.
6665         * tests/test-memcmp.c (memcmp): Likewise.
6666         * tests/test-memmem.c (memmem): Likewise.
6667         * tests/test-memrchr.c (memrchr): Likewise.
6668         * tests/test-mkdir.c (mkdir): Likewise.
6669         * tests/test-mkdirat.c (mkdirat): Likewise.
6670         * tests/test-mkfifo.c (mkfifo): Likewise.
6671         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
6672         * tests/test-mknod.c (mknod): Likewise.
6673         * tests/test-nanosleep.c (nanosleep): Likewise.
6674         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
6675         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
6676         Likewise.
6677         * tests/test-open.c (open): Likewise.
6678         * tests/test-openat.c (openat): Likewise.
6679         * tests/test-perror.c (perror): Likewise.
6680         * tests/test-pipe2.c (pipe2): Likewise.
6681         * tests/test-poll.c (poll): Likewise.
6682         * tests/test-popen.c (popen, pclose): Likewise.
6683         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
6684         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
6685         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
6686         (posix_spawn_file_actions_destroy)
6687         (posix_spawn_file_actions_addclose)
6688         (posix_spawn_file_actions_addopen)
6689         (posix_spawn_file_actions_adddup2): Likewise.
6690         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
6691         * tests/test-pread.c (pread): Likewise.
6692         * tests/test-printf-posix.c (printf): Likewise.
6693         * tests/test-pty.c (openpty, forkpty): Likewise.
6694         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
6695         (random_r): Likewise.
6696         * tests/test-rawmemchr.c (rawmemchr): Likewise.
6697         * tests/test-readlink.c (readlink): Likewise.
6698         * tests/test-remove.c (remove): Likewise.
6699         * tests/test-rename.c (rename): Likewise.
6700         * tests/test-renameat.c (renameat): Likewise.
6701         * tests/test-rmdir.c (rmdir): Likewise.
6702         * tests/test-round1.c (round): Likewise.
6703         * tests/test-roundf1.c (roundf): Likewise.
6704         * tests/test-roundl.c (roundl): Likewise.
6705         * tests/test-setenv.c (setenv): Likewise.
6706         * tests/test-sigaction.c (sigaction): Likewise.
6707         * tests/test-sleep.c (sleep): Likewise.
6708         * tests/test-snprintf.c (snprintf): Likewise.
6709         * tests/test-sprintf-posix.c (sprintf): Likewise.
6710         * tests/test-stat.c (stat): Likewise.
6711         * tests/test-stpncpy.c (stpncpy): Likewise.
6712         * tests/test-strcasestr.c (strcasestr): Likewise.
6713         * tests/test-strchrnul.c (strchrnul): Likewise.
6714         * tests/test-strerror.c (strerror): Likewise.
6715         * tests/test-strsignal.c (strsignal): Likewise.
6716         * tests/test-strstr.c (strstr): Likewise.
6717         * tests/test-strtod.c (strtod): Likewise.
6718         * tests/test-strverscmp.c (strverscmp): Likewise.
6719         * tests/test-symlink.c (symlink): Likewise.
6720         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
6721         * tests/test-times.c (times): Likewise.
6722         * tests/test-trunc1.c (trunc): Likewise.
6723         * tests/test-truncf1.c (truncf): Likewise.
6724         * tests/test-truncl.c (truncl): Likewise.
6725         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
6726         Likewise.
6727         * tests/test-uname.c (uname): Likewise.
6728         * tests/test-unlink.c (unlink): Likewise.
6729         * tests/test-unlinkat.c (unlinkat): Likewise.
6730         * tests/test-unsetenv.c (unsetenv): Likewise.
6731         * tests/test-usleep.c (usleep): Likewise.
6732         * tests/test-utimensat.c (utimensat): Likewise.
6733         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
6734         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
6735         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
6736         * tests/test-vprintf-posix.c (vprintf): Likewise.
6737         * tests/test-vsnprintf.c (vsnprintf): Likewise.
6738         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
6739         * tests/test-wcrtomb.c (wcrtomb): Likewise.
6740         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
6741         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
6742         * tests/test-wcwidth.c (wcwidth): Likewise.
6743
6744         build: pull in conditional headers during GNULIB_POSIXCHECK
6745         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
6746         definitions from any conditionally-included headers.
6747         * lib/stdlib.in.h (includes): Likewise.
6748         * lib/unistd.in.h (includes): Likewise.
6749
6750 2009-12-24  Bruno Haible  <bruno@clisp.org>
6751
6752         * tests/test-argv-iter.c: Include header file being tested immediately
6753         after config.h.
6754         * tests/test-base64.c: Likewise.
6755         * tests/test-flock.c: Likewise.
6756         * tests/test-fsync.c: Likewise.
6757         * tests/test-getdate.c: Likewise.
6758         * tests/test-getndelim2.c: Likewise.
6759         * tests/test-isfinite.c: Likewise.
6760         * tests/test-isinf.c: Likewise.
6761         * tests/test-strerror.c: Likewise.
6762         * tests/test-strsignal.c: Likewise.
6763
6764 2009-12-23  Eric Blake  <ebb9@byu.net>
6765
6766         unistd: work around cygwin bug
6767         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
6768         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
6769         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
6770
6771 2009-12-23  Bruno Haible  <bruno@clisp.org>
6772
6773         localename: More tests.
6774         * tests/test-localename.c (SIZEOF): New macro.
6775         (categories): New variable.
6776         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
6777         test_locale_name_default): Add test w.r.t. thread locale.
6778         (test_locale_name_thread): New function.
6779         (main): Invoke it.
6780
6781         localename: Make aware of thread locale.
6782         * lib/localename.h (gl_locale_name_thread): New declaration.
6783         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
6784         behaviour with respect to thread locale.
6785         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
6786         <langinfo.h>, glthread/lock.h.
6787         (SIZE_BITS): New macro.
6788         (string_hash): New function.
6789         (struct hash_node): New type.
6790         (HASH_TABLE_SIZE): New macro.
6791         (struniq_hash_table, struniq_lock): New variables.
6792         (struniq): New function.
6793         (gl_locale_name_thread): New function.
6794         (gl_locale_name): Invoke it.
6795         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
6796         * modules/localename (Depends-on): Add lock.
6797         Reported by Mike Gran <spk121@yahoo.com>.
6798
6799 2009-12-23  Eric Blake  <ebb9@byu.net>
6800
6801         va-args: new module
6802         * modules/va-args: New file.
6803         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
6804         * MODULES.html.sh (Core language properties): Mention it.
6805
6806         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
6807         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
6808         named alias for __attribute__((__unused__)).
6809         * lib/chown.c: Update client.
6810         * lib/fchmodat.c: Likewise.
6811         * lib/fts.c: Likewise.
6812         * lib/getdate.y: Likewise.
6813         * lib/getgroups.c: Likewise.
6814         * lib/getopt.c: Likewise.
6815         * lib/getugroups.c: Likewise.
6816         * lib/mkdir.c: Likewise.
6817         * lib/mkfifo.c: Likewise.
6818         * lib/mkfifoat.c: Likewise.
6819         * lib/mknod.c: Likewise.
6820         * lib/mknodat.c: Likewise.
6821         * lib/readlink.c: Likewise.
6822         * lib/se-context.in.h: Likewise.
6823         * lib/se-selinux.in.h: Likewise.
6824         * lib/sockets.c: Likewise.
6825         * lib/symlink.c: Likewise.
6826         * lib/symlinkat.c: Likewise.
6827         * lib/unicodeio.c: Likewise.
6828         * lib/unistr.h: Likewise.
6829         * tests/test-areadlink.c: Likewise.
6830         * tests/test-areadlinkat.c: Likewise.
6831         * tests/test-filenamecat.c: Likewise.
6832         * tests/test-fseeko.c: Likewise.
6833         * tests/test-ftello.c: Likewise.
6834         * tests/test-getdate.c: Likewise.
6835         * tests/test-getgroups.c: Likewise.
6836         * tests/test-gethostname.c: Likewise.
6837         * tests/test-quotearg.c: Likewise.
6838         * tests/test-version-etc.c: Likewise.
6839         * tests/test-xalloc-die.c: Likewise.
6840         * tests/test-xfprintf-posix.c: Likewise.
6841         * tests/test-xprintf-posix.c: Likewise.
6842         * tests/test-xvasprintf.c: Likewise.
6843
6844         tests: avoid compiler warnings
6845         * tests/test-fcntl.c (main): Delete unused parameters.
6846         * tests/test-freopen-safer.c (main): Likewise.
6847         * tests/test-xalloc-die.c (main): Mark unused parameters.
6848         * tests/test-fseeko.c (main): Likewise.
6849         * tests/test-ftello.c (main): Likewise.
6850         * tests/test-nanosleep.c (main): Avoid declaration warning.
6851         * tests/test-sleep.c (main): Likewise.
6852         * tests/test-unsetenv.c (main): Silence warning about string
6853         literal.
6854         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
6855
6856 2009-12-23  Bruno Haible  <bruno@clisp.org>
6857
6858         * tests/test-localename.c (test_locale_name): New function, extracted
6859         from main. Also test mixed situations.
6860         (test_locale_name_posix, test_locale_name_environ,
6861         test_locale_name_default): New functions.
6862         (main): Invoke them all.
6863         * modules/localename-tests (configure.ac): Test for newlocale.
6864
6865 2009-12-23  Bruno Haible  <bruno@clisp.org>
6866
6867         unistd: Ensure getcwd gets declared before being overridden.
6868         * lib/unistd.in.h: Conditionally include <io.h>.
6869
6870 2009-12-22  Bruno Haible  <bruno@clisp.org>
6871
6872         wchar: Diagnose broken combination of glibc and gcc versions and flags.
6873         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
6874         (gl_WCHAR_H): Invoke it.
6875         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
6876         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
6877         Reported by Karl Berry <karl@freefriends.org>.
6878
6879 2009-12-22  Eric Blake  <ebb9@byu.net>
6880
6881         math, unistd: avoid redundant includes
6882         * lib/math.in.h (isnan): No need to re-include <math.h>.
6883         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
6884
6885         getsubopt: work around cygwin bug
6886         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
6887         avoid conflicting with system getsubopt.
6888         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
6889         bug.
6890
6891         getopt: synchronize from glibc
6892         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
6893         parameter order.  Adjust all callers.
6894         (_getopt_internal_r, main): Adjust quoting in error messages.
6895         Drop considerations for outdated POSIX 1003.2 error message.
6896         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
6897         callers.
6898         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
6899
6900         test-getopt: test stderr behavior
6901         * modules/getopt-posix-tests (Depends-on): Add dup2.
6902         * tests/test-getopt.c (ASSERT): Avoid stderr.
6903         (main): Move stderr to a temporary file.
6904         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
6905         Instead, add parameter to inform caller if output occurred.
6906         (test_getopt): Adjust all existing tests to expect silence, and
6907         add new tests of leading ":".
6908         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
6909         glibc shortcomings with leading "-:" or "+:" in optstring.
6910         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6911         Likewise.
6912         * doc/posix-functions/getopt.texi (getopt): Likewise.
6913
6914         test-getopt: enhance test
6915         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
6916         supports optind=0.
6917         * tests/test-getopt.c (OPTIND_MIN): Move...
6918         * tests/test-getopt.h (OPTIND_MIN): ...here.
6919         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
6920         Require that optind=0 works, since modern BSD supports it in
6921         addition to optreset, and since coreutils expects it.
6922         (test_getopt_long_only): New test.
6923         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
6924         glibc shortcomings with 'W;', and enforcement of optind=0.
6925         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6926         Likewise.
6927
6928 2009-12-21  Bruno Haible  <bruno@clisp.org>
6929
6930         localename: Improvements for MacOS X and Cygwin.
6931         * lib/localename.h (gl_locale_name_environ): New declaration.
6932         * lib/localename.c (gl_locale_name_environ): New function, extracted from
6933         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
6934         (gl_locale_name_posix): Invoke it.
6935         (gl_locale_name_default): Add comments. Use Windows native API also on
6936         Cygwin.
6937
6938 2009-12-21  Bruno Haible  <bruno@clisp.org>
6939
6940         Update list of Win32 locale ids.
6941         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
6942         (LANG_SAMI): Renamed from LANG_SAAMI.
6943         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
6944         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
6945         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
6946         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
6947         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
6948         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
6949         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
6950         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
6951         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
6952         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
6953         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
6954         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
6955         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
6956         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
6957         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
6958         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
6959         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
6960         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
6961         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
6962         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
6963         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
6964         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
6965         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
6966         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
6967         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
6968         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
6969         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
6970         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
6971         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
6972         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
6973         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
6974         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
6975         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
6976         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
6977         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
6978         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
6979         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
6980         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
6981         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
6982         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
6983         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
6984         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
6985         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
6986         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
6987         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
6988         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
6989         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
6990         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
6991         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
6992         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
6993         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
6994         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
6995         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
6996         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
6997         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
6998         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
6999         Add more languages and countries for Sami, Sorbian. Add more countries
7000         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
7001         for Pashto. Change country for Syriac, Tswana.
7002
7003 2009-12-21  Eric Blake  <ebb9@byu.net>
7004
7005         test-utimens: avoid spurious failure
7006         * tests/test-chown.h (nap): Factor...
7007         * tests/nap.h: ...into new file.
7008         * tests/test-lchown.h (nap): Avoid duplication.
7009         * tests/test-utimens-common.h (nap): Use shared implementation,
7010         necessary on file systems with 1-second resolution.
7011         * modules/chown-tests (Files): Include new file.
7012         * modules/fdutimensat-tests (Files): Likewise.
7013         * modules/futimens-tests (Files): Likewise.
7014         * modules/lchown-tests (Files): Likewise.
7015         * modules/openat-tests (Files): Likewise.
7016         * modules/utimens-tests (Files): Likewise.
7017         * modules/utimensat-tests (Files): Likewise.
7018
7019 2009-12-19  Eric Blake  <ebb9@byu.net>
7020
7021         futimens, utimensat: work around Linux bug
7022         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
7023         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
7024         * lib/utimensat.c (rpl_utimensat): Work around it.
7025         * lib/futimens.c (rpl_futimens): Adjust comment.
7026
7027         utimens: work around Linux ctime bug
7028         * lib/utimens.c (detect_ctime_bug): New helper function.
7029         (update_timespec): Differentiate between workaround needed for
7030         this bug vs. what is needed for systems that lack utimensat.
7031         (fdutimens, lutimens): Work around bug.
7032
7033         utimens: check for ctime update
7034         * tests/test-utimens-common.h (check_ctime): Define.
7035         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
7036         * tests/test-futimens.h (test_futimens): Likewise.
7037         * tests/test-lutimens.h (test_lutimens): Likewise.
7038         * doc/posix-functions/futimens.texi (futimens): Document the bug.
7039         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
7040
7041 2009-12-19  Bruno Haible  <bruno@clisp.org>
7042
7043         dprintf-posix: Check against memory leak fixed on 2009-12-15.
7044         * tests/test-dprintf-posix2.sh: New file.
7045         * tests/test-dprintf-posix2.c: New file.
7046         * modules/dprintf-posix-tests (Files): Add them.
7047         (configure.ac): Check for getrlimit and setrlimit.
7048         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
7049
7050 2009-12-19  Bruno Haible  <bruno@clisp.org>
7051
7052         fprintf-posix: Check against memory leak fixed on 2009-12-15.
7053         * tests/test-fprintf-posix3.sh: New file.
7054         * tests/test-fprintf-posix3.c: New file.
7055         * modules/fprintf-posix-tests (Files): Add them.
7056         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
7057
7058 2009-12-19  Eric Blake  <ebb9@byu.net>
7059
7060         dirfd: fix prototype
7061         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
7062         * lib/dirfd.c (dirfd): Likewise.
7063
7064         canonicalize: reduce memory usage
7065         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
7066         allocation to size.
7067         Reported by Solar Designer <solar@openwall.com>.
7068
7069 2009-12-19  Bruno Haible  <bruno@clisp.org>
7070
7071         New module attribute 'Applicability'.
7072         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
7073         * gnulib-tool: New option --extract-applicability.
7074         (func_usage): Document it.
7075         (sed_extract_prog): Recognize it.
7076         (func_get_applicability): New function.
7077         (func_import): Generalize handling of 'link-warning' module.
7078         * modules/link-warning (Applicability): New section.
7079         * modules/arg-nonnull (Applicability): New section.
7080         Repoted by Simon Josefsson <simon@josefsson.org>.
7081
7082 2009-12-19  Bruno Haible  <bruno@clisp.org>
7083
7084         fflush: tweak
7085         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
7086         * lib/fseeko.c (rpl_fseeko): Likewise.
7087
7088 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
7089
7090         * lib/gl_list.h: Fix typo in comment.
7091
7092 2009-12-16  Eric Blake  <ebb9@byu.net>
7093
7094         fcntl: use to simplify other modules
7095         * modules/cloexec (Depends-on): Add fcntl.
7096         * modules/fchdir (Depends-on): Likewise.
7097         * modules/fd-safer-flag (Depends-on): Likewise.
7098         * modules/unistd-safer (Depends-on): Likewise.
7099         * modules/dup3 (configure.ac): Set module indicator.
7100         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
7101         missing.
7102         * lib/fchdir.c (_gl_register_dup): Fix comment.
7103         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
7104         * lib/dup-safer.c (dup_safer): Likewise.
7105         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
7106         * lib/dup3.c (dup3): Likewise.
7107         * tests/test-fchdir.c (main): Enhance test.
7108         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
7109
7110         fcntl: port portions of fcntl to mingw
7111         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
7112         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
7113         replacement for mingw.
7114         * modules/fcntl (Description): Update.
7115         (Depends-on): Add dup2.
7116         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
7117         * modules/fcntl-h (Makefile.am): Substitute it.
7118         * lib/fcntl.in.h (fcntl): Update declaration.
7119         (F_DUPFD, F_GETFD): New macros, when needed.
7120         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
7121         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
7122         * tests/test-fcntl.c (check_flags, main): Enhance test for items
7123         we now guarantee.
7124
7125         fcntl: work around cygwin bug in F_DUPFD
7126         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
7127         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
7128         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
7129         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
7130         * doc/posix-functions/fcntl.texi (fcntl): Document it.
7131
7132         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
7133         * modules/fcntl (Files): List new files.
7134         (configure.ac): Run a test.
7135         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
7136         * lib/fcntl.c (rpl_fcntl): Likewise.
7137         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
7138         (gl_FCNTL_H): Always replace fcntl.h.
7139         * modules/fcntl-h (Makefile.am): Substitute witnesses.
7140         * lib/fcntl.in.h (fcntl): Declare replacement.
7141         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
7142         needed, plus a witness.
7143         * doc/posix-functions/fcntl.texi (fcntl): Document this.
7144         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
7145         * tests/test-fcntl.c: New file.
7146         * modules/fcntl-tests: Likewise.
7147
7148         binary-io: avoid potential compilation warning
7149         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
7150         directives.
7151
7152         fflush: avoid compilation error on NetBSD
7153         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
7154         between off_t and fpos_t, since the latter is sometimes a struct.
7155         * lib/fseeko.c (rpl_fseeko): Likewise.
7156         Reported by Alexander Nasonov <alnsn@yandex.ru>.
7157
7158 2009-12-15  Eric Blake  <ebb9@byu.net>
7159
7160         fcntl-h, stdio, sys_ioctl: fix declarations
7161         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
7162         function must not take arguments.
7163         * lib/sys_ioctl.in.h (ioctl): Likewise.
7164         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
7165         (open): Add a link warning.
7166
7167 2009-12-15  Jim Meyering  <meyering@redhat.com>
7168
7169         areadlink, areadlink-with-size: relax license to LGPLv2+
7170         * modules/areadlink (License): Relax to LGPLv2+.
7171         * modules/areadlink-with-size (License): Likewise.
7172
7173 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
7174             Bruno Haible  <bruno@clisp.org>
7175
7176         *printf: Fix memory leak.
7177         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
7178         * lib/vfprintf.c (vfprintf): Likewise.
7179         * lib/dprintf.c (dprintf): Likewise.
7180         * lib/vdprintf.c (vdprintf): Likewise.
7181
7182 2009-12-14  Eric Blake  <ebb9@byu.net>
7183
7184         accept4: adjust module dependencies
7185         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
7186
7187         utimens: one more try at avoiding compiler warning
7188         * lib/utimens.c (lutimens): Lower scope of result.
7189
7190 2009-12-13  Bruno Haible  <bruno@clisp.org>
7191
7192         Move the malloc checking from module 'list' to new module 'xlist'.
7193         * modules/xlist: New file.
7194         * lib/gl_xlist.h: New file.
7195         * lib/gl_xlist.c: New file.
7196         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
7197         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
7198         gl_list_add_last, gl_list_add_before, gl_list_add_after,
7199         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
7200         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
7201         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
7202         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
7203         gl_sortedlist_nx_add): New declarations.
7204         (struct gl_list_implementation): Rename and change methods accordingly.
7205         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
7206         (gl_list_nx_create): Renamed from gl_list_create.
7207         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
7208         (gl_list_nx_set_at): Renamed from gl_list_set_at.
7209         (gl_list_nx_add_first): Renamed from gl_list_add_first.
7210         (gl_list_nx_add_last): Renamed from gl_list_add_last.
7211         (gl_list_nx_add_before): Renamed from gl_list_add_before.
7212         (gl_list_nx_add_after): Renamed from gl_list_add_after.
7213         (gl_list_nx_add_at): Renamed from gl_list_add_at.
7214         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
7215         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
7216         gl_list_create_empty.
7217         (gl_list_nx_create): Renamed from gl_list_create.
7218         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
7219         (gl_list_nx_set_at): Renamed from gl_list_set_at.
7220         (gl_list_nx_add_first): Renamed from gl_list_add_first.
7221         (gl_list_nx_add_last): Renamed from gl_list_add_last.
7222         (gl_list_nx_add_before): Renamed from gl_list_add_before.
7223         (gl_list_nx_add_after): Renamed from gl_list_add_after.
7224         (gl_list_nx_add_at): Renamed from gl_list_add_at.
7225         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
7226         * lib/gl_array_list.c: Don't include xalloc.h.
7227         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
7228         NULL upon out-of-memory.
7229         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
7230         out-of-memory.
7231         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
7232         Change return type to 'int'.
7233         (gl_array_nx_set_at): Renamed from gl_array_set_at.
7234         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
7235         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
7236         upon out-of-memory.
7237         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
7238         upon out-of-memory.
7239         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
7240         upon out-of-memory.
7241         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
7242         upon out-of-memory.
7243         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
7244         out-of-memory.
7245         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
7246         Update.
7247         (gl_array_list_implementation): Update.
7248         * lib/gl_carray_list.c: Don't include xalloc.h.
7249         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
7250         Return NULL upon out-of-memory.
7251         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
7252         out-of-memory.
7253         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
7254         Change return type to 'int'.
7255         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
7256         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
7257         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
7258         upon out-of-memory.
7259         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
7260         upon out-of-memory.
7261         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
7262         out-of-memory.
7263         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
7264         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
7265         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
7266         Update.
7267         (gl_carray_list_implementation): Update.
7268         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
7269         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
7270         gl_linked_create_empty. Return NULL upon out-of-memory.
7271         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
7272         out-of-memory.
7273         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
7274         Change return type to 'int'. Return -1 upon out-of-memory.
7275         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
7276         out-of-memory.
7277         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
7278         upon out-of-memory.
7279         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
7280         upon out-of-memory.
7281         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
7282         NULL upon out-of-memory.
7283         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
7284         upon out-of-memory.
7285         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
7286         out-of-memory.
7287         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
7288         Update.
7289         * lib/gl_linked_list.c: Don't include xalloc.h.
7290         (gl_linked_list_implementation): Update.
7291         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
7292         (add_to_bucket): Change return type to 'int'.
7293         (gl_linkedhash_list_implementation): Update.
7294         * lib/gl_anytree_list1.h (free_subtree): New function.
7295         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
7296         gl_tree_create_empty. Return NULL upon out-of-memory.
7297         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
7298         Change return type to 'int'. Return -1 upon out-of-memory.
7299         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
7300         out-of-memory.
7301         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
7302         (gl_tree_remove_node): New function, moved here from
7303         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
7304         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
7305         Update.
7306         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
7307         malloc, not xmalloc. Return NULL upon out-of-memory.
7308         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
7309         out-of-memory.
7310         (gl_tree_remove_node_from_tree): New function, extracted from
7311         gl_tree_remove_node.
7312         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
7313         upon out-of-memory.
7314         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
7315         out-of-memory.
7316         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
7317         upon out-of-memory.
7318         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
7319         upon out-of-memory.
7320         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
7321         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
7322         not xmalloc. Return NULL upon out-of-memory.
7323         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
7324         out-of-memory.
7325         (gl_tree_remove_node_from_tree): New function, extracted from
7326         gl_tree_remove_node.
7327         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
7328         upon out-of-memory.
7329         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
7330         out-of-memory.
7331         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
7332         upon out-of-memory.
7333         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
7334         upon out-of-memory.
7335         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
7336         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
7337         gl_anytree_list1.h before gl_anyavltree_list2.h.
7338         (gl_avltree_list_implementation): Update.
7339         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
7340         gl_anytree_list1.h before gl_anyavltree_list2.h.
7341         (gl_rbtree_list_implementation): Update.
7342         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
7343         Change return type to 'int'. Return -1 upon out-of-memory. Use
7344         __builtin_expect.
7345         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
7346         (gl_avltreehash_list_implementation): Update.
7347         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
7348         (gl_rbtreehash_list_implementation): Update.
7349         * modules/array-list (Depends-on): Remove xalloc.
7350         * modules/carray-list (Depends-on): Likewise.
7351         * modules/linked-list (Depends-on): Likewise.
7352         * modules/linkedhash-list (Depends-on): Likewise.
7353         * modules/avltree-list (Depends-on): Likewise.
7354         * modules/rbtree-list (Depends-on): Likewise.
7355         * modules/avltreehash-list (Depends-on): Likewise.
7356         * modules/rbtreehash-list (Depends-on): Likewise.
7357
7358         * modules/xsublist: New file.
7359         * lib/gl_xsublist.h: New file.
7360         * lib/gl_xsublist.c: New file.
7361         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
7362         (gl_sublist_nx_create): New declaration.
7363         * lib/gl_sublist.c: Don't include xalloc.h.
7364         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
7365         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
7366         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
7367         Change return type to 'int'. Return -1 upon out-of-memory.
7368         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
7369         upon out-of-memory.
7370         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
7371         NULL upon out-of-memory.
7372         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
7373         upon out-of-memory.
7374         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
7375         NULL upon out-of-memory.
7376         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
7377         NULL upon out-of-memory.
7378         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
7379         upon out-of-memory.
7380         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
7381         (gl_sublist_list_implementation): Update.
7382         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
7383         upon out-of-memory.
7384         * modules/sublist (Depends-on): Remove xalloc.
7385
7386         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
7387         * tests/test-carray_list.c: Likewise.
7388         * tests/test-linked_list.c: Likewise.
7389         * tests/test-linkedhash_list.c: Likewise.
7390         * tests/test-avltree_list.c: Likewise.
7391         * tests/test-rbtree_list.c: Likewise.
7392         * tests/test-avltreehash_list.c: Likewise.
7393         * tests/test-rbtreehash_list.c: Likewise.
7394         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
7395         * modules/carray-list-tests (Makefile.am): Likewise.
7396         * modules/linked-list-tests (Makefile.am): Likewise.
7397         * modules/linkedhash-list-tests (Makefile.am): Likewise.
7398         * modules/avltree-list-tests (Makefile.am): Likewise.
7399         * modules/rbtree-list-tests (Makefile.am): Likewise.
7400         * modules/avltreehash-list-tests (Makefile.am): Likewise.
7401         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
7402
7403         * NEWS: Mention the changes.
7404
7405         * lib/clean-temp.c: Include gl_xlist.h.
7406         * modules/clean-temp (Depends-on): Add xlist.
7407
7408         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
7409         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
7410
7411         * tests/test-array_oset.c: Include gl_xlist.h.
7412         * modules/array-oset-tests (Depends-on): Add xlist.
7413
7414         Reported by José E. Marchesi <jemarch@gnu.org>.
7415
7416 2009-12-13  Bruno Haible  <bruno@clisp.org>
7417
7418         Move the malloc checking from module 'oset' to new module 'xoset'.
7419         * modules/xoset: New file.
7420         * lib/gl_xoset.h: New file.
7421         * lib/gl_xoset.c: New file.
7422         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
7423         declarations.
7424         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
7425         (struct gl_oset_implementation): Rename and change methods accordingly.
7426         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
7427         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
7428         'int'. Mark as __warn_unused_result__.
7429         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
7430         gl_oset_create_empty.
7431         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
7432         'int'.
7433         * lib/gl_array_oset.c: Don't include xalloc.h.
7434         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
7435         malloc, not xmalloc.
7436         (grow): Change return type to 'int'. Don't call xalloc_die.
7437         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
7438         to 'int'.
7439         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
7440         'int'.
7441         (gl_array_oset_implementation): Update.
7442         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
7443         gl_tree_create_empty.
7444         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
7445         'int'.
7446         * lib/gl_avltree_oset.c: Don't include xalloc.h.
7447         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
7448         xmalloc.
7449         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
7450         not xmalloc.
7451         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
7452         xmalloc.
7453         (gl_avltree_oset_implementation): Update.
7454         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
7455         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
7456         xmalloc.
7457         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
7458         not xmalloc.
7459         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
7460         xmalloc.
7461         (gl_rbtree_oset_implementation): Update.
7462         * modules/array-oset (Depends-on): Remove xalloc.
7463         * modules/avltree-oset (Depends-on): Likewise.
7464         * modules/rbtree-oset (Depends-on): Likewise.
7465         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
7466         * tests/test-avltree_oset.c: Likewise.
7467         * tests/test-rbtree_oset.c: Likewise.
7468         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
7469         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
7470         * modules/rbtree-oset-tests (Makefile.am): Likewise.
7471         * NEWS: Mention the change.
7472
7473 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
7474
7475         maint.mk: allow a project to override release-prep commands
7476         * top/maint.mk (alpha, beta, stable): Move release-preparatory
7477         commands into a new rule.
7478         (release-prep): New rule.
7479         (release-prep-hook): New overridable variable.
7480
7481 2009-12-13  Bruno Haible  <bruno@clisp.org>
7482
7483         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
7484
7485 2009-12-13  Jim Meyering  <meyering@redhat.com>
7486
7487         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
7488         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
7489
7490 2009-12-12  Bruno Haible  <bruno@clisp.org>
7491
7492         duplocale: Tweak.
7493         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
7494
7495 2009-12-12  Karl Berry  <karl@gnu.org>
7496
7497         * config/srclist.txt (strtoll.c): tab changes, no more sync.
7498
7499 2009-12-12  Bruno Haible  <bruno@clisp.org>
7500
7501         * m4/po.m4: Undo incorrect untabification.
7502
7503 2009-12-12  Bruno Haible  <bruno@clisp.org>
7504
7505         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
7506         * modules/c-strtod (Depends-on): Add locale.
7507         * modules/c-strtold (Depends-on): Likewise.
7508
7509 2009-12-12  Bruno Haible  <bruno@clisp.org>
7510
7511         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
7512
7513 2009-12-11  Eric Blake  <ebb9@byu.net>
7514
7515         setenv: relax requirement in light of POSIX ruling
7516         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
7517         not NULL.
7518         * tests/test-setenv.c (main): Relax test.
7519         * tests/test-unsetenv.c (main): Likewise.
7520         * doc/posix-functions/setenv.texi (setenv): Document this.
7521         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
7522
7523 2009-12-11  Bruno Haible  <bruno@clisp.org>
7524
7525         New module 'fd-safer-flag'.
7526         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
7527         * lib/dup-safer.c (dup_safer_flag): Remove function.
7528         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
7529         * lib/fd-safer.c (fd_safer_flag): Remove function.
7530         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
7531         * modules/cloexec (configure.ac): Drop indicator macro.
7532         * modules/fd-safer-flag: New file.
7533         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
7534         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
7535         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
7536
7537 2009-12-11  Bruno Haible  <bruno@clisp.org>
7538
7539         Tests for module 'nl_langinfo'.
7540         * modules/nl_langinfo-tests: New file.
7541         * tests/test-nl_langinfo.sh: New file.
7542         * tests/test-nl_langinfo.c: New file.
7543
7544         New module 'nl_langinfo'.
7545         * lib/nl_langinfo.c: New file.
7546         * m4/nl_langinfo.m4: New file.
7547         * modules/nl_langinfo: New file.
7548         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
7549
7550 2009-12-11  Bruno Haible  <bruno@clisp.org>
7551
7552         Tests for module 'langinfo'.
7553         * modules/langinfo-tests: New file.
7554         * tests/test-langinfo.c: New file.
7555
7556         New module 'langinfo'.
7557         * lib/langinfo.in.h: New file.
7558         * m4/langinfo_h.m4: New file.
7559         * modules/langinfo: New file.
7560         * doc/posix-headers/langinfo.texi: Mention the new module.
7561
7562 2009-12-11  Bruno Haible  <bruno@clisp.org>
7563
7564         * lib/config.charset: Untabify.
7565
7566 2009-12-11  Bruno Haible  <bruno@clisp.org>
7567
7568         * modules/unistd-safer (configure.ac): Drop indicator macro.
7569
7570 2009-12-11  Bruno Haible  <bruno@clisp.org>
7571
7572         Move pipe2-safer code to its own file.
7573         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
7574         * lib/pipe-safer.c (pipe2_safer): Remove function.
7575         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
7576         (Makefile.am): Add it to lib_SOURCES.
7577
7578 2009-12-10  Bruno Haible  <bruno@clisp.org>
7579
7580         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
7581
7582 2009-12-10  Bruno Haible  <bruno@clisp.org>
7583
7584         Declare which arguments expect non-NULL values, for GCC and clang.
7585         * build-aux/arg-nonnull.h: New file.
7586         * modules/arg-nonnull: New file.
7587         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
7588         (inet_ntop, inet_pton): Use it.
7589         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
7590         (closedir, dirfd, opendir, scandir, alphasort): Use it.
7591         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
7592         (open, openat): Use it.
7593         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
7594         (fnmatch): Use it.
7595         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
7596         (getopt, getopt_long, getopt_long_only): Use it.
7597         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
7598         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
7599         Use it.
7600         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
7601         (iconv_open): Use it.
7602         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
7603         (strtoimax, strtoumax): Use it.
7604         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
7605         (duplocale): Use it.
7606         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
7607         (frexp, frexpl): Use it.
7608         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
7609         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
7610         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
7611         (tsearch, tfind, tdelete, twalk): Use it.
7612         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
7613         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
7614         sigpending): Use it.
7615         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
7616         (posix_spawn, posix_spawnp, posix_spawnattr_init,
7617         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
7618         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
7619         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
7620         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
7621         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
7622         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
7623         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
7624         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
7625         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
7626         Use it.
7627         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
7628         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
7629         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
7630         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
7631         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
7632         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
7633         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
7634         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
7635         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
7636         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
7637         strtoull, unsetenv): Use it.
7638         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
7639         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
7640         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
7641         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
7642         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
7643         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
7644         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
7645         (strcasecmp, strncasecmp): Use it.
7646         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
7647         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
7648         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
7649         rpl_setsockopt): Use it.
7650         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
7651         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
7652         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
7653         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
7654         (gettimeofday): Use it.
7655         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
7656         (times): Use it.
7657         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
7658         (uname): Use it.
7659         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
7660         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
7661         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
7662         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
7663         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
7664         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
7665         unlinkat, write): Use it.
7666         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
7667         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
7668         * lib/argv-iter.h: Include arg-nonnull.h.
7669         (_ATTRIBUTE_NONNULL_): Remove macro.
7670         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
7671         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
7672         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
7673         optimization.
7674         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
7675         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
7676         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
7677         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
7678         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
7679         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
7680         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
7681         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
7682         * modules/arpa_inet (Depends-on): Add arg-nonnull.
7683         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
7684         * modules/dirent (Depends-on): Add arg-nonnull.
7685         (Makefile.am): Insert arg-nonnull.h into dirent.h.
7686         * modules/fcntl-h (Depends-on): Add arg-nonnull.
7687         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
7688         * modules/fnmatch (Depends-on): Add arg-nonnull.
7689         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
7690         * modules/getopt-posix (Depends-on): Add arg-nonnull.
7691         (Makefile.am): Insert arg-nonnull.h into getopt.h.
7692         * modules/glob (Depends-on): Add arg-nonnull.
7693         (Makefile.am): Insert arg-nonnull.h into glob.h.
7694         * modules/iconv_open (Depends-on): Add arg-nonnull.
7695         (Makefile.am): Insert arg-nonnull.h into iconv.h.
7696         * modules/inttypes (Depends-on): Add arg-nonnull.
7697         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
7698         * modules/locale (Depends-on): Add arg-nonnull.
7699         (Makefile.am): Insert arg-nonnull.h into locale.h.
7700         * modules/math (Depends-on): Add arg-nonnull.
7701         (Makefile.am): Insert arg-nonnull.h into math.h.
7702         * modules/netdb (Depends-on): Add arg-nonnull.
7703         (Makefile.am): Insert arg-nonnull.h into netdb.h.
7704         * modules/search (Depends-on): Add arg-nonnull.
7705         (Makefile.am): Insert arg-nonnull.h into search.h.
7706         * modules/signal (Depends-on): Add arg-nonnull.
7707         (Makefile.am): Insert arg-nonnull.h into signal.h.
7708         * modules/spawn (Depends-on): Add arg-nonnull.
7709         (Makefile.am): Insert arg-nonnull.h into spawn.h.
7710         * modules/stdio (Depends-on): Add arg-nonnull.
7711         (Makefile.am): Insert arg-nonnull.h into stdio.h.
7712         * modules/stdlib (Depends-on): Add arg-nonnull.
7713         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
7714         * modules/string (Depends-on): Add arg-nonnull.
7715         (Makefile.am): Insert arg-nonnull.h into string.h.
7716         * modules/strings (Depends-on): Add arg-nonnull.
7717         (Makefile.am): Insert arg-nonnull.h into strings.h.
7718         * modules/sys_socket (Depends-on): Add arg-nonnull.
7719         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
7720         * modules/sys_stat (Depends-on): Add arg-nonnull.
7721         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
7722         * modules/sys_time (Depends-on): Add arg-nonnull.
7723         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
7724         * modules/sys_times (Depends-on): Add arg-nonnull.
7725         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
7726         * modules/sys_utsname (Depends-on): Add arg-nonnull.
7727         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
7728         * modules/time (Depends-on): Add arg-nonnull.
7729         (Makefile.am): Insert arg-nonnull.h into time.h.
7730         * modules/unistd (Depends-on): Add arg-nonnull.
7731         (Makefile.am): Insert arg-nonnull.h into unistd.h.
7732         * modules/wchar (Depends-on): Add arg-nonnull.
7733         (Makefile.am): Insert arg-nonnull.h into wchar.h.
7734         * modules/argv-iter (Depends-on): Add arg-nonnull.
7735         * tests/test-canonicalize.c (null_ptr): New function.
7736         (main): Use it.
7737         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
7738         (main): Use it.
7739         * tests/test-memmem.c (null_ptr): New function.
7740         (main): Use it.
7741         Reported by Jim Meyering.
7742
7743 2009-12-10  Bruno Haible  <bruno@clisp.org>
7744
7745         Use spaces for indentation, not tabs.
7746         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
7747         * m4/*.m4: Untabify.
7748         * build-aux/*.h: Untabify.
7749         * tests/**/*.[hc]: Untabify.
7750         * README: New section "Indent with spaces, not TABs", based on
7751         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
7752         * NEWS: Mention the change.
7753
7754 2009-12-10  Bruno Haible  <bruno@clisp.org>
7755
7756         pty test: Fix link error.
7757         * modules/pty-tests (Makefile.am): Add the default LDADD value to
7758         test_pty_LDADD.
7759
7760 2009-12-07  Simon Josefsson  <simon@josefsson.org>
7761
7762         * modules/pty: New file.
7763         * modules/pty-tests: New file.
7764         * m4/pty.m4: New file.
7765         * tests/test-pty.c: New file.
7766         * doc/glibc-headers/pty.texi: Modified.
7767         * doc/glibc-functions/forkpty.texi: Modified.
7768         * doc/glibc-functions/openpty.texi: Modified.
7769
7770 2009-12-10  Bruno Haible  <bruno@clisp.org>
7771
7772         Avoid syntax error in C++ mode.
7773         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
7774
7775 2009-12-10  Bruno Haible  <bruno@clisp.org>
7776
7777         Use sed with option -e.
7778         * gnulib-tool (func_version, func_emit_copyright_notice,
7779         func_emit_initmacro_end, func_import, func_create_testdir): Pass
7780         option -e to sed.
7781         * modules/link-warning (Makefile.am): Likewise.
7782
7783 2009-12-10  Jim Meyering  <meyering@redhat.com>
7784
7785         mgetgroups: do not write bytes beyond end of malloc'd buffer
7786         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
7787         username, we call getgroups with a one-element-shorter buffer,
7788         but still told it the length was original, max_n_groups.
7789
7790 2009-12-09  Eric Blake  <ebb9@byu.net>
7791
7792         cloexec: relax license
7793         * modules/cloexec (Maintainer): Add myself.
7794         (License): Use LGPL, not GPL.
7795
7796         link-warning: optimize generation
7797         * modules/link-warning (Makefile.am): Reduce process usage.
7798
7799 2009-12-09  Bruno Haible  <bruno@clisp.org>
7800
7801         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
7802         workaround was added on 2009-11-17.
7803
7804 2009-12-09  Jim Meyering  <meyering@redhat.com>
7805             Bruno Haible  <bruno@clisp.org>
7806
7807         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
7808         * modules/link-warning (Makefile.am): Make the comment-removing sed
7809         command more robust in the face of bootstrap-prepended comment lines.
7810
7811 2009-12-09  Bruno Haible  <bruno@clisp.org>
7812
7813         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
7814         most one group.
7815
7816 2009-12-09  Simon Josefsson <simon@josefsson.org>
7817             Bruno Haible  <bruno@clisp.org>
7818
7819         * build-aux/link-warning.h: Add copyright notice.
7820         * modules/link-warning (Makefile.am): Generate link-warning.h from
7821         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
7822         * NEWS: Mention change in link-warning module.
7823         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
7824         * modules/dirent (Makefile.am): Add dependency to dirent.h.
7825         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
7826         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
7827         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
7828         * modules/math (Makefile.am): Add dependency to math.h.
7829         * modules/search (Makefile.am): Add dependency to search.h.
7830         * modules/signal (Makefile.am): Add dependency to signal.h.
7831         * modules/spawn (Makefile.am): Add dependency to spawn.h.
7832         * modules/stdio (Makefile.am): Add dependency to stdio.h.
7833         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
7834         * modules/string (Makefile.am): Add dependency to string.h.
7835         * modules/strings (Makefile.am): Add dependency to strings.h.
7836         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
7837         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
7838         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
7839         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
7840         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
7841         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
7842         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
7843         * modules/unistd (Makefile.am): Add dependency to unistd.h.
7844         * modules/wchar (Makefile.am): Add dependency to wchar.h.
7845
7846 2009-12-09  Bruno Haible  <bruno@clisp.org>
7847
7848         fchdir: Optimize away rpl_fstat when possible.
7849         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
7850         REPLACE_OPEN_DIRECTORY.
7851         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
7852
7853 2009-12-09  Bruno Haible  <bruno@clisp.org>
7854
7855         * lib/fchdir.c: Update comment.
7856
7857 2009-12-09  Bruno Haible  <bruno@clisp.org>
7858
7859         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
7860
7861 2009-12-08  Eric Blake  <ebb9@byu.net>
7862
7863         fchdir: avoid memory leak on re-registration.
7864         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
7865
7866 2009-12-08  Jim Meyering  <meyering@redhat.com>
7867
7868         init.sh: avoid Solaris 10 /bin/sh portability problem
7869         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
7870         sourced script:
7871           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
7872           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
7873           bar
7874         tests/init.sh relied on that, accepting a --set-path=DIR argument,
7875         and two tests used that idiom.
7876         * tests/init.sh: Update suggested usage comments.
7877         (path_prepend_): New function, to be used in place
7878         of the --src-path=DIR option.
7879         (setup_): Move PATH-prepending code into path_prepend_.
7880         * tests/test-pread.sh: Adapt to new usage.
7881         * tests/test-xalloc-die.sh: Likewise.
7882
7883 2009-12-08  Simon Josefsson  <simon@josefsson.org>
7884
7885         * doc/gnulib.texi (Glibc pty.h): Add.
7886         * doc/glibc-functions/forkpty.texi: Add.
7887         * doc/glibc-functions/openpty.texi: Add.
7888         Suggested by Bruno Haible.
7889
7890 2009-12-08  Eric Blake  <ebb9@byu.net>
7891
7892         fchdir: fix logic bugs
7893         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
7894         * tests/test-fchdir.c (main): Enhance test.
7895         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
7896         is in use.
7897
7898         dup2: fix logic bugs
7899         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
7900         REPLACE_DUP2 to decide when rpl_dup2 is needed.
7901         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
7902         exists.
7903         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
7904
7905 2009-12-07  Eric Blake  <ebb9@byu.net>
7906
7907         unlink: fix m4 detection
7908         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
7909
7910         unistd-safer: add unit test
7911         * modules/unistd-safer-tests: New file.
7912         * tests/test-dup-safer.c: Likewise.
7913         * tests/test-cloexec.c (setmode): Avoid compiler warning.
7914         * tests/test-dup2.c (setmode): Likewise.
7915         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
7916
7917         cloexec: preserve text vs. binary across dup_cloexec
7918         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
7919         mode.
7920         * modules/dup2-tests (Depends-on): Add binary-io.
7921         * modules/cloexec-tests (Depends-on): Likewise.
7922         * tests/test-dup2.c (setmode, is_mode): New helpers.
7923         (main): Add tests that translation mode is preserved.
7924         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
7925         Reported by Bruno Haible.
7926
7927         mgetgroups: reduce duplicate listings
7928         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
7929         resulting array.
7930         * tests/test-chown.h (test_chown): Simplify client.
7931         * tests/test-lchown.h (test_lchown): Likewise.
7932
7933 2009-12-06  Bruno Haible  <bruno@clisp.org>
7934
7935         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
7936         value.
7937
7938 2009-12-06  Bruno Haible  <bruno@clisp.org>
7939
7940         * lib/progname.c: Include stdio.h, stdlib.h.
7941         (set_program_name): Reject a NULL argument.
7942
7943 2009-12-05  Eric Blake  <ebb9@byu.net>
7944
7945         pipe2-safer: new module
7946         * modules/pipe2-safer: New file.
7947         * lib/unistd-safer.h (pipe2_safer): New prototype.
7948         * lib/unistd--.h (pipe2): New wrapper.
7949         * lib/pipe-safer.c (pipe2_safer): New function.
7950         * modules/pipe (Depends-on): Add pipe2-safer.
7951         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
7952
7953         stdlib-safer: preserve cloexec flag for mkostemp[s]
7954         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
7955         fd_safer_flag.
7956
7957         unistd-safer: allow preservation of cloexec status via flag
7958         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
7959         prototypes.
7960         * lib/dup-safer.c (dup_safer_flag): New function.
7961         * lib/fd-safer.c (fd_safer_flag): Likewise.
7962         * modules/cloexec (configure.ac): Set witness.
7963
7964         test-dup2: enhance test
7965         * modules/dup2-tests (Depends-on): Add cloexec.
7966         * tests/test-dup2.c (main): Enhance test.
7967
7968         cloexec: add dup_cloexec
7969         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
7970         header and comments.
7971         * lib/cloexec.c (set_cloexec_flag): Add comments.
7972         (dup_cloexec): New function, with mingw implementation borrowed
7973         from...
7974         * lib/w32spawn.h (dup_noinherit): ...here.
7975         * modules/execute (Depends-on): Add cloexec.
7976         * modules/pipe (Depends-on): Likewise.
7977         * modules/cloexec (Depends-on): Add dup2.
7978         * modules/cloexec-tests (Files): New file.
7979         * tests/test-cloexec.c: Likewise.
7980
7981         test-xalloc-die: fix test for mingw
7982         * modules/xalloc-die-tests (Files): Add tests/init.sh.
7983         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
7984         directory and .exe suffix off argv[0] output.
7985
7986         test-fseeko: fix test for mingw
7987         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
7988         than undefining fseek, so test will pass on mingw.
7989
7990 2009-12-05  Bruno Haible  <bruno@clisp.org>
7991
7992         * lib/progname.h (set_program_name): Clarify specification.
7993         * lib/progname.c (set_program_name): Likewise.
7994         Reported by Jim Meyering.
7995
7996 2009-12-05  Jim Meyering  <meyering@redhat.com>
7997
7998         maint.mk: backslash-escape parens in default regexp
7999         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
8000         backslash-escape the literal parentheses.
8001
8002         maint.mk: news-date-check: use grep -E
8003         * top/maint.mk (today): Define a Make variable, not a...
8004         (news-date-check): ...shell variable.
8005         (news-date-regexp): Use the Make variable.
8006         Use grep's -E option.  Change the failing diagnostic to mention
8007         the variable, $(news-date-regexp).
8008
8009 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
8010
8011         maintainer-makefile: allow customization of NEWS entry format
8012         * top/maint.mk (news-date-regexp): New overridable variable.
8013         (news-date-check): Use it.
8014
8015 2009-12-04  Eric Blake  <ebb9@byu.net>
8016
8017         mgetgroups: add xgetgroups, and avoid ENOSYS failures
8018         * lib/mgetgroups.h (xgetgroups): New prototype.
8019         * lib/mgetgroups.c (xgetgroups): New wrapper.
8020         (mgetgroups): Handle ENOSYS.
8021         * modules/mgetgroups (Depends-on): Add realloc.
8022         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
8023
8024         mgetgroups: avoid argument promotion issues with -1
8025         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
8026         for invalid gid_t.
8027         * tests/test-chown.h (getegid, test_chown): Likewise.
8028         * tests/test-lchown.h (getegid, test_lchown): Likewise.
8029
8030 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
8031
8032         exclude: Fix header file problems.
8033         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
8034
8035 2009-12-01  Jim Meyering  <meyering@redhat.com>
8036
8037         fts: fts_open: do not let an empty string cause immediate failure
8038         This is required in support of GNU rm, for which the command
8039         "rm A '' B" must process and remove both A and B, in spite of
8040         the empty string argument.
8041         * lib/fts.c (fts_open): Do not let the presence of an empty string
8042         cause fts_open to fail immediately.  Most fts-using tools must be
8043         able to process all arguments, in order, and can be expected to
8044         diagnose such arguments themselves.
8045
8046 2009-11-30  Eric Blake  <ebb9@byu.net>
8047
8048         utimens: fix compilation error
8049         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
8050         Declare variable at right scope.
8051
8052 2009-11-29  Jim Meyering  <meyering@redhat.com>
8053
8054         bootstrap: handle perl-5.11's changed --version output
8055         * build-aux/bootstrap (get_version): Handle perl separately,
8056         since perl-5.11's --version output is different.
8057
8058 2009-11-28  Jim Meyering  <meyering@redhat.com>
8059
8060         userspec: depend on the inttostr module, too
8061         * modules/userspec (Depends-on): Add inttostr.
8062
8063         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
8064         * lib/userspec.c (parse_with_separator): Do not accept a user ID
8065         number of MAXUID when it evaluates to (uid_t) -1.
8066         Likewise for group ID.  Reported by Matt McCutchen in
8067         <http://savannah.gnu.org/bugs/?28113>
8068
8069         userspec: reformat to use spaces, not TABs
8070         * lib/userspec.c: Expand TABs to spaces.
8071         Add Emacs' "indent-tabs-mode: nil" hint.
8072
8073 2009-11-27  Eric Blake  <ebb9@byu.net>
8074
8075         getopt-gnu: flush out another BSD bug
8076         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
8077         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
8078         flush out BSD bug.
8079         * tests/test-getopt.h (test_getopt): End lists with NULL.
8080         * tests/test-getopt_long.h (test_getopt_long): Likewise.
8081         (test_getopt_long_posix): Enhance test.
8082         * modules/getopt-posix-tests (Depends-on): Add stdbool.
8083         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
8084         getopt-gnu.
8085         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
8086         Likewise.
8087
8088 2009-11-27  Simon Josefsson  <simon@josefsson.org>
8089
8090         * modules/idpriv-droptemp-tests (Notice): Fix text.
8091
8092 2009-11-27  Jim Meyering  <meyering@redhat.com>
8093
8094         test-xalloc-die: avoid spurious failure due to libtool argv difference
8095         In a libtool-enabled project, this test would fail due to a difference
8096         in the emitted program name, e.g.,
8097         -test-xalloc-die: memory exhausted
8098         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
8099         Use program to avoid that.
8100         * modules/xalloc-die-tests (Depends-on): Add progname.
8101         * tests/test-xalloc-die.c: Include progname.h".
8102         (program_name): Remove decl.
8103         (main): Call set_program_name.
8104         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
8105
8106 2009-11-26  Richard Jones  <rjones@redhat.com>
8107
8108         w32sock: leave win32 error in place.
8109         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
8110
8111 2009-11-26  Eric Blake  <ebb9@byu.net>
8112
8113         init.sh: suggest to use skip_ and fail_ functions in comments
8114         * tests/init.sh: Add a sentence.
8115
8116 2009-11-25  Bruno Haible  <bruno@clisp.org>
8117
8118         init.sh: add documentation in comments
8119         * tests/init.sh: Add some developer and user documentation.
8120
8121 2009-11-26  Jim Meyering  <meyering@redhat.com>
8122
8123         init.sh: accommodate even those who specify bogus srcdir manually
8124         * tests/init.sh: Normally, srcdir is guaranteed by automake and
8125         configure-time tests to be sanitized, so that there is no need to
8126         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
8127         (with no double quotes) suffices.  However, since tests may be
8128         invoked manually, and since you may explicitly set srcdir to the
8129         name of a directory containing spaces, do quote its uses here.
8130         * tests/test-pread.sh: Likewise.
8131         Suggested by Bruno Haible.
8132
8133         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
8134         * tests/test-pread.sh: Write no data into the pipe, because
8135         test-pread actually reads none.  This avoids a diagnostic,
8136         "bash: echo: write error: Broken pipe", that arises in the unusual
8137         event something is ignoring SIGPIPE, and might be interpreted
8138         as some sort of failure.  Reported by Bruno Haible.
8139
8140 2009-11-25  Jim Meyering  <meyering@redhat.com>
8141
8142         test-pread: cover failure with ESPIPE and EINVAL
8143         * tests/test-pread.c (main): Test for failure, too.
8144         * tests/test-pread.sh: Invoke with stdin on a pipe.
8145         Suggested by Eric Blake.
8146
8147         pread: improvement and fix
8148         * modules/pread (Depends-on): Depend on lseek, for portability to
8149         e.g., mingw.  Suggested by Eric Blake.
8150         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
8151
8152         unistd.in.h: correct declaration of pread
8153         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
8154         Reported by Richard W.M. Jones.
8155
8156         test-pread.sh: distribute the test script
8157         * modules/pread-tests (Files): Include test-pread.sh.
8158
8159         test-pread.sh: clean up
8160         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
8161         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
8162         That is unnecessary, since it's always ".".
8163         Suggestion from Eric Blake.
8164
8165         test-pread.sh: make executable
8166         * tests/test-pread.sh: Set executable bit.
8167         Reported by Eric Blake.
8168
8169         correct typo in test-pread.sh
8170         * tests/test-pread.sh: Add #! line.
8171
8172         test pread
8173         * tests/test-pread.c: New file.
8174         * tests/test-pread.sh: Likewise.
8175         * modules/pread-tests: Likewise.
8176
8177         pread: new module
8178         * modules/pread: New file.
8179         * lib/unistd.in.h (pread): Define/declare.
8180         * lib/pread.c (pread): New file.
8181         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
8182         * modules/unistd (Makefile.am): Substitute witnesses.
8183         * doc/posix-functions/pread.texi (pread): Update.
8184         * MODULES.html.sh: Add pread.
8185
8186 2009-11-25  Jim Meyering  <meyering@redhat.com>
8187
8188         tests/init.sh: new file to be used via most *.sh tests
8189         * tests/init.sh: New file.
8190
8191 2009-11-25  Eric Blake  <ebb9@byu.net>
8192
8193         utimens: work around older Linux failure with symlinks
8194         * lib/utimens.c (lutimensat_works_really): New variable.
8195         (fdutimens, lutimens): Use it to manage kernels that support
8196         nanosecond times on files, but not on symlinks.
8197         Reported by OndÅ™ej Vašík.
8198
8199         utimes: fix configure grammar
8200         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
8201
8202 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
8203
8204         regex: Fix fastmap for multibyte character ranges.
8205         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
8206         characters when a multibyte character range is included.
8207
8208 2009-11-22  Andy Wingo  <wingo@pobox.com>
8209
8210         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
8211         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
8212
8213 2009-11-24  Bruno Haible  <bruno@clisp.org>
8214
8215         doc: Most *_l functions exist in MacOS X 10.5.
8216         * doc/posix-functions/duplocale.texi: Update platforms list.
8217         * doc/posix-functions/freelocale.texi: Likewise.
8218         * doc/posix-functions/newlocale.texi: Likewise.
8219         * doc/posix-functions/uselocale.texi: Likewise.
8220         * doc/posix-functions/isalnum_l.texi: Likewise.
8221         * doc/posix-functions/isalpha_l.texi: Likewise.
8222         * doc/posix-functions/isblank_l.texi: Likewise.
8223         * doc/posix-functions/iscntrl_l.texi: Likewise.
8224         * doc/posix-functions/isdigit_l.texi: Likewise.
8225         * doc/posix-functions/isgraph_l.texi: Likewise.
8226         * doc/posix-functions/islower_l.texi: Likewise.
8227         * doc/posix-functions/isprint_l.texi: Likewise.
8228         * doc/posix-functions/ispunct_l.texi: Likewise.
8229         * doc/posix-functions/isspace_l.texi: Likewise.
8230         * doc/posix-functions/isupper_l.texi: Likewise.
8231         * doc/posix-functions/iswalnum_l.texi: Likewise.
8232         * doc/posix-functions/iswalpha_l.texi: Likewise.
8233         * doc/posix-functions/iswblank_l.texi: Likewise.
8234         * doc/posix-functions/iswcntrl_l.texi: Likewise.
8235         * doc/posix-functions/iswctype_l.texi: Likewise.
8236         * doc/posix-functions/iswdigit_l.texi: Likewise.
8237         * doc/posix-functions/iswgraph_l.texi: Likewise.
8238         * doc/posix-functions/iswlower_l.texi: Likewise.
8239         * doc/posix-functions/iswprint_l.texi: Likewise.
8240         * doc/posix-functions/iswpunct_l.texi: Likewise.
8241         * doc/posix-functions/iswspace_l.texi: Likewise.
8242         * doc/posix-functions/iswupper_l.texi: Likewise.
8243         * doc/posix-functions/iswxdigit_l.texi: Likewise.
8244         * doc/posix-functions/isxdigit_l.texi: Likewise.
8245         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
8246         * doc/posix-functions/strcasecmp_l.texi: Likewise.
8247         * doc/posix-functions/strcoll_l.texi: Likewise.
8248         * doc/posix-functions/strfmon_l.texi: Likewise.
8249         * doc/posix-functions/strftime_l.texi: Likewise.
8250         * doc/posix-functions/strncasecmp_l.texi: Likewise.
8251         * doc/posix-functions/strxfrm_l.texi: Likewise.
8252         * doc/posix-functions/tolower_l.texi: Likewise.
8253         * doc/posix-functions/toupper_l.texi: Likewise.
8254         * doc/posix-functions/towctrans_l.texi: Likewise.
8255         * doc/posix-functions/towlower_l.texi: Likewise.
8256         * doc/posix-functions/towupper_l.texi: Likewise.
8257         * doc/posix-functions/wcscoll_l.texi: Likewise.
8258         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
8259         * doc/posix-functions/wctrans_l.texi: Likewise.
8260         * doc/posix-functions/wctype_l.texi: Likewise.
8261         * doc/glibc-functions/strptime_l.texi: Likewise.
8262         * doc/glibc-functions/strtod_l.texi: Likewise.
8263         * doc/glibc-functions/strtof_l.texi: Likewise.
8264         * doc/glibc-functions/strtol_l.texi: Likewise.
8265         * doc/glibc-functions/strtold_l.texi: Likewise.
8266         * doc/glibc-functions/strtoll_l.texi: Likewise.
8267         * doc/glibc-functions/strtoul_l.texi: Likewise.
8268         * doc/glibc-functions/strtoull_l.texi: Likewise.
8269         * doc/glibc-functions/wcsftime_l.texi: Likewise.
8270         * doc/glibc-functions/wcstod_l.texi: Likewise.
8271         * doc/glibc-functions/wcstof_l.texi: Likewise.
8272         * doc/glibc-functions/wcstol_l.texi: Likewise.
8273         * doc/glibc-functions/wcstold_l.texi: Likewise.
8274         * doc/glibc-functions/wcstoll_l.texi: Likewise.
8275         * doc/glibc-functions/wcstoul_l.texi: Likewise.
8276         * doc/glibc-functions/wcstoull_l.texi: Likewise.
8277
8278 2009-11-24  Bruno Haible  <bruno@clisp.org>
8279
8280         duplocale: Fix logic bug.
8281         * lib/duplocale.c: Don't include <langinfo.h>.
8282         (_NL_LOCALE_NAME): Remove macro.
8283         (rpl_duplocale): Use setlocale instead of nl_langinfo.
8284         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
8285
8286 2009-11-23  Jim Meyering  <meyering@redhat.com>
8287
8288         test-update-copyright: don't hard-code /usr/bin/perl
8289         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
8290         perl to print the current year.  Gilles Espinasse reported that
8291         the replaced use of perl was hard-coded as /usr/bin/perl.
8292
8293 2009-11-23  Bruno Haible  <bruno@clisp.org>
8294
8295         duplocale: Add support for glibc 2.3.x.
8296         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
8297
8298 2009-11-22  Bruno Haible  <bruno@clisp.org>
8299
8300         vasnprintf: Tiny optimization.
8301         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
8302         MacOS X.
8303
8304 2009-11-22  Bruno Haible  <bruno@clisp.org>
8305
8306         Tests for module 'duplocale'.
8307         * modules/duplocale-tests: New file.
8308         * tests/test-duplocale.c: New file.
8309
8310         New module 'duplocale'.
8311         * m4/duplocale.m4: New file.
8312         * lib/locale.in.h (duplocale): New declaration.
8313         * lib/duplocale.c: New file.
8314         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
8315         gl_LOCALE_H_DEFAULTS): New macros.
8316         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
8317         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
8318         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
8319         REPLACE_DUPLOCALE.
8320         * modules/duplocale: New file.
8321         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
8322
8323 2009-11-22  Bruno Haible  <bruno@clisp.org>
8324
8325         * modules/locale-tests (configure.ac): Test for newlocale function.
8326         * tests/test-locale.c: When the system has extended locale functions,
8327         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
8328
8329         locale: Make locale_t available when possible.
8330         * lib/locale.in.h: Include <xlocale.h> when it exists.
8331         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
8332         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
8333         * modules/locale (Depends-on): Add extensions.
8334         (Makefile.am): Also substitute HAVE_XLOCALE_H.
8335         * doc/posix-headers/locale.texi: Document the problem with locale_t.
8336
8337 2009-11-22  Bruno Haible  <bruno@clisp.org>
8338
8339         Add comments.
8340         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
8341         invocation.
8342         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
8343         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
8344         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
8345
8346 2009-11-22  Bruno Haible  <bruno@clisp.org>
8347
8348         error: account for the possibility of freopen (stdout).
8349         * lib/error.c: Include <unistd.h>.
8350         (flush_stdout): New function, extracted from error and error_at_line.
8351         Determine stdout's fd dynamically.
8352         (error, error_at_line): Invoke flush_stdout.
8353         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
8354         * modules/error (Depends-on): Add unistd.
8355
8356 2009-11-22  Bruno Haible  <bruno@clisp.org>
8357
8358         diffseq: Add comment.
8359         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
8360
8361 2009-11-22  Jim Meyering  <meyering@redhat.com>
8362
8363         c-stack: avoid defining an unused static function
8364         * lib/c-stack.c (find_stack_direction): Do not define this function
8365         when it will not be used.
8366
8367         diffseq: avoid spurious gcc warnings
8368         * lib/diffseq.h (IF_LINT2): Define.
8369         (compareseq): Use it to initialize two members of "part".
8370         This avoids two used-uninitialized warnings.
8371
8372 2009-11-21  Jim Meyering  <meyering@redhat.com>
8373
8374         c-stack: avoid "ignoring return value of `write'" warning
8375         * lib/c-stack.c: Include "ignore-value.h".
8376         (die): Explicitly ignore each write return value.
8377         * modules/c-stack (Depends-on): Add ignore-value.
8378
8379 2009-11-21  Bruno Haible  <bruno@clisp.org>
8380
8381         diffseq: reduce scope of variable 'best'.
8382         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
8383         variable, earlier used for two different purposes.
8384
8385 2009-11-21  Jim Meyering  <meyering@redhat.com>
8386
8387         diffseq: remove useless assignment to "best"
8388         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
8389         assignment.  At that point "best" is already guaranteed to be zero.
8390
8391 2009-11-20  Eric Blake  <ebb9@byu.net>
8392
8393         build: mention ftp redirector in release announcements
8394         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
8395         values that used to come from cfg.mk; mention FTP redirect URL.
8396         * build-aux/announce-gen: Mention the mirror list.
8397         Suggested by Karl Berry.
8398
8399         nanosleep: improve port to mingw
8400         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
8401         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
8402         LIB_NANOSLEEP, but only when needed.
8403         * modules/select (Link): Document LIBSOCKET.
8404         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
8405         enough.
8406
8407         nanosleep: work around cygwin bug
8408         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
8409         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
8410         bug.
8411         (getnow): Delete, not needed.
8412         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
8413         LIB_CLOCK_GETTIME.
8414         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
8415         clock-time, gettime.
8416         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
8417         bug.
8418         * modules/nanosleep-tests: New test.
8419         * tests/test-nanosleep.c: New file.
8420
8421         sleep: work around cygwin bug
8422         * lib/sleep.c (rpl_sleep): Work around the bug.
8423         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
8424         (gl_PREREQ_SLEEP): Delete unused macro.
8425         * modules/sleep (Depends-on): Add verify.
8426         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
8427         * modules/unistd (Makefile.am): Substitute witness.
8428         * lib/unistd.in.h (sleep): Update prototype.
8429         * doc/posix-functions/sleep.texi (sleep): Document the bug.
8430         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
8431         * modules/sleep-tests (Depends-on): Check for alarm.
8432
8433 2009-11-20  Jim Meyering  <meyering@redhat.com>
8434
8435         maint.mk: improve sc_prohibit_magic_number_exit
8436         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
8437         so it does not match uses like System.exit(1).
8438         Add comments showing how to correct all offenders.
8439
8440 2009-11-19  Eric Blake  <ebb9@byu.net>
8441
8442         xalloc-die-tests: add missing library
8443         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
8444
8445         test-xvasprintf: silence compiler warnings
8446         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
8447         empty string from gcc.
8448
8449 2009-11-19  Jim Meyering  <meyering@redhat.com>
8450
8451         xfreopen: new module, from coreutils
8452         * modules/xfreopen: New module.
8453         * lib/xfreopen.c: New file.
8454         * lib/xfreopen.h: New file.
8455         * MODULES.html.sh (File stream based Input/Output"): Add it.
8456
8457 2009-11-19  Eric Blake  <ebb9@byu.net>
8458
8459         manywarnings: depend on warnings
8460         * modules/manywarnings (Depends-on): Add warnings.
8461
8462         build: avoid compiler warnings
8463         * lib/select.c (rpl_select): Delete unused variable.
8464         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
8465
8466 2009-11-18  Eric Blake  <ebb9@byu.net>
8467
8468         tests: avoid false negative with --with-packager
8469         * tests/test-version-etc.sh: Discard packager information.
8470         * tests/test-argp-version-etc-1.sh: Likewise.
8471         Reported by Mike Frysinger.
8472
8473         utimens: fix regression on Solaris
8474         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
8475         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
8476         can only change fd timestamps via futimesat.  Instead, use an
8477         additional witness macro to avoid BSD bug.
8478         Reported by Jim Meyering.
8479
8480 2009-11-17  Eric Blake  <ebb9@byu.net>
8481
8482         usleep: use it to simplify tests
8483         * modules/stat-time-tests (Depends-on): Add usleep.
8484         (configure.ac): Drop usleep check.
8485         * modules/chown-tests (Depends-on, configure.ac): Likewise.
8486         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
8487         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
8488         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
8489         * modules/openat-tests (Depends-on, configure.ac): Likewise.
8490         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
8491         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
8492         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
8493         Likewise.
8494         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
8495         * tests/test-lchown.h (nap): Likewise.
8496         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
8497         * tests/test-stat-time.c (nap): Likewise.
8498         * tests/test-utimens-common.h (nap): Update comments.
8499
8500         usleep: new module
8501         * modules/usleep: New file.
8502         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
8503         * lib/usleep.c (usleep): Likewise.
8504         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
8505         * modules/unistd (Makefile.am): Substitute witnesses.
8506         * lib/unistd.in.h (usleep): Add declaration.
8507         * doc/pastposix-functions/usleep.texi (usleep): Document this.
8508         * MODULES.html.sh (Date and time): Likewise.
8509         * modules/usleep-tests (Depends-on): New test.
8510         * tests/test-usleep.c: New file.
8511
8512         chown: work around OpenBSD bug
8513         * lib/chown.c (rpl_chown): Work around the bug.
8514         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
8515         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
8516         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
8517         * modules/chown (Depends-on): Add stdbool.
8518         * modules/lchown (Depends-on): Likewise.
8519         * doc/posix-functions/chown.texi (chown): Document the bug.
8520         * doc/posix-functions/lchown.texi (lchown): Likewise.
8521         * tests/test-lchown.h (test_chown): Relax test.
8522
8523         mkstemp: avoid conflict with C++ keyword template
8524         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
8525         * lib/mkostemp.c (mkostemp): Likewise.
8526         * lib/mkostemps.c (mkostemps): Likewise.
8527         * lib/mkstemp.c (mkstemp): Likewise.
8528         * lib/mkstemps.c (mkstemps): Likewise.
8529
8530         xalloc-die-tests: optimize
8531         * tests/test-xalloc-die.sh: Reduce number of processes.
8532
8533 2009-11-17  Simon Josefsson  <simon@josefsson.org>
8534
8535         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
8536         patch from ludo@gnu.org (Ludovic Courtès).
8537
8538 2009-11-17  Jim Meyering  <meyering@redhat.com>
8539
8540         version-etc: use proper license string
8541         * modules/version-etc (License): Use LGPL, not LGPLv3+.
8542         * modules/version-etc-fsf: Likewise.
8543
8544 2009-11-17  Simon Josefsson  <simon@josefsson.org>
8545
8546         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
8547         printed to stdout.  Deal with EOL differences.
8548
8549 2009-11-17  Eric Blake  <ebb9@byu.net>
8550
8551         unsetenv: work around Solaris bug
8552         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
8553         * lib/unsetenv.c (rpl_unsetenv): Work around it.
8554         Reported by Jim Meyering.
8555
8556         vasnprintf: avoid compiler warnings
8557         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
8558         variables.
8559         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
8560
8561 2009-11-17  Simon Josefsson  <simon@josefsson.org>
8562
8563         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
8564         settings since xalloc-die is no longer the self test,
8565         xalloc-die.sh is.
8566
8567 2009-11-17  Jim Meyering  <meyering@redhat.com>
8568
8569         test-xalloc-die.sh: make the code agree with the commit log
8570         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
8571         at the end, just in case you happen to have a test-xalloc-die
8572         program in some other PATH directory.
8573
8574         test-xalloc-die.sh: fix a portability bug
8575         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
8576         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
8577         Otherwise, argv[0] (as often seen in diagnostics) would be too
8578         system-dependent, sometimes with, and sometimes without the leading "./".
8579
8580         version-etc-fsf: relax license to LGPLv3+
8581         * modules/version-etc-fsf (License): Relax license.
8582
8583 2009-11-16  Eric Blake  <ebb9@byu.net>
8584
8585         xalloc-die-tests: avoid printing null pointer
8586         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
8587         shell script.
8588         * tests/test-xalloc-die.c (program_name): Declare.
8589         * tests/test-xalloc-die.sh (tmpfiles): New file.
8590
8591         setenv, unsetenv: work around various bugs
8592         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
8593         (setenv) [HAVE_SETENV]: Work around bugs.
8594         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
8595         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
8596         for bugs.
8597         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
8598         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
8599         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
8600         * modules/stdlib (Makefile.am): Update substitutions.
8601         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
8602         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
8603         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
8604         * modules/setenv-tests: New test.
8605         * modules/unsetenv-tests: Likewise.
8606         * tests/test-setenv.c: New file.
8607         * tests/test-unsetenv.c: Likewise.
8608
8609 2009-11-16  Jim Meyering  <meyering@redhat.com>
8610
8611         version-etc: relax license to LGPLv3+
8612         * modules/version-etc (License): Relax license.
8613
8614         better AC_REQUIRE expanded-before-required-warning avoidance
8615         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
8616         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
8617         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
8618         which is no longer needed.
8619
8620 2009-11-16  Eric Blake  <ebb9@byu.net>
8621
8622         test-freading: clean up temporary file
8623         * tests/test-freading.c (main): Remove file on success, and use
8624         ASSERT more liberally.
8625         Reported by Jim Meyering.
8626
8627 2009-11-16  Jim Meyering  <meyering@redhat.com>
8628
8629         avoid new AC_REQUIRE expanded-before-required warnings
8630         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
8631         merely using it.
8632         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
8633         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
8634
8635 2009-11-15  Simon Josefsson  <simon@josefsson.org>
8636
8637         * tests/test-xalloc-die.c: New file.
8638         * modules/xalloc-die-tests: New file.
8639         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
8640         XFAIL_TESTS so it can be appended by modules.
8641
8642 2009-11-15  Simon Josefsson  <simon@josefsson.org>
8643
8644         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
8645         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
8646
8647 2009-11-14  Eric Blake  <ebb9@byu.net>
8648
8649         fnmatch: avoid compiler warning
8650         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
8651         to silence compiler warning about mismatch signedness in ?:.
8652         Reported by Robert Millan.
8653
8654         intprops: add double-inclusion guard
8655         * lib/intprops.h: Allow idempotent includes.
8656         Suggested by Bruce Korb.
8657
8658         openat: detect Solaris fchownat bug
8659         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
8660         penalizing glibc chownat when only lchownat is broken.
8661         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
8662         trailing slash bugs.
8663         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
8664         * modules/openat-tests (Files): Include more files.
8665         (Depends-on): Add mgetgroups, sleep, stat-time.
8666         (configure.ac): Add additional checks.
8667         (Makefile.am): Build new test.
8668         * tests/test-fchownat.c: New file.
8669
8670         lchown: detect Solaris and FreeBSD bug
8671         * lib/lchown.c (rpl_lchown): Work around bug.
8672         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
8673         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8674         * modules/unistd (Makefile.am): Populate it.
8675         * lib/unistd.in.h (lchown): Update declaration.
8676         * doc/posix-functions/lchown.texi (lchown): Document the bug.
8677         * modules/lchown-tests: New file.
8678         * tests/test-lchown.h (test_lchown): Likewise.
8679         * tests/test-lchown.c (main): Likewise.
8680
8681         chown: detect Solaris and FreeBSD bug
8682         * lib/chown.c (rpl_chown): Work around bug.
8683         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
8684         (gl_PREREQ_CHOWN): Delete.
8685         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8686         * modules/unistd (Makefile.am): Populate it.
8687         * lib/unistd.in.h (chown): Update declaration.
8688         * lib/lchown.c (chown): Update client.
8689         * modules/lchown (Depends-on): Add lstat.
8690         * doc/posix-functions/chown.texi (chown): Document the bug.
8691         * doc/posix-functions/getgroups.texi (getgroups): Document
8692         getgroups pitfall.
8693         * modules/chown-tests: New file.
8694         * tests/test-chown.h (test_chown): Likewise.
8695         * tests/test-chown.c (main): Likewise.
8696
8697 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
8698
8699         gnulib-tool: correctly detect absence of m4 directories
8700         * gnulib-tool: Avoid extra newline on data passed to wc -l.
8701
8702 2009-11-14  Jim Meyering  <meyering@redhat.com>
8703
8704         maint.mk: Prohibit inclusion of "xalloc.h" without use.
8705         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
8706
8707 2009-11-14  John W. Eaton  <jwe@gnu.org>
8708
8709         strftime.h: wrap funtion declaration in extern "C" block
8710         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
8711
8712 2009-11-13  Eric Blake  <ebb9@byu.net>
8713
8714         getgroups: avoid compiler warning
8715         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
8716
8717         getgroups: work around FreeBSD bug
8718         * lib/getgroups.c (rpl_getgroups): Work around the bug.
8719         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
8720         * doc/posix-functions/getgroups.texi (getgroups): Document it.
8721         * tests/test-getgroups.c (main): Fix buffer overrun.
8722
8723         getgroups: avoid compilation failure
8724         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
8725         * modules/getgroups (Depends-on): Add stdint.
8726
8727 2009-11-13  Jim Meyering  <meyering@redhat.com>
8728
8729         test-getgroups: avoid compilation failure
8730         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
8731
8732 2009-11-13  Eric Blake  <ebb9@byu.net>
8733
8734         mgetgroups: new module, taken from coreutils
8735         * modules/mgetgroups: New file.
8736         * lib/mgetgroups.h: Likewise.
8737         * lib/mgetgroups.c (mgetgroups): Likewise.
8738         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
8739         * MODULES.html.sh (Users and groups): Mention it.
8740
8741         getgroups: don't expose GETGROUPS_T to user
8742         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
8743         an element at a time if GETGROUPS_T is wrong size.
8744         * lib/getugroups.h (getugroups): Change signature.
8745         * lib/unistd.in.h (getgroups): Likewise.
8746         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
8747         signature needs fixing.
8748         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
8749         AC_TYPE_GETGROUPS.
8750         * modules/group-member (Depends-on): Add getgroups.
8751         * lib/group-member.c (group_info, get_group_info): Use gid_t.
8752         (group_member): Rely on getgroups replacement.
8753         * lib/getugroups.c (getugroups): Use gid_t.
8754         * tests/test-getgroups.c (main): Likewise.
8755         * NEWS: Mention the signature change.
8756         * doc/posix-functions/getgroups.texi (getgroups): Mention the
8757         problem with signature.
8758         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
8759         GETGROUPS_T is still useful for setgroups.
8760
8761         getgroups, getugroups: provide stubs for mingw
8762         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
8763         * lib/getugroups.c (getugroups): Likewise.
8764         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
8765         function.  Modernize replacement scheme.
8766         (gl_PREREQ_GETGROUPS): Delete.
8767         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
8768         * modules/getgroups (configure.ac): Declare witness.
8769         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
8770         * modules/unistd (Depends-on): Substitute witness.
8771         * lib/unistd.in.h (getgroups): Declare replacement.
8772
8773         getgroups: avoid calling exit
8774         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
8775         drop xalloc.
8776         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
8777         dependencies.
8778         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
8779         exiting, in the rare case of malloc failure.
8780
8781         getgroups: fix logic error
8782         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
8783         has more than 20 groups.
8784         * modules/getgroups-tests: New test.
8785         * tests/test-getgroups.c: New file.
8786
8787 2009-11-13  Simon Josefsson  <simon@josefsson.org>
8788
8789         * tests/test-base64.c: Improve.
8790
8791 2009-11-13  Simon Josefsson  <simon@josefsson.org>
8792
8793         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
8794         Blake <ebb9@byu.net>.
8795
8796 2009-11-13  Simon Josefsson  <simon@josefsson.org>
8797
8798         * tests/test-xvasprintf.c: Add %s%s related checks.
8799
8800 2009-11-12  Eric Blake  <ebb9@byu.net>
8801
8802         version-etc: match standards.texi style
8803         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
8804         and use <> only for URLs.
8805
8806 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
8807
8808         fts: do not fail on a submount during traversal
8809         * lib/fts.c (fts_build): Read the stat info again after opening
8810         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
8811         Original report at http://bugzilla.redhat.com/501848.
8812
8813 2009-11-12  Jim Meyering  <meyering@redhat.com>
8814
8815         bootstrap: sync from coreutils
8816         * build-aux/bootstrap (bootstrap_epilogue): New function.
8817         Use git_modules_config in one more place.  This make bootstrap's
8818         --gnulib-srcdir option more useful for testing.
8819
8820         bootstrap: generalize autoheader check
8821         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
8822         AC_CONFIG_HEADERS.
8823
8824 2009-11-11  Eric Blake  <ebb9@byu.net>
8825
8826         mkfifoat: use new modules for Solaris and BSD bugs
8827         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
8828         * lib/mkfifoat.c (mknodat): Split...
8829         * lib/mknodat.c (mknodat): ...into new file.
8830         * modules/mkfifoat (Files): Ship new file.
8831         (Depends-on): Add mkfifo, mknod.
8832         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
8833         (Depends-on): Add symlink.
8834         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
8835         redundant with test_mkfifo.h.
8836         (do_mkfifoat, do_mknodat): New helpers.
8837
8838         mknod: new module
8839         * modules/mknod: New file.
8840         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
8841         * lib/mknod.c (mknod): Likewise.
8842         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
8843         defaults.
8844         * modules/sys_stat (Makefile.am): Substitute them.
8845         * lib/sys_stat.in.h (mknod): Declare replacement.
8846         * MODULES.html.sh (Support for systems lacking POSIX:2008):
8847         Document it.
8848         * doc/posix-functions/mknod.texi (mknod): Likewise.
8849         * modules/mknod-tests: New test.
8850         * tests/test-mknod.c: Likewise.
8851
8852         mkfifo: new module
8853         * modules/mkfifo: New file.
8854         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
8855         * lib/mkfifo.c (mkfifo): 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 (mkfifo): Declare replacement.
8860         * MODULES.html.sh (Support for systems lacking POSIX:2008):
8861         Document it.
8862         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
8863         * modules/mkfifo-tests: New test.
8864         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
8865         from test-mkfifoat.c.
8866         * tests/test-mkfifo.c: New file.
8867
8868         readlink: detect FreeBSD bug
8869         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
8870         slash on symlink.
8871         * doc/posix-functions/readlink.texi (readlink): Document the bug.
8872         * tests/test-readlink.h (test_readlink): Enhance test.
8873
8874         symlink: detect FreeBSD bug
8875         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
8876         slash on symlink.
8877         * doc/posix-functions/symlink.texi (symlink): Document the bug.
8878         * tests/test-symlink.h (test_symlink): Enhance test.
8879
8880 2009-11-10  Eric Blake  <ebb9@byu.net>
8881
8882         link: detect FreeBSD bug
8883         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
8884         symlink.
8885         * doc/posix-functions/link.texi (link): Document the bug.
8886         * tests/test-link.h (test_link): Enhance test.
8887         * tests/test-linkat.c (main): Update caller.
8888
8889         unlink, remove: detect FreeBSD bug
8890         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
8891         slash on symlink.
8892         * doc/posix-functions/unlink.texi (unlink): Document the bug.
8893         * doc/posix-functions/remove.texi (remove): Likewise.
8894         * tests/test-unlink.h (test_unlink): Enhance test.
8895         * tests/test-remove.c (main): Likewise.
8896
8897 2009-11-09  Eric Blake  <ebb9@byu.net>
8898
8899         rename: detect FreeBSD bug
8900         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
8901         slash on symlink.
8902         * modules/renameat-tests (Depends-on): Add filenamecat.
8903         * tests/test-rename.h (test_rename): Allow one more errno.
8904         * tests/test-renameat.c (main): Likewise.
8905         * doc/posix-functions/rename.texi (rename): Document the bug.
8906
8907         open: detect FreeBSD bug
8908         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
8909         symlink.
8910         * doc/posix-functions/open.texi (open): Document the bug.
8911         * doc/posix-functions/utimes.texi (utimes): Likewise.
8912         * tests/test-open.h (test_open): Add parameters, and test symlink
8913         handling.
8914         * tests/test-open.c (main): Adjust caller.
8915         * tests/test-fcntl-safer.c (main): Likewise.
8916         * modules/open-tests (Depends-on): Add stdbool, symlink.
8917         * modules/fcntl-safer-tests (Depends-on): Likewise.
8918         * tests/test-openat.c (main): Add test-open tests.
8919
8920         stat: detect FreeBSD bug
8921         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
8922         symlink.
8923         * doc/posix-functions/stat.texi (stat): Document the bug.
8924         * tests/test-stat.h (test_stat_func): Add argument.
8925         * tests/test-stat.c (main): Adjust caller.
8926         * tests/test-fstatat.c (main): Likewise.
8927         * modules/stat-tests (Depends-on): Add stdbool, symlink.
8928         Reported by Jim Meyering.
8929
8930 2009-11-09  James Youngman  <jay@gnu.org>
8931
8932         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
8933         * lib/strftime.c: Correct placement of #include "ignore-value.h".
8934
8935 2009-11-08  Jim Meyering  <meyering@redhat.com>
8936
8937         utimens: remove invalid futimesat call
8938         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
8939         It used the file descriptor of the target file as the DIR_FD
8940         parameter and NULL as the file name.  That caused failure with
8941         errno == EFAULT on FreeBSD-8.0-rc2
8942
8943 2009-11-07  Eric Blake  <ebb9@byu.net>
8944
8945         fflush, freadseek: use fseeko, not fseek
8946         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
8947         (clear_ungetc_buffer): Avoid potential problems on large files.
8948         * lib/freadseek.c (freadseek): Likewise.
8949         * modules/freadseek (Depends-on): Add fseeko.
8950         * modules/fseek (configure.ac): Set a witness.
8951         * tests/test-fflush.c (main): Use fseeko.
8952         * tests/test-fpurge.c (fseek): Disable link warning.
8953         * tests/test-freadable.c (fseek): Likewise.
8954         * tests/test-freading.c (fseek): Likewise.
8955         * tests/test-fseeko.c (fseek): Likewise.
8956         * tests/test-ftell.c (fseek): Likewise.
8957         * tests/test-ftello.c (fseek): Likewise.
8958         * tests/test-fwritable.c (fseek): Likewise.
8959         * tests/test-fwriting.c (fseek): Likewise.
8960
8961 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8962
8963         * modules/memchr (Depends-on): Drop getpagesize dependency.
8964
8965 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8966
8967         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
8968         Reported by Ludovic Courtès.
8969         * build-aux/pmccabe2html: Improve example usage.
8970         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
8971
8972 2009-11-06  Jim Meyering  <meyering@redhat.com>
8973
8974         do-release-commit-and-tag: New module.
8975         Automate the release-commit and tag process.
8976         * build-aux/do-release-commit-and-tag: New script, from coreutils.
8977         * modules/do-release-commit-and-tag: New file.
8978         * MODULES.html.sh (Support for maintaining and releasing): Add it.
8979
8980 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8981
8982         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
8983         because test-select.c uses inet_pton.
8984
8985 2009-11-06  Simon Josefsson  <simon@josefsson.org>
8986
8987         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
8988         GETADDRINFO_LIB.  Bump serial number.
8989         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
8990         Suggested by Eric Blake <ebb9@byu.net>.
8991
8992 2009-11-05  Eric Blake  <ebb9@byu.net>
8993
8994         strtod: detect darwin bug
8995         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
8996         Reported by Leo Davis.
8997
8998         freopen-safer: new module
8999         * modules/freopen-safer: New module.
9000         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
9001         * lib/freopen-safer.c (freopen_safer): New file.
9002         * lib/stdio-safer.h (freopen_safer): New declaration.
9003         * lib/stdio--.h (freopen): New override.
9004         * MODULES.html.sh (File stream based Input/Output): Mention it.
9005         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
9006         freopen-safer module.
9007         * doc/posix-functions/stderr.texi (stderr): Likewise.
9008         * doc/posix-functions/stdin.texi (stdin): Likewise.
9009         * doc/posix-functions/stdout.texi (stdout): Likewise.
9010         * modules/freopen-safer-tests: New test.
9011         * tests/test-reopen-safer.c: New file.
9012
9013 2009-11-05  Jim Meyering  <meyering@redhat.com>
9014
9015         maint.mk: Prohibit inclusion of "close-stream.h" without use.
9016         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
9017
9018 2009-11-05  Simon Josefsson  <simon@josefsson.org>
9019
9020         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
9021
9022 2009-11-05  Simon Josefsson  <simon@josefsson.org>
9023
9024         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
9025
9026 2009-11-05  Simon Josefsson  <simon@josefsson.org>
9027
9028         Fix link error.
9029         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
9030         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
9031
9032 2009-11-05  Simon Josefsson  <simon@josefsson.org>
9033
9034         * tests/test-func.c: Also test value of __func__.
9035
9036 2009-11-05  Simon Josefsson  <simon@josefsson.org>
9037
9038         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
9039         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
9040
9041 2009-11-05  Bruno Haible  <bruno@clisp.org>
9042
9043         Fix link error.
9044         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
9045         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
9046         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
9047
9048 2009-11-05  Bruno Haible  <bruno@clisp.org>
9049
9050         Tests for module 'inet_pton'.
9051         * modules/inet_pton-tests: New file.
9052         * tests/test-inet_pton.c: New file.
9053
9054 2009-11-05  Bruno Haible  <bruno@clisp.org>
9055
9056         Tests for module 'inet_ntop'.
9057         * modules/inet_ntop-tests: New file.
9058         * tests/test-inet_ntop.c: New file.
9059
9060 2009-11-04  Eric Blake  <ebb9@byu.net>
9061
9062         stdlib-safer: wrap all mkstemp variants
9063         * modules/mkostemp (configure.ac): Set witness.
9064         * modules/mkostemps (configure.ac): Likewise.
9065         * modules/mkstemps (configure.ac): Likewise.
9066         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
9067         (mkstemps_safer): Wrap more functions.
9068         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
9069         wrapping.
9070         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
9071         (mkstemps_safer): Implement the wrappers.
9072
9073         mkstemps, mkostemps: new modules
9074         * modules/mkostemps: New module.
9075         * modules/mkstemps: Likewise.
9076         * lib/mkostemps.c (mkostemps): New file.
9077         * lib/mkstemps.c (mkstemps): Likewise.
9078         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
9079         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
9080         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
9081         * modules/stdlib (Makefile.am): Substitute them.
9082         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
9083         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
9084         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
9085         * doc/gnulib.texi (Glibc stdlib.h): Include them.
9086         * MODULES.html.sh (File system functions): Mention them.
9087
9088         tempname: resync from glibc
9089         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
9090         same values for __GT_FILE as glibc.  Abort even when assertions
9091         are disabled.
9092         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
9093         match its value otherwise.  Allow idempotent inclusion.
9094         * lib/mkdtemp.c (mkdtemp): Adjust caller.
9095         * lib/mkostemp.c (mkostemp): Likewise.
9096         * lib/mkstemp.c (mkstemp): Likewise.
9097         * lib/tmpfile.c (tmpfile): Likewise.
9098         * NEWS: Document this.
9099
9100         utimens: fix use of futimens on older Linux
9101         * lib/utimens.c (fdutimens): Use updated, rather than original,
9102         timespec to avoid bug in older Linux kernel.
9103         Reported by Simon Josefsson.
9104
9105 2009-11-04  Bruno Haible  <bruno@clisp.org>
9106
9107         Make num_processors more flexible and consistent.
9108         * lib/nproc.h (enum nproc_query): New type.
9109         (num_processors): Add a 'query' argument.
9110         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
9111         (num_processors): Add a 'query' argument. Test the value of the
9112         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
9113         mingw, count the number of CPUs available for the current process.
9114         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
9115         Check for sched_getaffinity and sched_getaffinity_np.
9116         * modules/nproc (Depends-on): Add c-ctype, extensions.
9117         * NEWS: Mention the change.
9118
9119 2009-11-03  Bruno Haible  <bruno@clisp.org>
9120
9121         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
9122
9123 2009-11-03  Jim Meyering  <meyering@redhat.com>
9124
9125         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
9126         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
9127         if it is defined.
9128
9129 2009-11-02  Eric Blake  <ebb9@byu.net>
9130
9131         mktime, timegm: share common declaration
9132         * lib/mktime-internal.h: New file.
9133         * lib/mktime.c: Use it rather than open-coding a declaration.
9134         * lib/timegm.c: Likewise.
9135         * modules/mktime (Files): Ship it.
9136         * modules/timegm (Files): Likewise.
9137         Suggested by Bruno Haible.
9138
9139         test-update-copyright: update test to match script changes
9140         * tests/test-update-copyright.sh: Avoid hard-coding perl
9141         location.  Don't update *.bak created by earlier runs.
9142
9143 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
9144             Simon Josefsson  <simon@josefsson.org>
9145             Bruno Haible  <bruno@clisp.org>
9146
9147         Fix link error on Solaris 8.
9148         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
9149         also in libnsl. Define also INET_PTON_LIB.
9150         * modules/inet_pton (Link): New section.
9151
9152 2009-11-02  Simon Josefsson  <simon@josefsson.org>
9153             Bruno Haible  <bruno@clisp.org>
9154
9155         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
9156         * modules/inet_ntop (Link): New section.
9157         Reported by Boyan Kasarov <bkasarov@gmail.com>.
9158
9159 2009-11-02  Eric Blake  <ebb9@byu.net>
9160
9161         maint: avoid compiler warnings in m4 macros
9162         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
9163         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
9164
9165 2009-11-02  Simon Josefsson  <simon@josefsson.org>
9166
9167         * m4/pmccabe2html.m4: Remove file.
9168         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
9169         function.  Change maintainer.
9170         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
9171         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
9172         Courtès).
9173
9174 2009-10-31  Eric Blake  <ebb9@byu.net>
9175
9176         fseeko: fix m4 regression
9177         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
9178         regression from 2009-10-27.
9179         Reported by Ralf Wildenhues.
9180
9181 2009-10-31  Jim Meyering  <meyering@redhat.com>
9182
9183         inttostr: aesthetics and improved (compile-time) safety
9184         Define inttype_is_signed rather than inttype_is_unsigned,
9185         since the sole use is via "#if inttype_is_signed".
9186         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
9187         inttype_is_unsigned.
9188         * lib/offtostr.c (inttype_is_signed): Likewise.
9189         * lib/uinttostr.c (inttype_is_signed): Likewise.
9190         * lib/umaxtostr.c (inttype_is_signed): Likewise.
9191         * lib/inttostr.c (inttostr): Use verify to cross-check the
9192         inttype_is_signed value and the signedness of the actual type.
9193         * modules/inttostr (Depends-on): Add verify.
9194
9195 2009-10-30  Eric Blake  <ebb9@byu.net>
9196
9197         build: avoid compiler warnings
9198         * lib/fchmodat.c (lchmod): Mark unused variables.
9199         * lib/getopt.c (_getopt_initialize): Likewise.
9200         * lib/mktime.c (__mktime_internal): Provide prototype.
9201         * lib/inttostr.c (inttostr): Avoid compiler warning even with
9202         older gcc that do not understand #pragma GCC diagnostic.
9203         * lib/uinttostr.c (inttype_is_unsigned): Define.
9204         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
9205
9206 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
9207
9208         stat: fix compilation on AIX
9209         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
9210         only see struct stat64.
9211
9212 2009-10-30  Eric Blake  <ebb9@byu.net>
9213
9214         exclude: make more robust
9215         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
9216         rather than masking a coding bug.
9217         Suggested by Bruno Haible.
9218
9219 2009-10-30  Jim Meyering  <meyering@redhat.com>
9220
9221         perl scripts: remove #!/usr/bin/perl in favor of more portable...
9222         Rather than putting #!/usr/bin/perl on the first line,
9223         start with a variant of what's recommended by "man perlrun" that
9224         invokes the first "perl" program from your shell's search path.
9225         * build-aux/gitlog-to-changelog: Replace #!... as above.
9226         Add a "Local Variables" perl mode setting.
9227         Prompted by a patch from Ludovic Courtès.
9228         Improved by Eric Blake.
9229         * build-aux/useless-if-before-free: Likewise.
9230         * build-aux/announce-gen: Likewise.
9231         * build-aux/update-copyright: Likewise.
9232
9233 2009-10-29  Eric Blake  <ebb9@byu.net>
9234
9235         filenamecat-lgpl: adjust clients
9236         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
9237         filenamecat.
9238         * modules/renameat (Depends-on): Likewise.
9239
9240         filenamecat: split into filenamecat-lgpl
9241         * modules/filenamecat-lgpl: New module.
9242         * modules/filenamecat (Files): Move library-safe files into
9243         filenamecat-lgpl.
9244         (Depends-on): Add filenamecat-lgpl.
9245         (configure.ac): Declare witness.
9246         * lib/filenamecat.h (file_name_concat): Only declare when using
9247         GPL module.
9248         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
9249         Move...
9250         * lib/filenamecat-lgpl.c: ...into new file.
9251         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
9252         (gl_FILE_NAME_CONCAT): Use it.
9253         * MODULES.html.sh (File system functions): Mention new module.
9254
9255         argp: avoid memory leak
9256         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
9257         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
9258         base_name, since the latter malloc()s and can call exit().
9259         Leak introduced 2006-07-03.
9260
9261         dirname-lgpl: adjust clients that don't need full dirname
9262         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
9263         * modules/filenamecat (Depends-on): Likewise.
9264         * modules/linkat (Depends-on): Likewise.
9265         * modules/mkancesdirs (Depends-on): Likewise.
9266         * modules/mkdir (Depends-on): Likewise.
9267         * modules/openat (Depends-on): Likewise.
9268         * modules/savewd (Depends-on): Likewise.
9269         * modules/rename (Depends-on): Likewise.
9270         (License): Relax license.
9271         * modules/mkdir-tests (Depends-on): Drop progname.
9272         (Makefile.am): Delete unneeded LDADD.
9273         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
9274
9275         dirname: split into dirname-lgpl
9276         * modules/dirname-lgpl: New module.
9277         * modules/dirname (Files): Move library-safe files into
9278         dirname-lgpl.
9279         (Depends-on): Add dirname-lgpl.
9280         (configure.ac): Declare witness.
9281         * modules/double-slash-root (License): Relax license.
9282         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
9283         module.
9284         * lib/dirname.c (dir_len, mdir_name): Move...
9285         * lib/dirname-lgpl.c: ...into new file.
9286         * lib/basename.c (last_component, base_len): Move...
9287         * lib/basename-lgpl.c: ...into new file.
9288         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
9289         (gl_DIRNAME): Use it.
9290         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
9291         Mention new module.
9292         * modules/dirname-tests (Depends-on): Add progname.
9293         * tests/test-dirname.c (program_name): Delete.
9294
9295         mkdir: make safe for libraries
9296         * modules/mkdir (Depends-on): Drop xalloc.
9297         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
9298         exit.
9299
9300         tests: avoid some compiler warnings
9301         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
9302         literals.
9303         * tests/test-memchr.c (main): Avoid type mismatch.
9304         * tests/test-arpa_inet.c (main): Avoid unused parameters.
9305         * tests/test-base64.c (main): Likewise.
9306         * tests/test-getdelim.c (main): Likewise.
9307         * tests/test-gethostname.c (main): Likewise.
9308         * tests/test-getline.c (main): Likewise.
9309         * tests/test-netinet_in.c (main): Likewise.
9310         * tests/test-select.c (open_server_socket, main): Likewise.
9311         * tests/test-select-stdin.c (main): Likewise.
9312         * tests/test-sockets.c (main): Likewise.
9313         * tests/test-strsignal.c (main): Likewise.
9314         * tests/test-sys_select.c (main): Likewise.
9315         * tests/test-sys_socket.c (main): Likewise.
9316         * tests/test-u64.c (main): Likewise.
9317         * tests/test-xfprintf-posix.c (main): Likewise.
9318         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
9319
9320         sockets: avoid compiler warning
9321         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
9322
9323         maint: detect usage(1) and other suspicious exits
9324         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
9325
9326 2009-10-29  Jim Meyering  <meyering@redhat.com>
9327
9328         timespec: long-to-int truncation could make timespec_cmp malfunction
9329         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
9330         a multiple of 2^32 nanoseconds as no difference.
9331
9332 2009-10-28  Jim Meyering  <meyering@redhat.com>
9333
9334         fprintftime: wrap macro code argument in "do {...} while(0)"
9335         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
9336         cpy macro must be a statement that can be followed by a semicolon.
9337         Now that the else clause contains a comment and is hence longer
9338         than one line, I require curly braces.  That in turn requires
9339         that we wrap this code block in the standard do...while(0).
9340
9341         fprintftime: remove stray semicolon from previous change
9342         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
9343
9344         fprintftime: avoid a warning about ignored fwrite return value
9345         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
9346         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
9347         that is unsafe.
9348         * modules/fprintftime (Depends-on): Add ignore-value.
9349
9350         exclude: avoid an unwarranted warning
9351         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
9352
9353 2009-10-27  Eric Blake  <ebb9@byu.net>
9354
9355         fseek: avoid compilation failure when fflush is replaced
9356         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
9357         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
9358         module is in use.
9359         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
9360         module is not in use; since REPLACE_FSEEK worked otherwise.
9361         (GNULIB_FTELLO): Likewise for ftell.
9362         Reported by Ian Beckwith and others.
9363
9364 2009-10-27  Bruno Haible  <bruno@clisp.org>
9365
9366         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
9367         Reported by Jim Meyering.
9368
9369 2009-10-27  Jim Meyering  <jim@meyering.net>
9370             Bruno Haible  <bruno@clisp.org>
9371
9372         Avoid warning despite dropping the return value of fwrite.
9373         * lib/unicodeio.c: Include ignore-value.h.
9374         (fwrite_success_callback): Explicitly ignore fwrite's return value.
9375         * modules/unicodeio (Depends-on): Add ignore-value.
9376
9377 2009-10-26  Eric Blake  <ebb9@byu.net>
9378
9379         areadlinkat: fix fallback path
9380         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
9381         pointer and zero.
9382
9383 2009-10-22  Pádraig Brady  <P@draigBrady.com>
9384
9385         Use a better IO block size for modern systems
9386         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
9387         * lib/md2.c: Likewise.
9388         * lib/md4.c: Likewise.
9389         * lib/md5.c: Likewise.
9390         * lib/sha1.c: Likewise.
9391         * lib/sha256.c: Likewise.
9392         * lib/sha512.c: Likewise.
9393
9394 2009-10-22  Eric Blake  <ebb9@byu.net>
9395
9396         tests: avoid several compiler warnings
9397         * tests/test-getcwd.c (main): Avoid buffer underflow.
9398         * tests/test-getdate.c (main): String literals are not safe with
9399         putenv, so use setenv.  Declare unused argument.
9400         * modules/getdate-tests (Depends-on): Add setenv.
9401         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
9402         problems with string literals in char *.
9403         * tests/test-hash.c (main): Avoid shadowing declaration.
9404         (insert_new): Treat string literals as char const *.
9405         * tests/test-getopt.h (test_getopt): Likewise.
9406         (getopt_loop): Alter types to minimize casting elsewhere.
9407         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
9408         (test_getopt_long_posix): Likewise.
9409         (do_getopt_long): Add wrapper to minimize casting.
9410         * tests/test-atexit.c (clear_temp_file): Use void.
9411         * tests/test-areadlink-with-size.c (main): Declare unused
9412         arguments.
9413         * tests/test-areadlink.c (main): Likewise.
9414         * tests/test-areadlinkat-with-size.c (main): Likewise.
9415         * tests/test-areadlinkat.c (main): Likewise.
9416         * tests/test-canonicalize-lgpl.c (main): Likewise.
9417         * tests/test-canonicalize.c (main): Likewise.
9418         * tests/test-dirent-safer.c (main): Likewise.
9419         * tests/test-dirname.c (main): Likewise.
9420         * tests/test-dup2.c (main): Likewise.
9421         * tests/test-fchdir.c (main): Likewise.
9422         * tests/test-fcntl-h.c (main): Likewise.
9423         * tests/test-fcntl-safer.c (main): Likewise.
9424         * tests/test-fdopendir.c (main): Likewise.
9425         * tests/test-fdutimensat.c (main): Likewise.
9426         * tests/test-fflush.c (main): Likewise.
9427         * tests/test-filenamecat.c (main): Likewise.
9428         * tests/test-filevercmp.c (main): Likewise.
9429         * tests/test-fopen-safer.c (main): Likewise.
9430         * tests/test-fopen.c (main): Likewise.
9431         * tests/test-fpending.c (main): Likewise.
9432         * tests/test-fpurge.c (main): Likewise.
9433         * tests/test-freading.c (main): Likewise.
9434         * tests/test-fstatat.c (main): Likewise.
9435         * tests/test-fsync.c (main): Likewise.
9436         * tests/test-futimens.c (main): Likewise.
9437         * tests/test-getndelim2.c (main): Likewise.
9438         * tests/test-gettimeofday.c (main): Likewise.
9439         * tests/test-getopt.c (main): Likewise.
9440         * tests/test-i-ring.c (main): Likewise.
9441         * tests/test-inttypes.c (main): Likewise.
9442         * tests/test-link.c (main): Likewise.
9443         * tests/test-lstat.c (main): Likewise.
9444         * tests/test-math.c (main): Likewise.
9445         * tests/test-md5.c (main): Likewise.
9446         * tests/test-memchr2.c (main): Likewise.
9447         * tests/test-memrchr.c (main): Likewise.
9448         * tests/test-mkdir.c (main): Likewise.
9449         * tests/test-mkdirat.c (main): Likewise.
9450         * tests/test-mkfifoat.c (main): Likewise.
9451         * tests/test-open.c (main): Likewise.
9452         * tests/test-openat-safer.c (main): Likewise.
9453         * tests/test-openat.c (main): Likewise.
9454         * tests/test-quotearg.c (main): Likewise.
9455         * tests/test-rawmemchr.c (main): Likewise.
9456         * tests/test-readlink.c (main): Likewise.
9457         * tests/test-remove.c (main): Likewise.
9458         * tests/test-rename.c (main): Likewise.
9459         * tests/test-renameat.c (main): Likewise.
9460         * tests/test-rmdir.c (main): Likewise.
9461         * tests/test-sha1.c (main): Likewise.
9462         * tests/test-signal.c (main): Likewise.
9463         * tests/test-sigaction.c (main): Likewise.
9464         * tests/test-stat.c (main): Likewise.
9465         * tests/test-stat-time.c (main): Likewise.
9466         * tests/test-stddef.c (main): Likewise.
9467         * tests/test-stdint.c (main): Likewise.
9468         * tests/test-stdio.c (main): Likewise.
9469         * tests/test-stdlib.c (main): Likewise.
9470         * tests/test-strchrnul.c (main): Likewise.
9471         * tests/test-strerror.c (main): Likewise.
9472         * tests/test-string.c (main): Likewise.
9473         * tests/test-strtod.c (main): Likewise.
9474         * tests/test-strverscmp.c (main): Likewise.
9475         * tests/test-symlink.c (main): Likewise.
9476         * tests/test-symlinkat.c (main): Likewise.
9477         * tests/test-sys_stat.c (main): Likewise.
9478         * tests/test-sys_time.c (main): Likewise.
9479         * tests/test-time.c (main): Likewise.
9480         * tests/test-unistd.c (main): Likewise.
9481         * tests/test-unlink.c (main): Likewise.
9482         * tests/test-unlinkat.c (main): Likewise.
9483         * tests/test-utimens.c (main): Likewise.
9484         * tests/test-utimensat.c (main): Likewise.
9485         * tests/test-version-etc.c (main): Likewise.
9486         * tests/test-wchar.c (main): Likewise.
9487         * tests/test-wctype.c (main): Likewise.
9488         * tests/test-xprintf-posix.c (main): Likewise.
9489         * tests/test-posixtm.c (main): Likewise.
9490         (STREQ): Delete unused macro.
9491         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
9492         shadowed variables.
9493         * tests/test-memchr.c (main): Likewise.
9494
9495 2009-10-21  Eric Blake  <ebb9@byu.net>
9496
9497         areadlinkat: avoid failure on older glibc
9498         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
9499         rather than mis-comparing 0 against FUNC_RESULT of char*.
9500
9501 2009-10-21  Bruno Haible  <bruno@clisp.org>
9502
9503         * modules/stpncpy (License): Relicense under LGPLv2+.
9504         Reported by David Lutterkort <lutter@redhat.com>.
9505
9506 2009-10-20  Eric Blake  <ebb9@byu.net>
9507
9508         utimensat: work around Solaris 9 bug
9509         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
9510         has trailing slash bugs.
9511         * tests/test-lutimens.h (test_lutimens): Enhance test.
9512         * tests/test-utimens.h (test_utimens): Likewise.
9513         * doc/posix-functions/utime.texi (utime): Enhance documentation.
9514         * doc/posix-functions/utimes.texi (utimes): Likewise.
9515         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9516         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
9517         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
9518         * doc/posix-functions/futimens.texi (futimens): Likewise.
9519
9520         fdutimensat: new module
9521         * modules/fdutimensat: New file.
9522         * lib/fdutimensat.c (fdutimensat): Likewise.
9523         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
9524         * MODULES.html.sh (File system functions): Mention module.
9525         * modules/fdutimensat-tests: New test.
9526         * tests/test-fdutimensat.c: Likewise.
9527
9528         doc: regenerate INSTALL
9529         * doc/INSTALL: Reflect recent autoconf update.
9530         * doc/INSTALL.ISO: Likewise.
9531         * doc/INSTALL.UTF-8: Likewise.
9532
9533 2009-10-20  Pádraig Brady  <P@draigBrady.com>
9534
9535         acl: warn if ACL support is not detected
9536         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
9537
9538 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
9539
9540         * lib/nproc.h: Add extern "C" block for C++.
9541
9542 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
9543             Bruno Haible  <bruno@clisp.org>
9544
9545         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
9546         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
9547         * doc/posix-functions/isalpha.texi: Likewise.
9548         * doc/posix-functions/isblank.texi: Likewise.
9549         * doc/posix-functions/iscntrl.texi: Likewise.
9550         * doc/posix-functions/isdigit.texi: Likewise.
9551         * doc/posix-functions/isgraph.texi: Likewise.
9552         * doc/posix-functions/islower.texi: Likewise.
9553         * doc/posix-functions/isprint.texi: Likewise.
9554         * doc/posix-functions/ispunct.texi: Likewise.
9555         * doc/posix-functions/isspace.texi: Likewise.
9556         * doc/posix-functions/isupper.texi: Likewise.
9557         * doc/posix-functions/isxdigit.texi: Likewise.
9558
9559 2009-10-18  Bruno Haible  <bruno@clisp.org>
9560
9561         Tests for module 'isblank'.
9562         * modules/isblank-tests: New file.
9563         * tests/test-isblank.c: New file.
9564
9565         New module 'isblank'.
9566         * lib/isblank.c: New file.
9567         * m4/isblank.m4: New file.
9568         * modules/isblank: New file.
9569         * doc/posix-functions/isblank.texi: Mention the new module.
9570
9571 2009-10-18  Bruno Haible  <bruno@clisp.org>
9572
9573         New module 'ctype'.
9574         * lib/ctype.in.h: New file.
9575         * m4/ctype.m4: New file.
9576         * modules/ctype: New file.
9577         * doc/posix-headers/ctype.texi: Mention the new module.
9578
9579 2009-10-18  Jim Meyering  <meyering@redhat.com>
9580
9581         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
9582         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
9583         right after its initialization, rather than farther down.
9584         Keeping these in close proximity makes it easier to ensure
9585         that each such variable is initialized.  E.g.,
9586
9587             LIB_CLOCK_GETTIME=
9588             AC_SUBST([LIB_CLOCK_GETTIME])
9589
9590         This change also increments these serial numbers.
9591         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
9592         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
9593         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9594
9595 2009-10-18  Bruno Haible  <bruno@clisp.org>
9596
9597         Don't let environment variables perturb build.
9598         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
9599         (gl_PREREQ_GETHRXTIME): ... not here.
9600
9601 2009-10-18  Bruno Haible  <bruno@clisp.org>
9602
9603         Avoid symlink attack in localcharset module.
9604         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
9605         (O_NOFOLLOW): Define fallback.
9606         (get_charset_aliases): Don't open the file if it is a symbolic link.
9607         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
9608         gl_FCNTL_H.
9609         (gl_FCNTL_H): Require it.
9610         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
9611         * modules/localcharset (Files): Add m4/fcntl_h.m4.
9612         Reported by Fergal Glynn <fglynn@veracode.com>.
9613
9614 2009-10-18  Bruno Haible  <bruno@clisp.org>
9615
9616         Implement nproc for mingw.
9617         * lib/nproc.c: Include <windows.h>
9618         (num_processors): On native Windows platforms, try GetSystemInfo.
9619
9620 2009-10-18  Bruno Haible  <bruno@clisp.org>
9621
9622         Implement nproc for IRIX.
9623         * lib/nproc.c: Include <sys/sysmp.h>.
9624         (num_processors): On IRIX systems, try sysmp.
9625         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
9626
9627 2009-10-18  Bruno Haible  <bruno@clisp.org>
9628
9629         Implement nproc for HP-UX.
9630         * lib/nproc.c: Include <sys/pstat.h>
9631         (num_processors): On HP-UX systems, try pstat_getdynamic.
9632         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
9633         pstat_getdynamic.
9634
9635 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
9636             Bruno Haible  <bruno@clisp.org>
9637
9638         Implement nproc for NetBSD, OpenBSD.
9639         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
9640         (ARRAY_SIZE): New macro.
9641         (num_processors): On BSD systems, try sysctl of HW_NCPU.
9642         * m4/nproc.m4: New file.
9643         * modules/nproc (Files): Add m4/nproc.m4.
9644         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
9645         (Makefile.am): Instead, augment lib_SOURCES.
9646
9647 2009-10-18  Bruno Haible  <bruno@clisp.org>
9648
9649         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
9650         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
9651         sys/param.h.
9652
9653 2009-10-16  Eric Blake  <ebb9@byu.net>
9654
9655         utimensat: new module
9656         * modules/utimensat: New file.
9657         * lib/utimensat.c (utimensat): Likewise.
9658         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
9659         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
9660         so we can work around Linux bugs.
9661         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9662         * modules/sys_stat (Makefile.am): Substitute them.
9663         * lib/sys_stat.in.h (utimensat): Declare it.
9664         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9665         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9666         * modules/utimensat-tests: New test.
9667         * tests/test-utimensat.c: Likewise.
9668
9669         utimens: let lutimens work on non-symlinks
9670         * lib/utimens.c (lutimens): Fall back to utimens rather than
9671         failing with ENOSYS, when file is not a symlink.
9672         (utimens): Reduce redirection.
9673         * tests/test-lutimens.h (test_lutimens): Update test to cover
9674         non-symlinks.
9675         * tests/test-utimens.h (test_utimens): Update test to cover
9676         symlinks.
9677         * tests/test-utimens.c (main): Update caller.
9678
9679         utimens: cache whether utimensat syscall works
9680         * lib/utimens.c (utimensat_works_really): New cache variable.
9681         (fdutimens, lutimens): Use it to avoid failing syscall.
9682
9683         test-stat-time, test-utimens: improve portability
9684         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
9685         ext4 on alpha, and for cygwin.
9686         * tests/test-utimens-common.h: New file.
9687         (nap): Factor delays into single function.
9688         * tests/test-lutimens.h (test_lutimens): Use new header.
9689         * tests/test-futimens.h (test_futimens): Likewise.
9690         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
9691         timestamps to occur from same machine, as was done previously for
9692         test_utimens.
9693         * modules/utimens-tests (Files): Ship new file.
9694         * modules/futimens-tests (Files): Likewise.
9695         Reported in part by Jim Meyering.
9696
9697         sys_stat: sort replacement declarations
9698         * lib/sys_stat.in.h: Sort declarations.
9699         * lib/futimens.c (futimens): Fix typo.
9700
9701 2009-10-15  Jim Meyering  <meyering@redhat.com>
9702
9703         don't let environment settings perturb build
9704         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
9705         could cause a configure-time and/or build-time malfunction.
9706         Typically, a configure-time function-in-library test is performed
9707         via code like this:
9708
9709           LIB_VAR=
9710           AC_SUBST([LIB_VAR])
9711           prefix_saved_LIBS=$LIBS
9712             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
9713                        [test "$ac_cv_search_FUNC" = "none required" ||
9714                         LIB_VAR=$ac_cv_search_FUNC])
9715           LIBS=$prefix_saved_LIBS
9716
9717         However, in each of the files affected by this change, the LIB_VAR=
9718         initialization was omitted.  Thus, when set in the environment, its
9719         value would propagate into generated Makefiles when FUNC is not found
9720         in LIB_NAME.
9721         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
9722         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
9723         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9724
9725 2009-10-14  Eric Blake  <ebb9@byu.net>
9726
9727         fchdir: avoid infinite recursion in mingw
9728         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
9729         recursing.
9730
9731         test-stat-time: port to mingw
9732         * tests/test-stat-time.c (force_unlink): Return a value.
9733         (test_ctime) [W32]: Fix compilation error.
9734         (nap): Don't call usleep with too large an argument.  Use
9735         force_unlink.
9736         * doc/pastposix-functions/usleep.texi (usleep): Document the
9737         portability issue.
9738
9739 2009-10-13  Jim Meyering  <meyering@redhat.com>
9740
9741         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
9742         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
9743         * modules/pipe-filter-ii: Likewise.
9744         * modules/sys_socket-tests: Likewise.
9745         * modules/tsearch-tests: Likewise.
9746         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
9747         (check): Depend on it.
9748
9749 2009-10-12  Eric Blake  <ebb9@byu.net>
9750
9751         utimens-tests: port to NFS file systems
9752         * tests/test-utimens.h (test_utimens): Refactor utimecmp
9753         comparisons to avoid spurious failures from timestamp drift
9754         between NFS machines.
9755
9756 2009-10-12  Eric Blake  <ebb9@byu.net>
9757
9758         stat-time-tests: minor cleanups
9759         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
9760         * tests/test-stat-time.c (nap): Separate assignment from call.
9761         Suggested by Paolo Bonzini and Bruno Haible.
9762
9763         sys_stat: guarantee struct timespec
9764         * lib/sys_stat.in.h (includes): Always include <time.h>
9765         * modules/sys_stat (Depends-on): Add time.
9766         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
9767         mode_t permission values.
9768         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
9769         get at subsecond timestamps.
9770
9771 2009-10-10  Eric Blake  <ebb9@byu.net>
9772
9773         futimens: new module
9774         * modules/futimens: New file.
9775         * lib/futimens.c (futimens): Likewise.
9776         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
9777         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
9778         we can work around Linux bugs.
9779         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9780         * modules/sys_stat (Makefile.am): Substitute them.
9781         * lib/sys_stat.in.h (futimens): Declare it.
9782         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9783         * doc/posix-functions/futimens.texi (futimens): Likewise.
9784         * modules/futimens-tests: New test.
9785         * tests/test-futimens.c: Likewise.
9786
9787         utimens: introduce fdutimens
9788         * lib/utimens.h (fdutimens): New prototype.
9789         * lib/utimens.c (gl_futimens): Move guts...
9790         (fdutimens): ...to new interface.
9791         * tests/test-utimens.c (do_fdutimens): Use it.
9792
9793         utimens: add UTIME_NOW and UTIME_OMIT support
9794         * lib/utimens.c (validate_timespec, update_timespec): New helper
9795         functions.
9796         (gl_futimens, lutimens): Use them.
9797         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
9798         stdbool, sys_stat.
9799         (Link): Mention resulting library dependency.
9800         * modules/utimecmp (Link): Likewise.
9801         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
9802         (Makefile.am): Pick up library dependency.
9803         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
9804         definition.
9805         * tests/test-sys_stat.c: Test the definitions.
9806         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
9807         * NEWS: Document library dependency.
9808
9809         utimecmp: support symlink timestamps
9810         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
9811         hashing when possible.  Use pathconf when available.
9812         (SYSCALL_RESOLUTION): Recognize tighter resolution.
9813         * modules/utimecmp (Depends-on): Add lstat.
9814
9815         utimens: add lutimens interface
9816         * lib/utimens.c (lutimens): New function.
9817         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
9818         * lib/utimens.h (lutimens): Declare new interface.
9819         * tests/test-utimens.c (main): Enhance test.
9820         * tests/test-lutimens.h (test_lutimens): New file.
9821         * modules/utimens-tests (Files): Distribute it.
9822         (Depends-on): Add symlink.
9823         (configure.ac): Check for usleep.
9824
9825         utimens: validate futimens usage
9826         * lib/utimens.c (gl_futimens): Require valid fd up front, using
9827         fewer syscalls on failure later on.  Avoid compiler warning on
9828         mingw.
9829         * modules/utimens (Depends-on): Add dup2.
9830
9831         utimens: add test
9832         * modules/utimens-tests: New test.
9833         * tests/test-utimens.h: New file.
9834         * tests/test-futimens.h: Likewise.
9835         * tests/test-utimens.c: Likewise.
9836
9837         doc: mention timestamp portability issues
9838         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
9839         instead.
9840         * doc/posix-functions/utime.texi (utime): Likewise.
9841         * doc/posix-functions/utimes.texi (utimes): Likewise.
9842         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
9843         instead.
9844         * doc/posix-functions/futimens.texi (futimens): Mention utimens
9845         module.
9846         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9847         Mention weakness with symlink timestamps.
9848         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
9849         to utimensat/futimens instead.
9850         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
9851
9852         test-dup2: enhance test
9853         * tests/test-dup2.c (main): Also check AT_FDCWD.
9854
9855         test-stat-time: avoid more spurious failures
9856         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
9857         xfs; and avoid race if the two timestamps cross quantization edge.
9858
9859         relocatable: prefer 'file system' over 'filesystem'
9860         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
9861         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
9862         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
9863         * doc/relocatable.texi (Enabling Relocatability): Likewise.
9864         * lib/relocatable.c (compute_curr_prefix): Likewise.
9865
9866 2009-10-10  Jim Meyering  <meyering@redhat.com>
9867
9868         stat-time-tests: check for the usleep function
9869         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
9870
9871 2009-10-10  Bruno Haible  <bruno@clisp.org>
9872
9873         * modules/xnanosleep: Put the Link section after the Include section.
9874
9875 2009-10-09  Eric Blake  <ebb9@byu.net>
9876
9877         dup2: work around FreeBSD 6.1 bug
9878         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
9879         * doc/posix-functions/dup2.texi (dup2): Document it.
9880         Reported by Nelson H. F. Beebe and Jim Meyering.
9881
9882         test-stat-time: port to buggy NFS clients
9883         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
9884         (test_ctime): Also skip test if mtime and ctime are skewed.
9885
9886         maint: prefer 'file system' over 'filesystem'
9887         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
9888         * doc/posix-functions/lstat.texi (lstat): Likewise.
9889         * lib/file-has-acl.c (file_has_acl): Likewise.
9890         * lib/fwriteerror.c [TEST]: Likewise.
9891         * tests/test-areadlink.h (test_areadlink): Likewise.
9892         * tests/test-areadlinkat-with-size.c (main): Likewise.
9893         * tests/test-areadlinkat.c (main): Likewise.
9894         * tests/test-canonicalize-lgpl.c (main): Likewise.
9895         * tests/test-canonicalize.c (main): Likewise.
9896         * tests/test-fstatat.c (main): Likewise.
9897         * tests/test-linkat.c (main): Likewise.
9898         * tests/test-lstat.h (test_lstat_func): Likewise.
9899         * tests/test-mkdir.h (test_mkdir): Likewise.
9900         * tests/test-readlink.h (test_readlink): Likewise.
9901         * tests/test-remove.c (main): Likewise.
9902         * tests/test-rename.h (test_rename): Likewise.
9903         * tests/test-renameat.c (main): Likewise.
9904         * tests/test-rmdir.h (test_rmdir_func): Likewise.
9905         * tests/test-symlink.h (test_symlink): Likewise.
9906         * tests/test-symlinkat.c (main): Likewise.
9907         * tests/test-unlink.h (test_unlink_func): Likewise.
9908         * tests/test-unlinkat.c (main): Likewise.
9909
9910         maint: make realtime library usage explicit
9911         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
9912         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
9913         * modules/settime (Link): Likewise.
9914         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
9915
9916         test-stat-time: speed up execution
9917         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
9918         warning on mingw.
9919         (nap): New helper function.
9920         (prepare_test): Use it to reduce sleep time.
9921         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
9922         execution.
9923         * modules/stat-time-tests (configure.ac): Check for usleep.
9924
9925 2009-10-09  Jim Meyering  <meyering@redhat.com>
9926
9927         selinux-h: always use getfilecon wrappers
9928         * lib/getfilecon.c: New file.
9929         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
9930         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
9931         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
9932         (fgetfilecon): Provide a stub.
9933         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
9934         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
9935         file unconditionally.
9936         When <selinux/selinux.h> is found, arrange to use wrappers.
9937         * modules/selinux-h (Files): Add getfilecon.c.
9938         (Makefile.am): Substitute include-next-related bits
9939         into the now-always-generated selinux/selinux.h file.
9940         * doc/glibc-functions/lgetfilecon.texi: New file.
9941         * doc/glibc-functions/fgetfilecon.texi: New file.
9942         * doc/glibc-functions/getfilecon.texi: New file.
9943         * doc/glibc-functions/getfilecon-desc.texi: New file.
9944         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
9945         which to pull in the new files.
9946         * MODULES.html.sh (Misc): Add selinux-h.
9947
9948 2009-10-08  Jim Meyering  <meyering@redhat.com>
9949
9950         unistd: fix comment typo
9951         * lib/unistd.in.h (euidaccess): Fix a comment typo.
9952
9953 2009-10-08  Eric Blake  <ebb9@byu.net>
9954
9955         areadlink: use SIZE_MAX consistently
9956         * modules/areadlink (Depends-on): Add stdint.
9957         * modules/areadlink-with-size (Depends-on): Likewise.
9958         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
9959         gives NULL; drop sys/types, since unistd gives size_t; and add
9960         stdint for SIZE_MAX.
9961         (SIZE_MAX): Rely on headers.
9962         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
9963         and add stdint.
9964         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
9965         (SIZE_MAX): Likewise.
9966         (INITIAL_BUF_SIZE): Turn into enum.
9967         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
9968
9969 2009-10-08  Jim Meyering  <meyering@redhat.com>
9970
9971         areadlinkat: avoid compilation failure
9972         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
9973         Fix typo in comment.
9974
9975 2009-10-07  Eric Blake  <ebb9@byu.net>
9976
9977         areadlinkat-with-size: new module
9978         * modules/areadlinkat-with-size: New module.
9979         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
9980         * lib/areadlink.h (areadlinkat): Declare it.
9981         * MODULES.html.sh (File system functions): Mention it.
9982         * modules/areadlinkat-with-size-tests: New test.
9983         * tests/test-areadlinkat-with-size.c: New file.
9984
9985         xreadlinkat: new module
9986         * modules/xreadlinkat: New module.
9987         * lib/xreadlinkat.c (xreadlinkat): New file.
9988         * lib/xreadlink.h (xreadlinkat): Declare it.
9989         * MODULES.html.sh (File system functions): Mention it.
9990
9991         areadlinkat: new module
9992         * lib/at-func.c (FUNC_FAIL): New define.
9993         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
9994         * modules/areadlinkat: New module.
9995         * lib/linkat.c (areadlinkat): Move...
9996         * lib/areadlinkat.c (areadlinkat): ...to new file.
9997         * lib/areadlink.h (areadlinkat): Declare it.
9998         * modules/linkat (Depends-on): Add areadlinkat.
9999         * MODULES.html.sh (File system functions): Mention it.
10000         * modules/areadlinkat-tests: New test.
10001         * tests/test-areadlinkat.c: New file.
10002
10003         areadlink, areadlink-with-size: add tests
10004         * modules/areadlink-tests: New test.
10005         * modules/areadlink-with-size-tests: Likewise.
10006         * tests/test-areadlink.h: New file.
10007         * tests/test-areadlink.c: Likewise.
10008         * tests/test-areadlink-with-size.c: Likewise.
10009
10010         maint: minor cleanups
10011         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
10012         _UNUSED_PARAMETER_ instead.
10013         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
10014         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
10015         * modules/linkat-tests (Files): Distribute test-link.h.
10016
10017         openat, utimens: whitespace cleanup
10018         * lib/openat.c: Prefer space throughout, rather than mix of 8
10019         spaces vs. tabs.
10020         * lib/at-func.c: Likewise.
10021         * lib/utimens.c: Likewise.
10022
10023         openat: avoid using wrong fd
10024         * lib/openat.c (openat_permissive): Reject user's fd if saving the
10025         working directory chooses same fd.
10026         * lib/at-func.c (AT_FUNC_NAME): Likewise.
10027
10028         mkdir, mkdirat: fix cygwin 1.5.x bug
10029         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
10030         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
10031         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
10032         bug.
10033         (gl_PREREQ_MKDIR): Delete unused macro.
10034         * modules/mkdir (Files): Track file rename.
10035         (configure.ac): Update macro name.
10036         * modules/openat (Depends-on): Add mkdir.
10037         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
10038
10039         mkdir, mkdirat: add tests
10040         * modules/mkdir-tests: New test.
10041         * tests/test-mkdir.h: New file.
10042         * tests/test-mkdir.c: Likewise.
10043         * tests/test-mkdirat.c: Likewise.
10044         * modules/openat-tests (Files): Add new files.
10045         (Makefile.am): Run new test.
10046
10047 2009-10-06  Eric Blake  <ebb9@byu.net>
10048
10049         doc: tweak *at function documentation
10050         * doc/posix-functions/faccessat.texi (faccessat): Mention
10051         known issue with replacement.
10052         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
10053         * doc/posix-functions/linkat.texi (linkat): Likewise.
10054         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
10055         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
10056         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10057         * doc/posix-functions/renameat.texi (renameat): Likewise.
10058         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
10059
10060         openat: fix GNU/Hurd bug in unlinkat
10061         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
10062         broken.
10063         * doc/posix-functions/unlink.texi (unlink): Document this.
10064         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
10065
10066         fdopendir: fix GNU/Hurd bug
10067         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
10068         allowing non-directory fds.
10069         * lib/fdopendir.c (rpl_fdopendir): Work around it.
10070         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
10071         * modules/dirent (Makefile.am): Substitute it.
10072         * lib/dirent.in.h (fdopendir): Declare replacement.
10073         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
10074         * tests/test-fdopendir.c (main): Test something other than
10075         /dev/null, since on Hurd that behaves like a directory.
10076
10077         test-symlink: port to GNU/Hurd
10078         * tests/test-symlink.h (test_symlink): Relax expected errno.
10079
10080         doc: tweak more cygwin information
10081         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
10082         now compatible with glibc.
10083         * doc/posix-functions/getopt.texi (getopt): Likewise.
10084
10085         getopt-gnu: add another test
10086         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
10087         guarantee behavior relied on by m4.
10088         * tests/test-getopt.c (main): Use it.
10089         * modules/getopt-posix-tests (Depends-on): Add setenv.
10090         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
10091
10092         getopt: fix compilation on darwin
10093         * lib/getopt.in.h (includes): Leave breadcrumbs during system
10094         include.
10095         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
10096         Reported by Ludovic Courtès.
10097
10098 2009-10-06  Bruno Haible  <bruno@clisp.org>
10099
10100         * modules/size_max (Description): Discourage its use.
10101         Reported by Simon Josefsson.
10102
10103 2009-10-06  Jim Meyering  <meyering@redhat.com>
10104
10105         linkat: avoid compilation failure
10106         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
10107
10108 2009-10-05  Eric Blake  <ebb9@byu.net>
10109
10110         linkat: support Linux 2.6.17
10111         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
10112         linkat on Linux, but allow cache variable override.
10113         * lib/linkat.c (rpl_linkat): Define override.
10114         * modules/linkat (Depends-on): Add symlinkat.
10115         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
10116         * modules/unistd (Makefile.am): Substitute it.
10117         * lib/unistd.in.h (linkat): Declare replacement.
10118         Reported by Pádraig Brady.
10119
10120         quotearg: port test to systems with C.UTF-8 locale
10121         * tests/test-quotearg.c (struct result_strings): Add another
10122         member, differentiating between C.ASCII and C.UTF-8 handling.
10123         (compare_strings): Add parameter.
10124         (main): Adjust all callers.
10125
10126         getopt: avoid clash with FreeBSD _getopt_internal
10127         * lib/getopt.in.h (_getopt_internal): Override the name.
10128         * lib/getopt_int.h (includes): Pick up any overrides.
10129         Reported by Reuben Thomas.
10130
10131         hash: allow C89 compilation
10132         * lib/hash.c (check_tuning): Move declaration before statement.
10133         Reported by Reuben Thomas.
10134
10135 2009-10-05  Karl Berry  <karl@gnu.org>
10136
10137         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
10138
10139 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
10140             Bruno Haible  <bruno@clisp.org>
10141
10142         * lib/uname.c (uname): Use a table-driven algorithm to compute
10143         Windows NT versions.
10144
10145 2009-10-04  Bruno Haible  <bruno@clisp.org>
10146
10147         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
10148         program_invocation_short_name.
10149         * modules/progname (configure.ac): Test for presence of
10150         program_invocation_short_name.
10151         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
10152
10153 2009-10-04  Bruno Haible  <bruno@clisp.org>
10154
10155         * lib/progname.c (set_program_name): Fix comment.
10156         Reported by Jim Meyering.
10157
10158 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
10159             Bruno Haible  <bruno@clisp.org>
10160
10161         * lib/uname.c: Include <string.h>.
10162         (uname): Do only one call to GetVersionEx in the common case.
10163
10164 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
10165             Bruno Haible  <bruno@clisp.org>
10166
10167         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
10168         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
10169         (uname): Add support for Windows CE and various non-x86 CPU types.
10170
10171 2009-10-03  Bruno Haible  <bruno@clisp.org>
10172
10173         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
10174         invocation to tests/configure.ac.
10175         Reported by Ian Beckwith <ianb@erislabs.net>.
10176
10177 2009-10-02  Eric Blake  <ebb9@byu.net>
10178
10179         fchdir: avoid compiler warning
10180         * lib/fchdir.c (canonicalize_file_name)
10181         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
10182
10183         test-open: support mingw errno values
10184         * tests/test-open.h (test_open): Relax test.
10185         * tests/test-fopen.h (test_fopen): Likewise.
10186         * tests/test-openat-safer.c (main): Likewise.
10187
10188         open: fix opening directory on mingw
10189         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
10190
10191         test-open: on GNU/Hurd, /dev/null is a directory
10192         * tests/test-fopen.h (main): Rename...
10193         (test_fopen): ...to this.  Use a guaranteed non-directory when
10194         confirming open behavior on trailing slash.
10195         * tests/test-openat-safer.c (main): Likewise.
10196         * tests/test-open.h (main): Likewise....
10197         (test_open): ...to this.
10198         * tests/test-fopen.c (main): Adjust caller.
10199         * tests/test-fopen-safer.c (main): Likewise.
10200         * tests/test-open.c (main): Likewise.
10201         * tests/test-fcntl-safer.c (main): Likewise.
10202         Reported by Samuel Thibault.
10203
10204         rename, fchdir: don't ignore chdir failure
10205         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
10206         * lib/rename.c (rpl_rename) [W32]: Likewise.
10207         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
10208         an empty destination directory if source cannot be renamed,
10209         although there is still possibility for failure.
10210         * doc/posix-functions/rename.texi (rename): Document the race.
10211         Reported by Jim Meyering.
10212
10213         maint: cleanup whitespace in recent commits
10214         * lib/rename.c (rpl_rename): Remove tabs.
10215         * tests/test-link.h (test_link): Likewise.
10216         * lib/fchdir.c (get_name): Likewise.
10217         Reported by Jim Meyering.
10218
10219 2009-10-02  Ben Pfaff  <blp@gnu.org>
10220
10221         relocatable-prog-wrapper: Add missing dependency on
10222         double-slash-root.
10223         * modules/relocatable-prog-wrapper: Add dependency.
10224         Reported by Ian Beckwith <ianb@erislabs.net>.
10225
10226 2009-10-02  Eric Blake  <ebb9@byu.net>
10227
10228         renameat: fix Solaris bugs
10229         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
10230         needed fixing.
10231         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
10232         * modules/stdio (Makefile.am): Substitute it.
10233         * lib/stdio.in.h (renameat): Declare replacement.
10234         * lib/renameat.c (rpl_renameat): Implement fix.
10235
10236         renameat: new module
10237         * modules/renameat: New file.
10238         * lib/renameat.c (renameat): Likewise.
10239         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
10240         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
10241         * modules/stdio (Makefile.am): Substitute them.
10242         * lib/stdio.in.h (renameat): Declare it.
10243         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10244         * doc/posix-functions/renameat.texi (renameat): Likewise.
10245         * modules/renameat-tests: New test.
10246         * tests/test-renameat.c: Likewise.
10247
10248         rename: fix mingw bugs
10249         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
10250         directory overwrite bugs.
10251
10252         rename: fix another cygwin 1.5 bug
10253         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
10254         checks.
10255         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
10256         unnecessary cygwin workarounds.  Also work around bug with moving
10257         full directory onto an empty one.
10258         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
10259
10260         rename-dest-slash: merge into rename module
10261         * modules/rename-dest-slash (Status): Mark obsolete.
10262         (Depends-on): Add rename.
10263         (Files): Let rename do it all.
10264         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
10265         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
10266         * m4/rename-dest-slash.m4: ...so this file can be deleted.
10267         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
10268         * lib/rename.c (rpl_rename): Update comments.
10269
10270         rename: fix cygwin 1.5.x bugs
10271         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
10272         * lib/rename.c (rpl_rename): Work around them.
10273         * modules/rename (Depends-on): Add same-inode.
10274
10275         rename: fix Solaris 10 bug
10276         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
10277         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
10278         was the only bug.
10279
10280         rename: fix Solaris 9 bug
10281         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
10282         on non-directory.  Avoid calling exit.
10283         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
10284         strdup.
10285         * modules/rename-tests (Depends-on): Drop lstat.
10286         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
10287         (gl_PREREQ_RENAME): Delete unused macro.
10288
10289         rename-dest-slash: fix NetBSD bug
10290         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
10291         links.
10292         * modules/rename-dest-slash (Depends-on): Add same-inode.
10293
10294         rename-tests: new test, exposes several platform bugs
10295         * modules/rename-tests: New file.
10296         * tests/test-rename.h: Likewise.
10297         * tests/test-rename.c: Likewise.
10298         * doc/posix-functions/rename.texi (rename): Improve documentation,
10299         including bugs that will eventually be fixed in gnulib.
10300
10301 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
10302
10303         * lib/uname.c: Include <stdlib.h>
10304         (uname): Assume version info is available.
10305
10306 2009-10-02  Jim Meyering  <meyering@redhat.com>
10307
10308         gnu-web-doc-update: correct --help output
10309         * build-aux/gnu-web-doc-update: Make --help output relevant.
10310
10311         gnu-web-doc-update: add standard options
10312         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
10313
10314         gnu-web-doc-update: New module.
10315         Use this script to automatically update the on-line web documentation
10316         for your GNU project at http://www.gnu.org/software/$pkg/manual/
10317         * modules/gnu-web-doc-update: New file, from coreutils.
10318         * build-aux/gnu-web-doc-update: New script.
10319
10320 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
10321
10322         link: LoadLibrary is not needed.
10323         * lib/link.c: Use GetModuleHandle.
10324
10325 2009-10-01  Eric Blake  <ebb9@byu.net>
10326
10327         getopt: bump serial number
10328         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
10329         change.
10330
10331         tests: tighten link, rmdir, and remove tests
10332         * tests/test-link.h (includes): No need to use <config.h> here.
10333         Clean up if directory hard link was created, otherwise test for
10334         trailing '.'.
10335         * tests/test-linkat.c (main): Simplify.
10336         * tests/test-remove.c (main): Enhance test for trailing '.'.
10337         * tests/test-rmdir.h (test_rmdir_func): Likewise.
10338
10339 2009-10-01  Jim Meyering  <meyering@redhat.com>
10340
10341         maint.mk: requiring "make major" was annoying, for a "minor" release.
10342         What is intended is "stable", to contrast with alpha and beta,
10343         so require "make stable", not "make major".
10344         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
10345         (get_tool_versions): Likewise.
10346         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
10347
10348 2009-09-30  Ben Pfaff  <blp@gnu.org>
10349
10350         Fix broken build of replacement for Windows tmpfile().
10351         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
10352         flags argument added along with the 'mkostemp' module.
10353
10354 2009-09-28  Bruno Haible  <bruno@clisp.org>
10355
10356         Avoid identifier clash with POSIX function 'remove' defined as a macro.
10357         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
10358         to 'remove_elt'.
10359         (gl_list_remove): Update.
10360         * lib/gl_list.c (gl_list_remove): Update.
10361         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
10362         to 'remove_elt'.
10363         (gl_oset_remove): Update.
10364         * lib/gl_list.c (gl_oset_remove): Update.
10365         Reported by Eric Blake.
10366
10367 2009-09-28  Eric Blake  <ebb9@byu.net>
10368
10369         doc: mention yet more cygwin 1.7 status
10370         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
10371         cygwin.
10372         * doc/glibc-functions/execvpe.texi (execvpe): New file.
10373         * doc/gnulib.texi (Glibc unistd.h): Mention it.
10374
10375         argp: fix test failure
10376         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
10377         that are not upper-case.  Pass correct range to tolower.
10378
10379 2009-09-27  Jim Meyering  <meyering@redhat.com>
10380
10381         test-yesno: work around sparc-dash here-document infelicity
10382         Without this change, the literal \177 byte in a here document
10383         would make dash 0.5.5.1-3 access uninitialized memory.
10384         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
10385         Instead, use a marker, "@", and filter through tr to create the desired
10386         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
10387
10388 2009-09-27  Bruno Haible  <bruno@clisp.org>
10389
10390         Disable untested support for new flavours of ACLs on AIX.
10391         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
10392         progress.
10393         * lib/set-mode-acl.c (qset_acl): Likewise.
10394
10395 2008-12-07  Bruno Haible  <bruno@clisp.org>
10396
10397         Add support for new flavours of ACLs on AIX. (Untested.)
10398         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
10399         (file_has_acl): Add support for newer AIX.
10400         * lib/set-mode-acl.c (qset_acl): Likewise.
10401         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
10402         Rainer Tammer <tammer@tammer.net>.
10403
10404 2009-09-26  Eric Blake  <ebb9@byu.net>
10405
10406         argp: fix compilation of getopt
10407         * lib/getopt.in.h (includes): Use different guard than glibc.
10408         Reported by Sergey Poznyakoff.
10409
10410         doc: mention more cygwin 1.7 status
10411         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
10412         bug.
10413         * doc/posix-functions/execl.texi (execl): Likewise.
10414         * doc/posix-functions/execle.texi (execle): Likewise.
10415         * doc/posix-functions/execlp.texi (execlp): Likewise.
10416         * doc/posix-functions/execv.texi (execv): Likewise.
10417         * doc/posix-functions/execve.texi (execve): Likewise.
10418         * doc/posix-functions/execvp.texi (execvp): Likewise.
10419         * doc/glibc-functions/canonicalize_file_name.texi
10420         (canonicalize_file_name): Cygwin 1.7 now provides this.
10421         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
10422         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
10423         on AT_SYMLINK_NOFOLLOW.
10424
10425 2009-09-24  Eric Blake  <ebb9@byu.net>
10426
10427         test-linkat: make test more robust
10428         * tests/test-linkat.c (main): Avoid collision with EEXIST.
10429
10430         getopt: fix inclusion guards for cygwin
10431         * modules/getopt-posix (Depends-on): Add include-next.
10432         (Makefile.am): Substitute more items in replacement header.
10433         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
10434         <getopt.h>.
10435         * lib/getopt.in.h (includes): Use split inclusion guard, and
10436         prefer <getopt.h> over include <unistd.h> when one is present.
10437         (option): Also override name of 'struct option'.
10438
10439         same-inode: revert prior change; it is not yet ready
10440         * NEWS: Undo mention of this change.
10441         * lib/same-inode.h (same-inode.h): Undo tri-state change.
10442         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
10443         * lib/cycle-check.c (cycle_check): Likewise.
10444         * lib/same.c (same_name): Likewise.
10445         * lib/at-func2.c (at_func2): Likewise.
10446
10447 2009-09-23  Eric Blake  <ebb9@byu.net>
10448
10449         linkat: new module
10450         * modules/linkat: New file.
10451         * lib/at-func2.c (at_func2): Likewise.
10452         * lib/linkat.c (linkat): Likewise.
10453         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
10454         * lib/openat-priv.h (at_func2): Add declaration.
10455         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
10456         * modules/unistd (Makefile.am): Substitute them.
10457         * lib/unistd.in.h (linkat): Declare it.
10458         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10459         * doc/posix-functions/linkat.texi (linkat): Likewise.
10460         * doc/posix-functions/link.texi (link): Tweak wording.
10461         * tests/test-link.c (main): Move guts...
10462         * tests/test-link.h (test_link): ...into new file.
10463         * modules/linkat-tests: New test.
10464         * tests/test-linkat.c: Likewise.
10465         * modules/link-tests (Files): Ship new file.
10466         (Depends-on): Add stdbool.
10467
10468         dirname: add library-safe mdir_name
10469         * lib/dirname.h (mdir_name): New prototype.
10470         * lib/dirname.c (dir_name): Move guts...
10471         (mdir_name): ...to new function that avoids xalloc_die.
10472
10473         fchdir: another mingw fix
10474         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
10475         * lib/fchdir.c (get_name): New helper method; skips canonicalize
10476         on mingw (where it has not yet been ported), and make it optional
10477         elsewhere.
10478         (_gl_register_fd): Use it.
10479
10480         same-inode: make SAME_INODE tri-state, to port to mingw
10481         * NEWS: Mention this change.
10482         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
10483         st_ino always being 0.
10484         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
10485         * lib/cycle-check.c (cycle_check): Likewise.
10486         * lib/same.c (same_name): Likewise.
10487
10488         lstat: avoid mingw compilation error
10489         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
10490         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
10491         lstat ourselves.
10492         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
10493         was adequate.
10494         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
10495         the checks for lstat.
10496         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
10497
10498         link: fix test failure on Solaris 9
10499         * lib/link.c (rpl_link): Don't assume link will catch bogus
10500         trailing slash on source.
10501
10502         test-symlinkat: enhance test
10503         * tests/test-readlink.c (main): Move guts...
10504         * tests/test-readlink.h (test_readlink): ...into new file.
10505         * tests/test-symlink.c (main): Move guts...
10506         * tests/test-symlink.h (test_symlink): ...into new file.
10507         * tests/test-symlinkat.c (main): Use new files for further
10508         coverage.
10509         (do_symlink, do_readlink): New helper functions.
10510         * modules/symlink-tests (Files): Ship new file.
10511         (Depends-on): Add stdbool.
10512         * modules/readlink-tests (Files): Ship new file.
10513         (Depends-on): Add stdbool.
10514         * modules/symlinkat-tests (Files): Use new files.
10515
10516 2009-09-23  Eric Blake  <ebb9@byu.net>
10517
10518         readlink: document portability issue with symlink length
10519         * doc/posix-functions/lstat.texi (lstat): Mention that some file
10520         systems have bogus st_size on symlinks, and mention the
10521         areadlink-with-size module.
10522         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
10523         * doc/posix-functions/readlink.texi (readlink): Mention the
10524         areadlink module, and ERANGE failure.
10525         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10526         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
10527
10528         readlink: fix Solaris 9 bug with trailing slash
10529         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
10530         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
10531         * doc/posix-functions/readlink.texi (readlink): Document this.
10532         * modules/readlink-tests: New test.
10533         * tests/test-readlink.c: Likewise.
10534
10535         readlink: fix cygwin 1.5.x bug with return type
10536         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
10537         * lib/unistd.in.h (readlink): Use ssize_t.
10538         * lib/readlink.c (readlink): Likewise.
10539         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10540         * modules/unistd (Makefile.am): Substitute it.
10541         * lib/unistd.in.h (readlink): Declare replacement.
10542         * doc/posix-functions/readlink.texi (readlink): Document this.
10543
10544         symlink: use throughout gnulib
10545         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
10546         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
10547         symlink is not used.
10548         * modules/symlinkat (Depends-on): Add symlink.
10549         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
10550         * modules/canonicalize-tests (Depends-on): Likewise.
10551         * modules/lstat-tests (Depends-on): Likewise.
10552         * modules/openat-tests (Depends-on): Likewise.
10553         * modules/remove-tests (Depends-on): Likewise.
10554         * modules/rmdir-tests (Depends-on): Likewise.
10555         * modules/unlink-tests (Depends-on): Likewise.
10556         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
10557         * tests/test-canonicalize.c (symlink): Likewise.
10558         * tests/test-fstatat.c (symlink): Likewise.
10559         * tests/test-lstat.c (symlink): Likewise.
10560         * tests/test-remove.c (symlink): Likewise.
10561         * tests/test-rmdir.c (symlink): Likewise.
10562         * tests/test-unlink.c (symlink): Likewise.
10563         * tests/test-unlinkat.c (symlink): Likewise.
10564
10565         symlink: new module, for Solaris 9 bug
10566         * modules/symlink: New file.
10567         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
10568         * lib/symlink.c: Likewise.
10569         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
10570         * modules/unistd (Makefile.am): Substitute them.
10571         * lib/unistd.in.h (symlink): Declare replacement.
10572         * MODULES.html.sh (File system functions): Mention it.
10573         * doc/posix-functions/symlink.texi (symlink): Likewise.
10574         * modules/symlink-tests: New test.
10575         * tests/test-symlink.c: Likewise.
10576
10577 2009-09-23  Bruno Haible  <bruno@clisp.org>
10578
10579         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
10580         when needed.
10581         Test case: gnulib-tool --import --with-tests atexit inttypes.
10582         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
10583
10584 2009-09-23  Bruno Haible  <bruno@clisp.org>
10585
10586         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
10587         subcommand, not in a subshell.
10588
10589 2009-09-22  Eric Blake  <ebb9@byu.net>
10590
10591         unistd: sort replacement declarations
10592         * lib/unistd.in.h: Sort declarations.
10593
10594         open, openat: minor optimization
10595         * lib/open.c (open): If open succeeded, len is non-zero.
10596         * lib/openat.c (rpl_openat): Likewise.
10597
10598         link-follow: ensure correct result
10599         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
10600         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
10601         distinguish between possible failures.
10602
10603 2009-09-21  Eric Blake  <ebb9@byu.net>
10604
10605         fts: avoid compiler warning
10606         * lib/fts.c (dirent_inode_sort_may_be_useful)
10607         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
10608
10609 2009-09-19  Bruno Haible  <bruno@clisp.org>
10610
10611         * lib/progreloc.c (canonicalize_file_name): New declaration.
10612
10613 2009-09-19  Eric Blake  <ebb9@byu.net>
10614
10615         link: fix quoting
10616         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
10617
10618         openat: fix openat bugs on Solaris 9
10619         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
10620         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
10621         * modules/openat (Depends-on): Add open.
10622         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
10623         * modules/fcntl-h (Makefile.am): Substitute it.
10624         * lib/fcntl.in.h (openat): Declare replacement.
10625         * doc/posix-functions/openat.texi (openat): Document this.
10626
10627         openat: move fstatat and unlinkat into correct files
10628         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
10629         compiled.
10630         * lib/openat.c (fstatat, unlinkat): Move...
10631         * lib/fstatat.c (fstatat): ...into correct files.
10632         * lib/unlinkat.c (unlinkat): Likewise.
10633
10634         openat: fix unlinkat bugs on Solaris 9
10635         * lib/unlinkat.c (unlinkat): New file.
10636         * modules/openat (Depends-on): Add unlink.
10637         (Files): Distribute it.
10638         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
10639         trailing slash behavior is broken.
10640         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10641         * modules/unistd (Makefile.am): Substitute it.
10642         * lib/unistd.in.h (unlinkat): Declare replacement.
10643         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
10644
10645         openat: fix fstatat bugs on Solaris 9
10646         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
10647         stat.
10648         * doc/posix-functions/fstatat.texi (fstatat): Document this.
10649
10650         test-unlinkat: enhance test, to expose Solaris 9 bug
10651         * tests/test-unlink.c (main): Factor guts...
10652         * tests/test-unlink.h (test_rmdir_func): ...into new file.
10653         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
10654         * tests/test-rmdir.c (main): Adjust caller.
10655         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
10656         (unlinker): New helper function.
10657         (rmdirat): Enhance check.
10658         * modules/rmdir-tests (Depends-on): Add stdbool.
10659         * modules/unlink-tests (Depends-on): Likewise.
10660         (Files): Add test-unlink.h.
10661         * modules/openat-tests (Files): Likewise.
10662         (Depends-on): Add unlinkdir.
10663
10664         test-fstatat: new test, to expose Solaris 9 bugs
10665         * tests/test-stat.c (main): Factor guts...
10666         * tests/test-stat.h (test_stat_func): ...into new file.
10667         * tests/test-lstat.c (main): Factor guts...
10668         * tests/test-lstat.h (test_lstat_func): ...into new file.
10669         * tests/test-fstatat.c: New file.
10670         * modules/stat-tests (Files): Add test-stat.h.
10671         * modules/lstat-tests (Files): Add test-lstat.h.
10672         (Depends-on): Add stdbool.
10673         * modules/openat-tests (Depends-on): Add pathmax.
10674         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
10675         (Makefile.am): Run new test.
10676
10677         remove: new module, for mingw and Solaris 9 bugs
10678         * modules/remove: New file.
10679         * lib/remove.c: Likewise.
10680         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
10681         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
10682         * modules/stdio (Makefile.am): Use them.
10683         * lib/stdio.in.h (remove): Declare replacement.
10684         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10685         * doc/posix-functions/remove.texi (remove): Likewise.
10686         * modules/remove-tests: New test.
10687         * tests/test-remove.c: Likewise.
10688
10689         unlink: new module, for Solaris 9 bug
10690         * modules/unlink: New file.
10691         * lib/unlink.c: Likewise.
10692         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
10693         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
10694         * modules/unistd (Makefile.am): Use them.
10695         * lib/unistd.in.h (stat): Declare replacement.
10696         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10697         * doc/posix-functions/unlink.texi (unlink): Likewise.
10698         * modules/unlink-tests: New test.
10699         * tests/test-unlink.c: Likewise.
10700
10701         lstat: fix Solaris 9 bug
10702         * lib/lstat.c (lstat): Also check for trailing slash on
10703         non-symlink, non-directories.  Use stat module to simplify logic.
10704         * doc/posix-functions/lstat.texi (lstat): Document it.
10705         * modules/lstat-tests (Depends-on): Add errno, same-inode.
10706         (configure.ac): Check for symlink.
10707         * tests/test-lstat.c (main): Add more tests.
10708
10709         stat: add as dependency to other modules
10710         * modules/chown (Depends-on): Add stat.
10711         * modules/euidaccess (Depends-on): Likewise.
10712         * modules/fchdir (Depends-on): Likewise.
10713         * modules/isdir (Depends-on): Likewise.
10714         * modules/link (Depends-on): Likewise.
10715         * modules/lstat (Depends-on): Likewise.
10716         * modules/mkdir-p (Depends-on): Likewise.
10717         * modules/modechange (Depends-on): Likewise.
10718         * modules/open (Depends-on): Likewise.
10719         * modules/readlink (Depends-on): Likewise.
10720         * modules/same (Depends-on): Likewise.
10721
10722         stat: fix Solaris 9 bug
10723         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
10724         slash.
10725         * lib/stat.c (rpl_stat): Work around it.
10726         * doc/posix-functions/stat.texi (stat): Update documentation.
10727
10728         stat: new module, for mingw bug
10729         * modules/stat: New file.
10730         * lib/stat.c: Likewise.
10731         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
10732         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
10733         * modules/sys_stat (Makefile.am): Use them.
10734         * lib/sys_stat.in.h (stat): Declare replacement.
10735         * lib/openat.c (fstatat): Deal with lstat and stat being function
10736         macros.
10737         * modules/openat (Depends-on): Add inline.
10738         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10739         * doc/posix-functions/stat.texi (stat): Likewise.
10740         * modules/stat-tests: New test.
10741         * tests/test-stat.c: Likewise.
10742
10743 2009-09-19  Jim Meyering  <meyering@redhat.com>
10744
10745         syntax-check: detect unnecessary inclusion of canonicalize.h
10746         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
10747
10748 2009-09-19  Eric Blake  <ebb9@byu.net>
10749
10750         canonicalize-lgpl: adjust clients to use correct header
10751         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
10752         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
10753         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
10754         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
10755         * lib/progreloc.c (includes): Likewise.
10756
10757 2009-09-19  Jim Meyering  <meyering@redhat.com>
10758
10759         test-posixtm.c: correct a comment
10760         * tests/test-posixtm.c: Correct first-line comment.
10761         Spotted by Eric Blake.
10762
10763 2009-09-16  Jim Meyering  <meyering@redhat.com>
10764
10765         posixtm-tests: make T const-correct; add a test case
10766         * tests/test-posixtm.c (T): Declare const.
10767         Add a test for -(2^31+1).
10768         Remove useless can-succeed-only-in-2002 test.
10769
10770         posixtm-tests: adjust the sole failing test
10771         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
10772         expected output matches what mktime now produces.  Cross-checked via
10773         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
10774
10775         posixtm: move #ifdef'd tests into a new module
10776         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
10777         * tests/test-posixtm.c: ... this new file.
10778         * modules/posixtm-tests: New module.
10779
10780 2009-09-19  Eric Blake  <ebb9@byu.net>
10781
10782         openat: simplify use of at-func.c
10783         * lib/at-func.c (includes): Include prerequisites here, to
10784         simplify requirements on client files.
10785         * lib/openat-priv.h: Add double-inclusion guard.
10786         * lib/faccessat.c (includes): Simplify.
10787         * lib/fchmodat.c (includes): Likewise.
10788         * lib/fchownat.c (includes): Likewise.
10789         * lib/mkdirat.c (includes): Likewise.
10790         * lib/mkfifoat.c (includes): Likewise.
10791         * lib/symlinkat.c (includes): Likewise.
10792
10793         openat: allow return of fd 0
10794         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
10795         * modules/save-cwd (Depends-on): Replace fcntl-safer with
10796         unistd-safer.
10797         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
10798         <fcntl.h>; this module does not leak fds.
10799         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
10800         must be allowed to return 0, leaving openat_safer to add the
10801         safety.
10802         (openat_permissive): Avoid writing to just-opened fd 2 if
10803         restoring the current directory fails.
10804         * lib/openat-die.c (openat_restore_fail): Add comment.
10805         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
10806         (save_cwd): Guarantee safe fd, but without use of open_safer.
10807         * tests/test-openat.c: New test.
10808         * modules/openat-tests (Files, Makefile.am): Distribute and build
10809         new file.
10810
10811         relocatable-prog-wrapper: fix build
10812         * modules/relocatable-prog-wrapper (Files): Update name of
10813         canonicalize m4 file, broken on 2009-09-17.
10814         Reported by emad hajjar <aleppos@hotmail.com>.
10815
10816 2009-09-19  Bruno Haible  <bruno@clisp.org>
10817
10818         * lib/safe-alloc.h: Use the standard header with GPL copyright.
10819         * lib/safe-alloc.c: Likewise.
10820         Reported by Ian Beckwith <ianb@erislabs.net>.
10821
10822 2009-09-18  Bruno Haible  <bruno@clisp.org>
10823
10824         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
10825         Reported by <erobles@sensacd.com.mx>.
10826
10827 2009-09-17  Eric Blake  <ebb9@byu.net>
10828
10829         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
10830         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
10831         slashes when checking if last component is missing.
10832         * tests/test-canonicalize.c (main): Test this.
10833
10834         canonicalize, canonicalize-lgpl: honor // if distinct from /
10835         * modules/canonicalize (Files): Add double-slash-root.m4.
10836         * modules/canonicalize-lgpl (Files): Likewise.
10837         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
10838         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
10839         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
10840         fallback definition.
10841         (canonicalize_filename_mode): Use it to protect //.
10842         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
10843         (__realpath): Likewise.
10844         * tests/test-canonicalize.c (main): Test this.
10845         * tests/test-canonicalize-lgpl.c (main): Likewise.
10846         * modules/canonicalize-tests (Depends-on): Add same-inode.
10847         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
10848
10849         canonicalize-lgpl: fix glibc bug with trailing slash
10850         * m4/canonicalize-lgpl.m4: Move contents...
10851         * m4/canonicalize.m4: ...here.
10852         (gl_CANONICALIZE_LGPL): Factor realpath check...
10853         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
10854         glibc 2.3.5 bug, fixed 2005-04-27.
10855         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
10856         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
10857         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
10858         * modules/canonicalize-lgpl (Files): Manage file rename.
10859         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
10860         * modules/stdlib (Makefile.am): Substitute witness.
10861         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
10862         is needed.
10863         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
10864         replacement is required.
10865         * lib/canonicalize.c (canonicalize_file_name): Likewise.
10866         * doc/glibc-functions/canonicalize_file_name.texi
10867         (canonicalize_file_name): Document this.
10868         * doc/posix-functions/realpath.texi (realpath): Likewise.
10869
10870         canonicalize-lgpl: reject non-directory with trailing slash
10871         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
10872         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
10873         catches failures in glibc 2.3.5.
10874         * tests/test-canonicalize.c (main): Likewise.
10875
10876         canonicalize-lgpl: use native realpath if it works
10877         * lib/canonicalize-lgpl.c (realpath): Guard with
10878         FUNC_REALPATH_WORKS.
10879         * lib/stdlib.in.h (realpath): Make declaration optional based on
10880         HAVE_REALPATH.
10881         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
10882         native realpath works.
10883         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
10884         * modules/stdlib (Makefile.am): Substitute witness.
10885
10886         canonicalize, canonicalize-lgpl: use <stdlib.h>
10887         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
10888         (Include): Mention <stdlib.h>.
10889         (configure.ac): Mention functions we provide.
10890         * modules/canonicalize (configure.ac): Likewise.
10891         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
10892         realpath if canonicalize_file_name is missing.
10893         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
10894         * modules/stdlib (Makefile.am): Substitute witnesses.
10895         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
10896         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
10897         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
10898         * NEWS: Document this.
10899         * doc/glibc-functions/canonicalize_file_name.texi
10900         (canonicalize_file_name): Likewise.
10901         * doc/posix-functions/realpath.texi (realpath): Likewise.
10902         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
10903
10904         test-canonicalize: consolidate into single C program
10905         * tests/test-canonicalize.sh: Delete; move setup into...
10906         * tests/test-canonicalize.c (main): ...the program, making it
10907         easier to run in debugger.  Add some tests.
10908         * modules/canonicalize-tests (Files): Remove unused file.
10909         (Depends-on): Add progname.
10910         (configure.ac, Makefile.am): Simplify.
10911
10912         test-canonicalize-lgpl: consolidate into single C program
10913         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
10914         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
10915         easier to run in debugger.  Add some tests.
10916         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
10917         (configure.ac, Makefile.am): Simplify.
10918
10919         canonicalize: avoid resolvepath
10920         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
10921         unnecessary checks.
10922         * lib/canonicalize.c (includes): Simplify.
10923         (canonicalize_file_name): Drop resolvepath implementation.
10924         * modules/canonicalize (Depends-on): Drop filenamecat.
10925
10926         canonicalize: don't lose errno
10927         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
10928         over calls to free.
10929
10930         canonicalize: simplify errno handling
10931         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
10932         assignment.
10933
10934         canonicalize, canonicalize-lgpl: update module dependencies
10935         * modules/canonicalize (Depends-on): Add extensions, lstat,
10936         pathmax, stdlib.
10937         (Files): Drop pathmax.h.
10938         (configure.ac): Adjust macro name.
10939         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
10940         lstat, stdlib, sys_stat.
10941         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
10942         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
10943         extensions.
10944         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
10945         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
10946         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
10947         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
10948         declaration, if available.
10949         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
10950         we can rely on the readlink module.
10951         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
10952         (includes): Use <unistd.h> unconditionally.
10953
10954 2009-09-17  Eric Blake  <ebb9@byu.net>
10955
10956         maint: make Include sections of modules consistent
10957         * modules/alloca: Use only header name; no need to list #include.
10958         * modules/alloca-opt: Likewise.
10959         * modules/arpa_inet: Likewise.
10960         * modules/canon-host: Likewise.
10961         * modules/configmake: Likewise.
10962         * modules/dirent: Likewise.
10963         * modules/eealloc: Likewise.
10964         * modules/environ: Likewise.
10965         * modules/fchdir: Likewise.
10966         * modules/fcntl: Likewise.
10967         * modules/fcntl-h: Likewise.
10968         * modules/gethrxtime: Likewise.
10969         * modules/gettime: Likewise.
10970         * modules/ignore-value: Likewise.
10971         * modules/inet_ntop: Likewise.
10972         * modules/inet_pton: Likewise.
10973         * modules/inttypes: Likewise.
10974         * modules/isnand-nolibm: Likewise.
10975         * modules/isnanf-nolibm: Likewise.
10976         * modules/mbchar: Likewise.
10977         * modules/mbfile: Likewise.
10978         * modules/mbiter: Likewise.
10979         * modules/mbuiter: Likewise.
10980         * modules/netdb: Likewise.
10981         * modules/netinet_in: Likewise.
10982         * modules/nproc: Likewise.
10983         * modules/pagealign_alloc: Likewise.
10984         * modules/poll: Likewise.
10985         * modules/printf-frexp: Likewise.
10986         * modules/pthread: Likewise.
10987         * modules/putenv: Likewise.
10988         * modules/random_r: Likewise.
10989         * modules/relocatable-prog: Likewise.
10990         * modules/search: Likewise.
10991         * modules/select: Likewise.
10992         * modules/selinux-h: Likewise.
10993         * modules/settime: Likewise.
10994         * modules/signal: Likewise.
10995         * modules/size_max: Likewise.
10996         * modules/socklen: Likewise.
10997         * modules/ssize_t: Likewise.
10998         * modules/stdarg: Likewise.
10999         * modules/stdbool: Likewise.
11000         * modules/stddef: Likewise.
11001         * modules/stdint: Likewise.
11002         * modules/stdio: Likewise.
11003         * modules/stdlib: Likewise.
11004         * modules/string: Likewise.
11005         * modules/strings: Likewise.
11006         * modules/sys_file: Likewise.
11007         * modules/sys_ioctl: Likewise.
11008         * modules/sys_select: Likewise.
11009         * modules/sys_socket: Likewise.
11010         * modules/sys_stat: Likewise.
11011         * modules/sys_time: Likewise.
11012         * modules/sys_times: Likewise.
11013         * modules/sys_utsname: Likewise.
11014         * modules/sys_wait: Likewise.
11015         * modules/sysexits: Likewise.
11016         * modules/time: Likewise.
11017         * modules/times: Likewise.
11018         * modules/tmpfile: Likewise.
11019         * modules/trim: Likewise.
11020         * modules/unistd: Likewise.
11021         * modules/wchar: Likewise.
11022         * modules/wctype: Likewise.
11023
11024 2009-09-17  Bruno Haible  <bruno@clisp.org>
11025
11026         Make getdate.y compile on QNX and NetBSD 5 / i386.
11027         * m4/getdate.m4 (gl_GETDATE): Conditionally define
11028         TIME_T_FITS_IN_LONG_INT.
11029         * lib/getdate.y (long_time_t): New type.
11030         (relative_time): Change type of 'seconds' field to long_time_t.
11031         (get_date): Update types of local variables. Check against overflow
11032         during conversion from long_time_t to time_t.
11033         Reported by Matt Kraai <kraai@ftbfs.org>
11034         and Hasso Tepper <hasso@netbsd.org>.
11035
11036 2009-09-17  Bruno Haible  <bruno@clisp.org>
11037
11038         * modules/COPYING: Update copyright years.
11039         * modules/README: Likeiwse.
11040         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
11041         Reported by Ian Beckwith <ianb@erislabs.net>.
11042
11043 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
11044
11045         * users.txt: Update references for gnuit package.
11046
11047 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
11048
11049         * m4/getdelim.m4: Fix typo in copyright line.
11050
11051 2009-09-17  Bruno Haible  <bruno@clisp.org>
11052
11053         * lib/atoll.c: Use the standard header with GPL copyright.
11054         * lib/argz.in.h: Likewise.
11055         * lib/glob.c: Likewise.
11056         * lib/glob-libc.h: Likewise.
11057         * lib/random_r.c: Likewise.
11058         * lib/siglist.h: Likewise.
11059         * lib/strsignal.c: Likewise.
11060         Reported by Ian Beckwith <ianb@erislabs.net>.
11061
11062 2009-09-17  Eric Blake  <ebb9@byu.net>
11063
11064         rmdir: ensure correct dependency order
11065         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
11066
11067 2009-09-17  Bruno Haible  <bruno@clisp.org>
11068
11069         Disable assertion that fails on NetBSD 5 / i386.
11070         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
11071         Reported by Sam Steingold <sds@gnu.org>
11072         and Hasso Tepper <hasso@netbsd.org>.
11073
11074 2009-09-16  Eric Blake  <ebb9@byu.net>
11075
11076         unlinkdir: port to mingw
11077         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
11078         on which no one can unlink a directory.
11079
11080         stdlib: sort witness names
11081         * modules/stdlib (Makefile.am): Sort replacements.
11082         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
11083         * lib/stdlib.in.h: Likewise.
11084
11085         parse-duration-tests: avoid link failure
11086         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
11087         LIBINTL.
11088         Reported by Tom G. Christensen.
11089
11090         openat-tests: ensure unlinkat behaves like rmdir
11091         * tests/test-rmdir.c (main): Factor guts...
11092         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
11093         * modules/rmdir-tests (Files): Ship new file.
11094         * modules/openat-tests: New test.
11095         * tests/test-unlinkat.c: Likewise.
11096
11097         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
11098         * modules/rmdir-errno (Status, Notice): Now obsolete.
11099
11100         rmdir: work around cygwin 1.5.x and mingw bugs
11101         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
11102         * lib/rmdir.c (rmdir): Work around it.
11103         * modules/rmdir (Status, Notice): No longer obsolete.
11104         (Files): Add dos.m4.
11105         (Depends-on): Add unistd.
11106         (configure.ac): Set witnesses.
11107         (License): Relax to LGPLv2+.
11108         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
11109         * modules/unistd (Makefile.am): Substitute witnesses.
11110         * lib/unistd.in.h (rmdir): Declare replacement.
11111         * doc/posix-functions/rmdir.texi (rmdir): Document this.
11112         * modules/rmdir-tests: New tests.
11113         * tests/test-rmdir.c: Likewise.
11114
11115 2009-09-15  Eric Blake  <ebb9@byu.net>
11116
11117         fchdir: improve use of replacement functions
11118         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
11119         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
11120         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
11121         REPLACE_CLOSEDIR.
11122         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
11123         * modules/sys_stat (Makefile.am): Substitute correct witness.
11124         * modules/dirent (Makefile.am): Likewise.
11125         * modules/unistd (Makefile.am): Likewise.
11126         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
11127         * lib/unistd.in.h (dup): Likewise.
11128         * lib/sys_stat.in.h (fstat): Likewise.
11129
11130         maint: ignore gnulib-tool temp files
11131         * .gitignore: Ignore files created during gnulib-tool --test.
11132
11133 2009-09-13  Jim Meyering  <meyering@redhat.com>
11134
11135         posixtm: don't reject a time that specify "60" as the number of seconds
11136         * lib/posixtm.c (posixtime): The code to reject invalid dates
11137         would also reject a time specified with the .60 suffix.
11138         But POSIX allows that, in order to accommodate leap seconds.
11139         So don't reject it.
11140         (main): Adjust tests accordingly.
11141         * modules/posixtm (Depends-on): Add stpcpy.
11142
11143 2009-09-11  Jim Meyering  <meyering@redhat.com>
11144
11145         announce-gen: include [$release_type] in emitted Subject:
11146         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
11147         e.g., [stable] in the emitted Subject: line.
11148
11149 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11150
11151         Remove obsolete macros from several modules.
11152         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
11153         obsolete Autoconf macros with their modern counterparts.
11154         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
11155         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
11156         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
11157         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
11158         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
11159         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
11160         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
11161         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
11162         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
11163         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
11164         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
11165         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
11166         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
11167         * m4/sockets.m4 (gl_SOCKETS): Likewise.
11168         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
11169         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
11170         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
11171         * m4/time_r.m4 (gl_TIME_R): Likewise.
11172         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
11173         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
11174         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
11175
11176         Fix copyright header in build-aux scripts.
11177         * build-aux/git-version-gen: Fix copyright header to match GPLv3
11178         recommendation.
11179         * build-aux/ncftpput-ftp: Likewise.
11180         * build-aux/update-copyright: Likewise.
11181
11182 2009-09-09  Eric Blake  <ebb9@byu.net>
11183
11184         test-link: allow Linux choice of errno
11185         * tests/test-link.c (main): Relax test for alternate error.
11186
11187         strndup: fix improper m4 caching
11188         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
11189         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
11190         (gl_PREREQ_STRNDUP): Delete.
11191         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
11192         * modules/string (Makefile.am): Substitute it.
11193         * lib/string.in.h (strndup): Modernize prototype.
11194
11195         getcwd: port to mingw
11196         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
11197         different from the POSIX assumptions made throughout the getcwd
11198         module; fortunately, the mingw getcwd does not need replacement.
11199         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
11200         * modules/getcwd-tests: New test.
11201         * tests/test-getcwd.c: Likewise.
11202
11203         link: fix platform bugs
11204         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
11205         * lib/link.c (link): Work around them.  Fix related mingw bug.
11206         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
11207         * modules/unistd (Makefile.am): Substitute it.
11208         * lib/unistd.in.h (link): Declare replacement.
11209         * doc/posix-functions/link.texi (link): Document this.
11210         * modules/link (Depends-on): Add strdup-posix, sys_stat.
11211
11212         test-link: consolidate into single C program, test more cases
11213         * tests/test-link.sh: Delete.
11214         * tests/test-link.c: Test more error conditions.  Exposes bugs on
11215         at least Cygwin and Solaris.
11216         * modules/link-tests (Files): Remove unused file.
11217         (Depends-on): Add errno, sys_stat.
11218         (Makefile.am): Simplify.
11219
11220 2009-09-08  Bruno Haible  <bruno@clisp.org>
11221
11222         Work around towlower, towupper bug on mingw.
11223         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
11224         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
11225         * doc/posix-functions/towlower.texi: Mention the mingw bug.
11226         * doc/posix-functions/towupper.texi: Likewise.
11227         Reported by Eric Blake.
11228
11229 2009-09-08  Jim Meyering  <meyering@redhat.com>
11230
11231         build: don't try to run autoheader if we don't use it
11232         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
11233         is not used in configure.ac.
11234
11235 2009-09-08  Eric Blake  <ebb9@byu.net>
11236
11237         euidaccess: fix compilation error
11238         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
11239
11240         rawmemchr: relax license
11241         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
11242         okay.
11243         Reported by Jim Meyering.
11244
11245         mkfifoat: new module
11246         * modules/mkfifoat: New file.
11247         * lib/mkfifoat.c: Likewise.
11248         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
11249         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
11250         * modules/sys_stat (Makefile.am): Use them.
11251         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
11252         * MODULES.html.sh (File system functions): Mention module.
11253         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
11254         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
11255         * modules/mkfifoat-tests: New test.
11256         * tests/test-mkfifoat.c: Likewise.
11257
11258         strchrnul: relax license
11259         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
11260         okay.
11261         Reported by Jim Meyering.
11262
11263 2009-09-08  Eric Blake  <ebb9@byu.net>
11264
11265         fstatat: fix compilation on Solaris
11266         * lib/fstatat.c (includes): Add fcntl.h.
11267         Reported by Pádraig Brady.
11268
11269 2009-09-07  Eric Blake  <ebb9@byu.net>
11270
11271         rename: modernize replacement
11272         * modules/rename (Depends-on): Add stdio.
11273         (configure.ac): Declare witness.
11274         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
11275         stdio take care of replacement.
11276         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
11277         * modules/stdio (Makefile.am): Substitute them.
11278         * lib/stdio.in.h (rename): Declare replacement.
11279         * lib/rename.c (includes): Allow cross-compilation to non-windows
11280         machines.
11281         * doc/posix-functions/rename.texi (rename): Improve
11282         documentation.
11283
11284         stdio: sort witness names
11285         * modules/stdio (Makefile.am): Sort replacements.
11286         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
11287         * lib/stdio.in.h: Likewise.
11288
11289         getcwd: minor cleanups
11290         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
11291         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
11292
11293         openat: provide more convenience names
11294         * modules/faccessat (configure.ac): Add C witness.
11295         * lib/unistd.in.h (readlinkat): Fix typo.
11296         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
11297         convenience wrappers.
11298         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
11299         wrappers in syntax checks.
11300
11301 2009-09-06  Eric Blake  <ebb9@byu.net>
11302
11303         doc: fix comments in recent patches
11304         * lib/faccessat.c: Mention correct function.
11305         * lib/fchmodat.c: Likewise.
11306         * lib/fchownat.c: Likewise.
11307         * lib/symlinkat.c: Likewise.
11308         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
11309         constants.
11310
11311         faccessat, symlinkat: continue cleanup of previous patch
11312         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
11313         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
11314         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
11315         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
11316         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
11317         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
11318         set.
11319
11320 2009-09-06  Bruno Haible  <bruno@clisp.org>
11321
11322         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
11323         (fstatat): Declare if GNULIB_FSTATAT is set.
11324         (mkdirat): Declare if GNULIB_MKDIRAT is set.
11325         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
11326         (unlinkat): Declare if GNULIB_UNLINKAT is set.
11327         * modules/fcntl-h (Files): Remove m4/openat.m4.
11328         * modules/sys_stat (Files): Remove m4/openat.m4.
11329         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
11330         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
11331         * modules/unistd (Files): Remove m4/openat.m4.
11332         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
11333         GNULIB_OPENAT.
11334         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
11335         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
11336         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
11337         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
11338         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
11339         gl_OPENAT_DEFAULTS.
11340         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
11341         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
11342         Don't require gl_OPENAT_DEFAULTS.
11343         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
11344         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
11345         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
11346         (gl_OPENAT_DEFAULTS): Remove macro.
11347
11348 2009-09-06  Bruno Haible  <bruno@clisp.org>
11349
11350         * modules/openat (configure.ac): Remove unneeded witness.
11351
11352 2009-09-06  Bruno Haible  <bruno@clisp.org>
11353
11354         Set errno to ENOSYS when a function is entirely unsupported.
11355         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
11356         EOPNOTSUPP.
11357         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
11358         * modules/chown (Depends-on): Remove errno.
11359
11360 2009-09-06  Bruno Haible  <bruno@clisp.org>
11361
11362         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
11363
11364 2009-09-06  Bruno Haible  <bruno@clisp.org>
11365
11366         * lib/sys_stat.in.h: Fix preprocessor command indentation.
11367
11368 2009-09-06  Ben Pfaff  <blp@gnu.org>
11369             Bruno Haible  <bruno@clisp.org>
11370
11371         Work around a glibc bug in strtok_r.
11372         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
11373         Undefine if UNDEFINE_STRTOK_R is set.
11374         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
11375         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
11376         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
11377         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
11378         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
11379         UNDEFINE_STRTOK_R.
11380         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
11381
11382 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
11383
11384         exclude: minor fix
11385         * lib/exclude.c: Include wctype.h
11386
11387 2009-09-06  Akim Demaille  <demaille@gostai.com>
11388
11389         bootstrap: improve error message
11390         * build-aux/bootstrap (find_tool): Upon failure, report the list
11391         of candidates.
11392         Honor the initial value of the envvar.
11393
11394 2009-09-05  Eric Blake  <ebb9@byu.net>
11395
11396         symlinkat: new module
11397         * modules/symlinkat: New file.
11398         * lib/symlinkat.c: Likewise.
11399         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
11400         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
11401         * modules/unistd (Makefile.am): Use them.
11402         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
11403         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
11404         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
11405         * MODULES.html.sh (File system functions): Mention module.
11406         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
11407         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
11408         * modules/symlinkat-tests: New test.
11409         * tests/test-symlinkat.c: Likewise.
11410
11411         test-openat-safer: add more checks
11412         * tests/test-openat-safer.c (main): Check more code paths.
11413
11414 2009-09-05  Jim Meyering  <meyering@redhat.com>
11415
11416         syntax-check: detect unnecessary inclusion of openat.h
11417         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
11418
11419 2009-09-05  Bruno Haible  <bruno@clisp.org>
11420
11421         Support towlower, towupper.
11422         * doc/posix-functions/towlower.texi: Mention module wctype.
11423         * doc/posix-functions/towupper.texi: Likewise.
11424         * lib/wctype.in.h (towlower, towupper): New functions.
11425         * tests/test-wctype.c: Include stdio.h, stdlib.h.
11426         (ASSERT): New macro.
11427         (e): New variable.
11428         (main): Test also towlower, towupper. Test WEOF argument.
11429         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
11430
11431 2009-09-05  Bruno Haible  <bruno@clisp.org>
11432
11433         Fix conversion behaviour when the input is invalid.
11434         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
11435         mark occurring in first pass of indirect conversion.
11436         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
11437         input.
11438         Found by clang's static analyzer.
11439
11440 2009-09-05  Bruno Haible  <bruno@clisp.org>
11441
11442         * tests/test-striconveh.c (main): Test indirect conversion on platforms
11443         where direct conversion is possible.
11444
11445 2009-09-04  Eric Blake  <ebb9@byu.net>
11446
11447         openat: fail with ENOENT on empty name
11448         * lib/openat-proc.c (openat_proc_name): Special-case the empty
11449         buffer.
11450
11451         link-follow: fix logic bug in prior patch
11452         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
11453         reversed sense of yes and no in prior patch.  Avoid confusing
11454         compilation failure with desired semantics.
11455
11456         link-follow: accomodate mingw and cross-compilation
11457         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
11458         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
11459         cross-compilation results to -1, to make linkat easier to
11460         implement when cross-compiling.  Trivially support mingw.
11461         * modules/link-follow (configure.ac): Call new name.
11462         * NEWS: Mention this.
11463
11464 2009-09-03  Eric Blake  <ebb9@byu.net>
11465
11466         faccessat: compile replacement
11467         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
11468         needed.
11469
11470         fts: fix compilation error
11471         * lib/fts.c (includes): Re-add "openat.h", for
11472         openat_needs_fchdir.
11473
11474         faccessat: new module
11475         * modules/faccessat: New file.
11476         * lib/faccessat.c: Likewise.
11477         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
11478         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
11479         * modules/unistd (Makefile.am): Use it.
11480         * lib/unistd.in.h (faccessat): Declare it.
11481         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
11482         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
11483         * MODULES.html.sh (File system functions): Mention it.
11484         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
11485         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
11486
11487         euidaccess: prefer POSIX over non-standard implementation
11488         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
11489         * lib/euidaccess.c (euidaccess): Use it if available.
11490
11491         openat: make template easier to use
11492         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
11493         AT_FUNC_F2 to be undefined.
11494         (VALIDATE_FLAG): New macro; use it to reject bad flags.
11495         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
11496         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
11497         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
11498         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
11499         Likewise.
11500         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
11501         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
11502         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
11503         Likewise.
11504
11505         openat: declare in POSIX headers
11506         * NEWS: Mention this.
11507         * modules/openat (configure.ac): Declare witnesses.
11508         (Depends-on): Add fcntl-h, sys_stat, unistd.
11509         (Include): Mention correct headers.
11510         * modules/fcntl-h (Depends-on): Add link-warning.
11511         (Files): Add openat.m4.
11512         (Makefile.am): Substitute witnesses.
11513         * modules/sys_stat (Files, Makefile.am): Likewise.
11514         * modules/unistd (Files, Makefile.am): Likewise.
11515         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
11516         (gl_OPENAT_DEFAULTS): New macro.
11517         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
11518         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
11519         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
11520         (SYS_STAT_H): Remove unused variable.
11521         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
11522         * lib/fcntl--.h (includes): Remove unneeded header.
11523         * lib/openat-safer.c (includes): Likewise.
11524         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
11525         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
11526         appropriate headers.
11527         (__OPENAT_PREFIX): Delete.
11528         * lib/fcntl.in.h (openat): Provide declaration.
11529         (AT_FDCWD): Fix Solaris bug.
11530         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
11531         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
11532         * lib/fchmodat.c (includes):  Adjust to find declaration.
11533         * lib/fchownat.c (includes): Likewise.
11534         * lib/mkdirat.c (includes): Likewise.
11535         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
11536         still visible.
11537
11538 2009-09-02  Eric Blake  <ebb9@byu.net>
11539
11540         errno: use consistently
11541         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
11542         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
11543         * lib/canonicalize.c (ELOOP): Likewise.
11544         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
11545         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
11546         * lib/lchown.c (EOPNOTSUPP): Likewise.
11547         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
11548         * lib/savewd.c (ESTALE): Likewise.
11549         * lib/settime.c (ENOSYS): Likewise.
11550         * lib/utimens.c (ENOSYS): Likewise.
11551         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
11552         * lib/chdir-safer.c (ELOOP): Likewise.
11553         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
11554         * modules/c-stack (Depends-on): Add errno.
11555         * modules/canonicalize (Depends-on): Likewise.
11556         * modules/chdir-safer (Depends-on): Likewise.
11557         * modules/fdopendir (Depends-on): Likewise.
11558         * modules/inet_ntop (Depends-on): Likewise.
11559         * modules/inet_pton (Depends-on): Likewise.
11560         * modules/lchown (Depends-on): Likewise.
11561         * modules/openat (Depends-on): Likewise.
11562         * modules/savewd (Depends-on): Likewise.
11563         * modules/settime (Depends-on): Likewise.
11564         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
11565
11566         fts: avoid leaking fds
11567         * modules/fts (Depends-on): Add cloexec.
11568         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
11569         flag.
11570
11571         fts: make directory fds more robust
11572         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
11573         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
11574
11575         backupfile, chdir-long, fts, savedir: make safer
11576         * lib/backupfile.c (includes): Use "dirent--.h", since
11577         numbered_backup can write to stderr during readdir.
11578         * lib/savedir.c (includes): Likewise.
11579         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
11580         emulation can write to stderr on failure.
11581         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
11582         * lib/getcwd.c: Document why opendir_safer is unused.
11583         * lib/glob.c: Likewise.
11584         * lib/scandir.c: Likewise.
11585         * lib/openat-proc.c: Likewise, for open_safer.
11586         * modules/backupfile (Depends-on): Add dirent-safer.
11587         * modules/savedir (Depends-on): Likewise.
11588         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
11589         * modules/chdir-long (Depends-on): Add openat-safer.
11590
11591         openat-safer: new module
11592         * modules/openat-safer: New file.
11593         * lib/openat-safer.c: Likewise.
11594         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
11595         * lib/fcntl-safer.h (openat_safer): Declare.
11596         * lib/fcntl--.h (openat): Override.
11597         * MODULES.html.sh (File descriptor based I/O): Mention it.
11598         * lib/openat.h: Add double-inclusion guards.
11599         * lib/openat.c (includes): Only include "fcntl-safer.h", not
11600         "fcntl--.h", so we can implement openat.
11601         * modules/openat-safer-tests: New test.
11602         * tests/test-openat-safer.c: New file.
11603
11604         dirent-safer: new module
11605         * modules/dirent-safer: New file.
11606         * lib/dirent--.h: Likewise.
11607         * lib/dirent-safer.h: Likewise.
11608         * lib/opendir-safer.c: Likewise.
11609         * m4/dirent-safer.m4: Likewise.
11610         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
11611         * modules/dirent-safer-tests: New test.
11612         * tests/test-dirent-safer.c: New file.
11613         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
11614
11615         fdopendir: optimize on mingw
11616         * lib/unistd.in.h (_gl_directory_name): New prototype.
11617         * lib/fchdir.c (_gl_directory_name): Implement it.
11618         (fchdir): Use it to simplify implementation.
11619         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
11620         fchdir, when available, to avoid calling [f]chdir().
11621
11622         fdopendir: split into its own module
11623         * lib/openat.c (fdopendir): Move...
11624         * lib/fdopendir.c: ...into new file.
11625         * modules/fdopendir: New module.
11626         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
11627         * modules/openat (Depends-on): Add fdopendir.
11628         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
11629         fdopendir here.
11630         * modules/savedir (Depends-on): Only need fdopendir, not full
11631         openat.
11632         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
11633         * lib/openat.h (fdopendir): Drop prototype.
11634         * lib/dirent.in.h (fdopendir): Provide prototype.
11635         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
11636         * modules/dirent (Makefile.am): Substitute them.
11637         * MODULES.html.sh (File system functions): Mention it.
11638         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
11639         * modules/fdopendir-tests: New file.
11640         * tests/test-fdopendir.c: Likewise.
11641
11642         fchdir: use more consistent macro convention
11643         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
11644         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
11645         REPLACE_FCHDIR, rather than relying on config.h macros.
11646         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
11647         inside a single make-time REPLACE_FCHDIR block, rather than using
11648         the config.h FCHDIR_REPLACEMENT.
11649         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
11650         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
11651         Manage fstat replacement.
11652         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
11653         REPLACE_FCHDIR.
11654         * modules/sys_stat (Files): Add m4/unistd_h.m4.
11655         (Makefile.am): Substitute REPLACE_FCHDIR.
11656         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
11657         FCHDIR_REPLACEMENT.
11658         * lib/dup-safer.c (dup_safer): Likewise.
11659         * lib/dup2.c (rpl_dup2): Likewise.
11660         * lib/dup3.c (rpl_dup3): Likewise.
11661         * lib/open.c (rpl_open): Likewise.
11662
11663         fchdir: simplify error handling, and support dup3
11664         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
11665         stdbool, malloc-posix, realloc-posix.
11666         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
11667         (ensure_dirs_slot): Return false on allocation failure.
11668         (rpl_dup2): Delete.
11669         (_gl_register_dup): New function.
11670         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
11671         (_gl_register_fd): Close fd on allocation failure.
11672         * lib/fcntl.in.h (_gl_register_fd): Update signature.
11673         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
11674         prototype.
11675         (rpl_dup2_fchdir): Delete prototype.
11676         * lib/open.c (open): Update caller.
11677         * lib/dup2.c (dup2): Track fchdir metadata.
11678         * lib/dup3.c (dup3): Likewise.
11679         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
11680         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
11681
11682 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11683
11684         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
11685         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
11686         don't pass arguments to AC_OUTPUT.
11687
11688 2009-09-02  Bruno Haible  <bruno@clisp.org>
11689
11690         * modules/mkdtemp (License): Relicense under LGPLv2+.
11691         Reported by Paolo Bonzini.
11692
11693 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11694
11695         Replace uses of obsolete autoconf macros in Jim's modules.
11696         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
11697         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
11698         can evoke a warning from autoconf when run with -Wobsolete
11699         enabled.  They were declared obsolete for good reasons (see
11700         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
11701         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
11702         should not continue using the deprecated macros.
11703         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
11704         obsolete Autoconf macros with modern counterparts.
11705         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
11706         * m4/dos.m4 (gl_AC_DOS): Likewise.
11707         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
11708         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
11709         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
11710         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
11711         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
11712         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
11713         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
11714         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
11715         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
11716         Likewise.
11717         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
11718         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
11719         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
11720         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
11721         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
11722         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
11723
11724 2009-09-01  Eric Blake  <ebb9@byu.net>
11725
11726         fchdir: fix off-by-one bug in previous patch
11727         * lib/fchdir.c (rpl_fstat): Use correct bounds.
11728         (_gl_unregister_fd): Delete useless if.
11729
11730 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
11731
11732         maint.mk: sort the list of syntax-check rules
11733         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
11734         easier to get a sense of progress when the rules are run sequentially
11735         and take a long time.
11736
11737 2009-09-01  Simon Josefsson  <simon@josefsson.org>
11738
11739         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
11740         * modules/netinet_in: Likewise.
11741         * modules/sys_file: Likewise.
11742         * modules/sys_ioctl: Likewise.
11743         * modules/sys_select: Likewise.
11744         * modules/sys_socket: Likewise.
11745         * modules/sys_stat: Likewise.
11746         * modules/sys_time: Likewise.
11747         * modules/sys_times: Likewise.
11748         * modules/sys_utsname: Likewise.
11749         * modules/sys_wait: Likewise.
11750
11751 2009-09-01  Jim Meyering  <meyering@redhat.com>
11752
11753         fts: help ensure that return values are not ignored
11754         * lib/fts_.h (__GNUC_PREREQ): Define.
11755         (__attribute_warn_unused_result__): Define.
11756         (fts_children, fts_close, fts_open, fts_read): Declare with
11757         __attribute_warn_unused_result__.
11758
11759         fts: fts_close now fails also when closing a dir file descriptor fails
11760         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
11761         and propagate to caller, along with errno.
11762
11763         announce-gen: correct formatting in --help output
11764         * build-aux/announce-gen (usage): Move the one-line description in
11765         --help output "up", to where it belongs, just after Usage:.
11766
11767 2009-08-31  Eric Blake  <ebb9@byu.net>
11768
11769         fchdir: port to mingw
11770         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
11771         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
11772         opened, then use a substitute.
11773         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
11774         replacement.
11775         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
11776         (_gl_register_fd): No need to check stat if open already filters
11777         all directories.
11778         (fchdir): Fix error condition to match POSIX.
11779         * modules/fchdir (Depends-on): Add sys_stat.
11780         * doc/posix-functions/open.texi (open): Document the limitation.
11781         * modules/fchdir-tests: New file.
11782         * tests/test-fchdir.c: Likewise.
11783
11784         canonicalize: allow cross-testing from cygwin to mingw
11785         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
11786         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
11787         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
11788         Likewise.
11789         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
11790         target does not support symlinks.
11791         * tests/test-canonicalize-lgpl.sh: Likewise.
11792
11793         chown: avoid compilation warning on mingw
11794         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
11795         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
11796         mingw.
11797         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
11798         * modules/chown (Depends-on): Add errno.
11799
11800 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
11801
11802         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
11803         command.
11804
11805 2009-08-31  Jim Meyering  <meyering@redhat.com>
11806
11807         canonicalize: remove useless initialization
11808         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
11809         initialization of local, "end".
11810
11811 2009-08-30  Bruno Haible  <bruno@clisp.org>
11812
11813         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
11814         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
11815         ENOSYS.
11816
11817 2009-08-30  Bruno Haible  <bruno@clisp.org>
11818
11819         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
11820         /usr/xpg4/bin/tr when it exists.
11821         * tests/test-pipe-filter-gi1.sh: Likewise.
11822
11823 2009-08-30  Bruno Haible  <bruno@clisp.org>
11824
11825         Work around deficient /usr/bin/id program on Solaris.
11826         * tests/test-file-has-acl.sh (ID): New variable.
11827         * tests/test-set-mode-acl.sh (ID): Likewise.
11828         * tests/test-copy-acl.sh (ID): Likewise.
11829         * tests/test-copy-file.sh (ID): Likewise.
11830
11831 2009-08-30  Bruno Haible  <bruno@clisp.org>
11832
11833         New module 'xstriconveh'.
11834         * lib/xstriconveh.h: New file.
11835         * lib/xstriconveh.c: New file.
11836         * modules/xstriconveh: New file.
11837
11838 2009-08-30  Bruno Haible  <bruno@clisp.org>
11839
11840         Make it easier to use mem_cd_iconveh.
11841         * lib/striconveh.h (iconveh_t): New type.
11842         (iconveh_open, iconveh_close): New declarations.
11843         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
11844         with a single 'const iconveh_t *' argument.
11845         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
11846         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
11847         with a single 'const iconveh_t *' argument.
11848         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
11849         * tests/test-striconveh.c (main): Update.
11850         * NEWS: Mention the change.
11851
11852 2009-08-30  Bruno Haible  <bruno@clisp.org>
11853
11854         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
11855         problem.
11856
11857 2009-08-30  Bruno Haible  <bruno@clisp.org>
11858
11859         Work around iconv_open problem on Solaris.
11860         * lib/iconv_open-solaris.gperf: New file.
11861         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
11862         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
11863         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
11864         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
11865         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
11866         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
11867
11868 2009-08-29  Jim Meyering  <meyering@redhat.com>
11869
11870         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
11871         * top/maint.mk (cvs-check): Remove target; it was just an alias
11872         to the better-named vc-diff-check.
11873         (maintainer-distcheck): Remove rule.  It was used only from
11874         the (alpha/beta/major) target, and all of its commands but one
11875         were coreutils-specific.
11876         (vc-dist): Remove rule.
11877         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
11878         Run vc-diff-check, not vc-dist.
11879         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
11880
11881 2009-08-27  Bruno Haible  <bruno@clisp.org>
11882
11883         * tests/test-bitrotate.c (main): Remove test that uses a shift count
11884         of 0.
11885
11886 2009-08-27  Bruno Haible  <bruno@clisp.org>
11887
11888         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
11889         compilers.
11890         * doc/func.texi: Document the SunPRO C bug.
11891
11892 2009-08-27  Bruno Haible  <bruno@clisp.org>
11893
11894         Fix link error on Solaris.
11895         * tests/test-parse-duration.c (xstrdup): Remove function.
11896
11897 2009-08-26  Pádraig Brady  <P@draigbrady.com>
11898
11899         ignore-value: handle pointer types, too
11900         * lib/ignore-value.h (__attribute__): Remove definition.
11901         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
11902         of a more concise and more-often effective "(void) i" statement.
11903         (ignore_ptr): New function to suppress warnings from functions that
11904         return pointers, and to make it explicit that one function doesn't
11905         handle all cases.
11906
11907 2009-08-25  Bruno Haible  <bruno@clisp.org>
11908
11909         dup2: work around a Linux bug.
11910         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
11911         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
11912         * doc/posix-functions/dup2.texi: Mention the Linux bug.
11913         Reported by Simon Josefsson.
11914
11915 2009-08-25  Jim Meyering  <meyering@redhat.com>
11916
11917         libguestfs uses gnulib
11918         * users.txt: Add libguestfs.
11919
11920 2009-08-24  Eric Blake  <ebb9@byu.net>
11921
11922         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
11923         * lib/pipe2.c (includes): Add binary-io.h.
11924         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
11925
11926 2009-08-24  Bruno Haible  <bruno@clisp.org>
11927
11928         Tolerate declared but missing accept4 syscall.
11929         * lib/accept4.c (accept4): Invoke original accept4 function first, if
11930         available.
11931         * lib/sys_socket.in.h (accept4): If the function is already present,
11932         override it.
11933         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
11934         * modules/accept4 (Makefile.am): Compile accept4.c always.
11935         Reported by Paolo Bonzini and Eric Blake.
11936
11937 2009-08-23  Bruno Haible  <bruno@clisp.org>
11938
11939         New module 'accept4'.
11940         * lib/sys_socket.in.h (accept4): New declaration.
11941         * lib/accept4.c: New file.
11942         * m4/accept4.m4: New file.
11943         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
11944         GNULIB_ACCEPT4, HAVE_ACCEPT4.
11945         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
11946         HAVE_ACCEPT4.
11947         * modules/accept4: New file.
11948         * doc/glibc-functions/accept4.texi: Mention the new module.
11949
11950 2009-08-24  Jim Meyering  <meyering@redhat.com>
11951
11952         progname: also set global program_invocation_name, when possible
11953         Before this change, a libtool-enabled program that calls glibc's
11954         error function would report the program name as
11955         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
11956         * modules/progname (configure.ac): Check for a declaration of
11957         program_invocation_name.
11958         * lib/progname.c:  Include <errno.h>.
11959         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
11960         Set program_invocation_name.
11961
11962 2009-08-23  Bruno Haible  <bruno@clisp.org>
11963
11964         * lib/dup3.c: Include <string.h>.
11965
11966 2009-08-23  Bruno Haible  <bruno@clisp.org>
11967
11968         * lib/dup3.c (dup3): Test only once whether the system actually exists.
11969         * lib/pipe2.c (pipe2): Likewise.
11970         Suggested by Eric Blake.
11971
11972 2009-08-23  Bruno Haible  <bruno@clisp.org>
11973
11974         Tolerate declared but missing dup3 syscall.
11975         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
11976         * lib/unistd.in.h (dup3): If the function is already present,
11977         override it.
11978         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
11979         * modules/dup3 (Makefile.am): Compile dup3.c always.
11980         Reported by Paolo Bonzini.
11981
11982 2009-08-23  Bruno Haible  <bruno@clisp.org>
11983
11984         Tolerate declared but missing pipe2 syscall.
11985         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
11986         available.
11987         * lib/unistd.in.h (pipe2): If the function is already present,
11988         override it.
11989         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
11990         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
11991         Reported by Paolo Bonzini.
11992
11993 2009-08-23  Bruno Haible  <bruno@clisp.org>
11994
11995         * lib/pipe2.c (pipe2): Move #ifs inside function.
11996
11997 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
11998
11999         quotearg: document limitations of quote_these_too
12000         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
12001         those limitations are created.
12002         * lib/quotearg.h (set_char_quoting): Document that digits and
12003         letters that are special after backslash are not permitted.
12004         (quotearg_char): Cross-reference set_char_quoting documentation.
12005
12006 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
12007
12008         quotearg: implement custom_quoting_style
12009         * lib/quotearg.c: (struct quoting_options): Add left_quote and
12010         right_quote fields.
12011         (set_custom_quoting): New public function.
12012         (quotearg_buffer_restyled): Add left_quote and right_quote
12013         arguments, handle them very much like locale quoting, and update
12014         all uses.
12015         (quotearg_n_custom): New public function.
12016         (quotearg_n_custom_mem): New public function.
12017         (quotearg_custom): New public function.
12018         (quotearg_custom_mem): New public function.
12019         * lib/quotearg.h: Prototype and document new public functions.
12020         (enum quoting_style): For escape_quoting_style and
12021         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
12022         ignored even though they're otherwise like c_quoting_style.
12023         Add custom_quoting_style member and document with comparison to
12024         clocale_quoting_style.
12025         * tests/test-quotearg.c (custom_quotes): New array.
12026         (custom_results): New array.
12027         (main): Extend to test custom quoting.
12028
12029 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
12030
12031         quotearg: fix right quote escaping when it's in quote_these_too
12032         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
12033         quote, be sure to prepend only one backslash.
12034         * tests/test-quotearg.c (use_quote_double_quotes): New function.
12035         (main): Test it.
12036
12037 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
12038
12039         quotearg-tests: test escaping of embedded locale quotes
12040         * tests/test-quotearg.c (struct result_strings): Add member for
12041         new input.
12042         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
12043         (inputs): Add new input.
12044         (results_g): Add expected results.
12045         (flag_results): Likewise.
12046         (locale_results): Likewise.
12047         (compare_strings): Check those.
12048
12049 2009-08-23  Bruno Haible  <bruno@clisp.org>
12050
12051         Tests for module 'dup3'.
12052         * modules/dup3-tests: New file.
12053         * tests/test-dup3.c: New file.
12054
12055         New module 'dup3'.
12056         * lib/unistd.in.h (dup3): New declaration.
12057         * lib/dup3.c: New file.
12058         * m4/dup3.m4: New file.
12059         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
12060         HAVE_DUP3.
12061         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
12062         * modules/dup3: New file.
12063         * doc/glibc-functions/dup3.texi: Mention the new module.
12064
12065 2009-08-23  Bruno Haible  <bruno@clisp.org>
12066
12067         Tweak the dup2 test.
12068         * tests/test-dup2.c (main): Create the test file empty. Verify that an
12069         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
12070         the test file is still empty. Fix argument order of lseek.
12071
12072 2009-08-23  Bruno Haible  <bruno@clisp.org>
12073
12074         Avoid test link errors when the modules getopt-gnu, gettext are used.
12075         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
12076         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12077
12078 2009-08-23  Bruno Haible  <bruno@clisp.org>
12079
12080         Fix getdtablesize() on mingw.
12081         * lib/getdtablesize.c (getdtablesize): Implement differently.
12082         * lib/unistd.in.h (getdtablesize): Improve comment.
12083
12084 2009-08-23  Bruno Haible  <bruno@clisp.org>
12085
12086         New module 'mkostemp'.
12087         Based on Ulrich Drepper's 2007-08-10 change in glibc.
12088         * lib/stdlib.in.h (mksotemp): New declaration.
12089         * lib/mkostemp.c: New file, from glibc with modifications.
12090         * lib/tempname.h (GT_FILE): Remove outdated comment.
12091         (gen_tempname): Add flags argument.
12092         * lib/tempname.c (__GT_BIGFILE): Remove macro.
12093         (__GT_FILE): Map to 1.
12094         (small_open, large_open): Remove macros.
12095         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
12096         * lib/mkstemp.c (mkstemp): Update.
12097         * lib/mkdtemp.c (mkdtemp): Likewise.
12098         * m4/mkostemp.m4: New file.
12099         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
12100         HAVE_MKOSTEMP.
12101         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
12102         HAVE_MKOSTEMP.
12103         * modules/mkostemp: New file, based on modules/mkstemp.
12104         * doc/glibc-functions/mkostemp.texi: Mention the new module.
12105         * NEWS: Mention the change.
12106
12107 2009-08-23  Bruno Haible  <bruno@clisp.org>
12108
12109         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
12110         Reported by Eric Blake.
12111
12112 2009-08-23  Bruno Haible  <bruno@clisp.org>
12113
12114         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
12115         Reported by Eric Blake.
12116
12117 2009-08-23  Bruno Haible  <bruno@clisp.org>
12118
12119         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
12120         * modules/pipe2 (Depends-on): Likewise.
12121
12122 2009-08-23  Eric Blake  <ebb9@byu.net>
12123
12124         fcntl-h: add O_TTY_INIT support
12125         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
12126         * tests/test-fcntl-h.c (o): Test it.
12127         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
12128
12129         fcntl-h: rename from fcntl, in preparation for fcntl(2)
12130         * modules/fcntl: Move <fcntl.h> header replacement...
12131         * modules/fcntl-h: ...to new name, so as not to collide with
12132         like-named function.
12133         * tests/test-fcntl.c: Rename...
12134         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
12135         * modules/fcntl-tests: Rename...
12136         * modules/fcntl-h-tests: ...to this.  Update test file name.
12137         * modules/chdir-long (Depends-on): Update clients.
12138         * modules/chdir-safer (Depends-on): Likewise.
12139         * modules/fcntl-safer (Depends-on): Likewise.
12140         * modules/fts (Depends-on): Likewise.
12141         * modules/mkancesdirs (Depends-on): Likewise.
12142         * modules/mkdir-p (Depends-on): Likewise.
12143         * modules/open (Depends-on): Likewise.
12144         * modules/savewd (Depends-on): Likewise.
12145         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
12146         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
12147
12148 2009-08-22  Bruno Haible  <bruno@clisp.org>
12149
12150         * modules/binary-io (License): Relicense under LGPL.
12151         * modules/pipe2 (License): Likewise.
12152
12153 2009-08-22  Bruno Haible  <bruno@clisp.org>
12154
12155         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
12156         return value.
12157         * lib/pipe-filter-gi.c (filter_init): Likewise.
12158         Reported by Eric Blake.
12159
12160 2009-08-22  Bruno Haible  <bruno@clisp.org>
12161
12162         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
12163         * modules/pipe (Depends-on): Add pipe2.
12164
12165 2009-08-22  Bruno Haible  <bruno@clisp.org>
12166
12167         Tests for module 'pipe2'.
12168         * modules/pipe2-tests: New file.
12169         * tests/test-pipe2.c: New file.
12170
12171         New module 'pipe2'.
12172         * lib/unistd.in.h (pipe2): New declaration.
12173         * lib/pipe2.c: New file.
12174         * m4/pipe2.m4: New file.
12175         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
12176         HAVE_PIPE2.
12177         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
12178         * modules/pipe2: New file.
12179         * doc/glibc-functions/pipe2.texi: Mention the new module.
12180
12181 2009-08-22  Bruno Haible  <bruno@clisp.org>
12182
12183         Reference some new glibc functions.
12184         * doc/glibc-functions/accept4.texi: New file.
12185         * doc/glibc-functions/dup3.texi: New file.
12186         * doc/glibc-functions/mkostemp.texi: New file.
12187         * doc/glibc-functions/pipe2.texi: New file.
12188         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
12189         (Glibc sys/socket.h): Refer to accept4.
12190         (Glibc unistd.h): Refer to dup3, pipe2.
12191         Reported by Eric Blake.
12192
12193 2009-08-22  Jim Meyering  <meyering@redhat.com>
12194             Bruno Haible  <bruno@clisp.org>
12195
12196         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
12197         This makes it so packages using automake-1.11's silent-rules option
12198         can print e.g., a single "GEN    configmake.h" line, rather than
12199         the 30+ statements that perform the job.  If you want to see the
12200         actual commands, you can still run "make V=1".
12201         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
12202         so that make output is abbreviated when those variables are defined
12203         appropriately.
12204         * modules/argz: Likewise.
12205         * modules/arpa_inet: Likewise.
12206         * modules/byteswap: Likewise.
12207         * modules/configmake: Likewise.
12208         * modules/dirent: Likewise.
12209         * modules/errno: Likewise.
12210         * modules/fcntl: Likewise.
12211         * modules/float: Likewise.
12212         * modules/fnmatch: Likewise.
12213         * modules/getopt-posix: Likewise.
12214         * modules/glob: Likewise.
12215         * modules/iconv_open: Likewise.
12216         * modules/inttypes: Likewise.
12217         * modules/localcharset: Likewise.
12218         * modules/locale: Likewise.
12219         * modules/math: Likewise.
12220         * modules/netdb: Likewise.
12221         * modules/netinet_in: Likewise.
12222         * modules/poll: Likewise.
12223         * modules/posix_spawnp-tests: Likewise.
12224         * modules/sched: Likewise.
12225         * modules/search: Likewise.
12226         * modules/selinux-h: Likewise.
12227         * modules/signal: Likewise.
12228         * modules/spawn: Likewise.
12229         * modules/stdarg: Likewise.
12230         * modules/stdbool: Likewise.
12231         * modules/stddef: Likewise.
12232         * modules/stdint: Likewise.
12233         * modules/stdio: Likewise.
12234         * modules/stdlib: Likewise.
12235         * modules/string: Likewise.
12236         * modules/strings: Likewise.
12237         * modules/sys_file: Likewise.
12238         * modules/sys_ioctl: Likewise.
12239         * modules/sys_select: Likewise.
12240         * modules/sys_socket: Likewise.
12241         * modules/sys_stat: Likewise.
12242         * modules/sys_time: Likewise.
12243         * modules/sys_times: Likewise.
12244         * modules/sys_utsname: Likewise.
12245         * modules/sys_wait: Likewise.
12246         * modules/sysexits: Likewise.
12247         * modules/time: Likewise.
12248         * modules/unistd: Likewise.
12249         * modules/wchar: Likewise.
12250         * modules/wctype: Likewise.
12251
12252 2009-08-22  Jim Meyering  <meyering@redhat.com>
12253
12254         announce-gen: detect write failure
12255         * build-aux/announce-gen: Add Coda at end.
12256         Remove equivalent-but-more-verbose block at top.
12257
12258 2009-08-19  Akim Demaille  <demaille@gostai.com>
12259
12260         bootstrap: --help to stdout.
12261         * bootstrap (usage): Don't send --help to stderr.
12262         Use a here doc instead of a long string.
12263
12264 2009-08-21  Eric Blake  <ebb9@byu.net>
12265
12266         test-popen-safer: split from test-popen
12267         * tests/test-popen.c (main): Move...
12268         * tests/test-popen.h: ...into new file.
12269         * tests/test-popen-safer2.c: New file.
12270         * modules/popen-tests (Files): Add test-popen.h.
12271         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
12272         Suggested by Bruno Haible.
12273
12274         test-fcntl-safer: split from test-open
12275         * tests/test-open.c (main): Move...
12276         * tests/test-open.h: ...into new file.
12277         * tests/test-fcntl-safer.c: New file.
12278         * modules/open-tests (Files): Add test-open.h.
12279         * modules/fcntl-safer-tests: New file.
12280         Suggested by Bruno Haible.
12281
12282         test-fopen-safer: split from test-fopen
12283         * tests/test-fopen.c (main): Move...
12284         * tests/test-fopen.h: ...into new file.
12285         * tests/test-fopen-safer.c: New file.
12286         * modules/fopen-tests (Files): Add test-fopen.h.
12287         * modules/fopen-safer-tests: New file.
12288         Suggested by Bruno Haible.
12289
12290 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
12291
12292         popen-safer: test O_CLOEXEC at run-time.
12293         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
12294
12295 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
12296
12297         fcntl: move more flags to the header
12298         * lib/cloexec.c: Do not define FD_CLOEXEC here.
12299         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
12300         * lib/fcntl.in.h: Do both things here.
12301
12302 2009-08-21  Jim Meyering  <meyering@redhat.com>
12303
12304         consistently remove $@-t before redirecting to it
12305         * modules/argz: Remove $@-t and $@ before redirecting to the former.
12306         * modules/alloca-opt: Likewise.
12307         * modules/byteswap: Likewise.
12308         * modules/fnmatch: Likewise.
12309         * modules/getopt-posix: Likewise.
12310         * modules/glob: Likewise.
12311         * modules/poll: Likewise.
12312         * modules/posix_spawnp-tests: Likewise.
12313         * modules/sys_socket: Likewise.
12314         * modules/sysexits: Likewise.
12315
12316 2009-08-21  Eric Blake  <ebb9@byu.net>
12317
12318         popen: simplify access to original popen
12319         * lib/popen.c (rpl_popen): No need to worry about popen being a
12320         macro.
12321         Reported by Bruno Haible.
12322
12323 2009-08-20  Eric Blake  <ebb9@byu.net>
12324
12325         build: avoid some compiler warnings
12326         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
12327         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
12328         type.
12329         (new_exclude_segment, excluded_file_pattern_p)
12330         (excluded_file_name_p): Reduce scope.
12331         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
12332         old-style declaration.
12333
12334 2009-08-20  Simon Josefsson  <simon@josefsson.org>
12335
12336         * tests/test-exclude1.sh: Handle Windows EOL.
12337         * tests/test-exclude2.sh: Likewise.
12338         * tests/test-exclude3.sh: Likewise.
12339         * tests/test-exclude4.sh: Likewise.
12340         * tests/test-exclude5.sh: Likewise.
12341         * tests/test-exclude6.sh: Likewise.
12342         * tests/test-exclude7.sh: Likewise.
12343
12344 2009-08-19  Akim Demaille  <demaille@gostai.com>
12345
12346         bootstrap: find sha1sum when named gsha1sum.
12347         * bootstrap (find_tool): New.
12348         ($SHA1SUM): New.
12349         Use it.
12350
12351 2009-08-20  Jim Meyering  <meyering@redhat.com>
12352
12353         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
12354         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
12355         expression that converts "." in a file name to "\." in the resulting
12356         regexp.  Start with a dummy statement, so that prior shell variable
12357         definitions are expanded portably.  Reported by Simon Josefsson.
12358
12359 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
12360
12361         Fix polling for writeability of a screen buffer.
12362         * lib/poll.c: Distinguish input and screen buffers for the
12363         Win32 implementation.
12364         * lib/select.c: Likewise.
12365
12366 2009-08-19  Eric Blake  <ebb9@byu.net>
12367
12368         popen-safer: prevent popen from clobbering std descriptors
12369         * modules/popen-safer: New file.
12370         * lib/popen-safer.c: Likewise.
12371         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
12372         * lib/stdio--.h (popen): Provide override.
12373         * lib/stdio-safer.h (popen_safer): Provide declaration.
12374         * tests/test-popen.c (includes): Partially test this.
12375         * modules/popen-safer-tests: New file, for more tests.
12376         * tests/test-popen-safer.c: Likewise.
12377         * MODULES.html.sh (file stream based Input/Output): Mention it.
12378
12379         tests: test some of the *-safer modules
12380         * modules/fopen-safer (Depends-on): Add fopen.
12381         * modules/fcntl-safer (Depends-on): Add fcntl.
12382         * modules/stdlib-safer (Depends-on): Add stdlib.
12383         (configure.ac): Set indicator.
12384         * modules/unistd-safer (configure.ac): Likewise.
12385         * modules/tmpfile-safer (configure.ac): Likewise.
12386         (Depends-on): Add tmpfile.
12387         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
12388         active.
12389         * tests/test-fopen.c (includes): Test safer versions when they are
12390         in use.
12391         * tests/test-open.c (includes): Likewise.
12392
12393         popen: fix cygwin 1.5 bug when stdin closed
12394         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
12395         * modules/popen: New file.
12396         * modules/popen-tests: Likewise.
12397         * tests/test-popen.c: Likewise.
12398         * m4/popen.m4: Likewise.
12399         * lib/popen.c: Likewise.
12400         * lib/stdio.in.h (popen): New declaration.
12401         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
12402         * modules/stdio (Makefile.am): Likewise.
12403         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
12404
12405 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
12406
12407         maint.mk: give full control over update-copyright exclusions
12408         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
12409         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
12410         (update-copyright): Don't force inclusion of top-level
12411         ChangeLog.  Don't force exclusion of all COPYING files, but make
12412         them the default exclusion instead.
12413
12414 2009-08-16  Bruno Haible  <bruno@clisp.org>
12415
12416         Fix test failures on Solaris 10.
12417         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
12418         tests when Solaris iconv() is used.
12419         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
12420         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
12421         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
12422         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
12423         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
12424
12425 2009-08-16  Bruno Haible  <bruno@clisp.org>
12426
12427         Fix test failures on Solaris 10.
12428         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
12429         'tr' program and pass it as first argument.
12430         * tests/test-pipe-filter-gi1.sh: Likewise.
12431         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
12432         program as first argument.
12433         * tests/test-pipe-filter-gi1.c (main): Likewise.
12434
12435 2009-08-16  Eric Blake  <ebb9@byu.net>
12436
12437         fpurge: fix previous commits
12438         * modules/fpurge (Makefile.am): Make replacement conditional,
12439         partially reverting 2007-04-29 change; missed in previous
12440         attempt.
12441         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
12442         is missing.
12443
12444 2009-08-16  Bruno Haible  <bruno@clisp.org>
12445
12446         Clarify fpurge's effect on the file position.
12447         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
12448         * tests/test-fpurge.c (main): Make a second pass for checking the file
12449         position.
12450
12451 2009-08-16  Bruno Haible  <bruno@clisp.org>
12452
12453         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
12454         declaration of fpurge is missing.
12455         * tests/test-fpurge.c (main): Check that the file has not more contents
12456         than expected. Close the file before removing it.
12457
12458 2009-08-15  Eric Blake  <ebb9@byu.net>
12459
12460         fpurge: don't wrap working cygwin implementation
12461         * lib/fpurge.c (fpurge): Fix comment typo.
12462         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
12463         1.7 to avoid replacement.
12464         * tests/test-fpurge.c (main): Enhance test.
12465
12466 2009-08-15  Eric Blake  <ebb9@byu.net>
12467         and Jim Meyering  <meyering@redhat.com>
12468
12469         test-update-copyright: skip if perl is insufficient
12470         * tests/test-update-copyright.sh: Failure to run maintainer tool
12471         should not cause testsuite failure on cygwin 1.5.
12472
12473 2009-08-14  Eric Blake  <ebb9@byu.net>
12474
12475         doc: mention more functions added in cygwin 1.7.0
12476         * doc/posix-headers/limits.texi (limits.h): Update for recent
12477         cygwin additions.
12478         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
12479         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
12480         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
12481         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
12482         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
12483
12484 2009-08-14  Eric Blake  <ebb9@byu.net>
12485
12486         maint.mk: simplify update-copyright rule
12487         * top/maint.mk (update-copyright-local): Delete, and document how
12488         to do it in cfg.mk instead.
12489         (update-copyright-exclude-regexp): Delete, and document how to do
12490         it in .x-update-copyright instead.
12491         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
12492         exclude ChangeLog.
12493
12494 2009-08-14  Bruno Haible  <bruno@clisp.org>
12495
12496         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
12497
12498 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
12499
12500         maint.mk: support update-copyright-env
12501         * top/maint.mk (update-copyright-env): Define place-holder.
12502         (update-copyright): Expand $(update-copyright-env) before
12503         invoking update-copyright.
12504
12505 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
12506
12507         update-copyright: implement forced reformatting
12508         * build-aux/update-copyright: Implement and document
12509         UPDATE_COPYRIGHT_FORCE.
12510         * tests/test-update-copyright.sh: Test it.
12511
12512 2009-08-14  Eric Blake  <ebb9@byu.net>
12513         and Bruno Haible  <bruno@clisp.org>
12514
12515         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
12516         * tests/test-locale.c: Revert previous patch related to NULL.
12517         * tests/test-stdio.c: Likewise.
12518         * tests/test-stdlib.c: Likewise.
12519         * tests/test-string.c: Likewise.
12520         * tests/test-unistd.c: Likewise.
12521         * modules/time-tests (Depends-on): Add verify.
12522         * modules/wchar-tests (Depends-on): Likewise.
12523         * tests/test-time.c: Test for NULL compliance.
12524         * tests/test-wchar.c: Likewise.
12525         * modules/locale (Depends-on): Add stddef.
12526         * modules/stdio (Depends-on): Likewise.
12527         * modules/stdlib (Depends-on): Likewise.
12528         * modules/string (Depends-on): Likewise.
12529         * modules/time (Depends-on): Likewise.
12530         * modules/unistd (Depends-on): Likewise.
12531         * modules/wchar (Depends-on): Likewise.
12532         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
12533         * lib/stdlib.in.h (includes): Likewise.
12534         * lib/string.in.h (includes): Likewise.
12535         * lib/time.in.h (includes): Likewise.
12536         * lib/unistd.in.h (includes): Likewise.
12537         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
12538         replaced.
12539         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
12540         * m4/stddef_h.m4: New file.
12541         * modules/stddef: Likewise.
12542         * lib/stddef.in.h: Likewise.
12543         * modules/stddef-tests: Likewise.
12544         * tests/test-stddef.c: Likewise.
12545         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
12546         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
12547         * doc/posix-headers/locale.texi (locale.h): Likewise.
12548         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
12549         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
12550         * doc/posix-headers/string.texi (string.h): Likewise.
12551         * doc/posix-headers/time.texi (time.h): Likewise.
12552         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
12553         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
12554
12555 2009-08-14  Eric Blake  <ebb9@byu.net>
12556
12557         doc: improve git diff of texinfo files
12558         * .gitattributes: Add rule for *.texi files, with hint on how to
12559         use it.
12560         Copied from m4, and based on a report by Bruno Haible.
12561
12562 2009-08-14  Bruno Haible  <bruno@clisp.org>
12563
12564         Disable multithread support by default on Cygwin 1.5.x for real.
12565         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
12566
12567 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
12568
12569         update-copyright: much ado about intervals
12570         * build-aux/update-copyright: Implement and document
12571         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
12572         of copyright year intervals.
12573         Also, document UPDATE_COPYRIGHT_YEAR.
12574         * tests/test-update-copyright.sh: Test it.
12575
12576         update-copyright: convert 2-digit to 4-digit years
12577         * build-aux/update-copyright: Implement and document.
12578         * tests/test-update-copyright.sh: Update.
12579
12580 2009-08-14  Jim Meyering  <meyering@redhat.com>
12581
12582         test-exclude: avoid coreutils "make check" failure
12583         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
12584         just as in test-argmatch.c.
12585
12586 2009-08-13  Eric Blake  <ebb9@byu.net>
12587
12588         test-dup2: fix bad assumption
12589         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
12590         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
12591
12592         test-version-etc: fix CRLF portability issue
12593         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
12594         recognize \r.
12595         * tests/test-argp-version-etc-1.sh: Likewise.
12596
12597         getopt: update client modules
12598         * modules/argp (Depends-on): Use getopt-gnu.
12599         * modules/git-merge-changelog (Depends-on): Likewise.
12600         * modules/long-options (Depends-on): Likewise.
12601         * modules/xstrtol (Depends-on): Likewise.
12602
12603 2009-08-13  Simon Josefsson  <simon@josefsson.org>
12604
12605         * tests/test-version-etc.sh: Don't fail on different
12606         project/version.  Don't fail on CRLF differences.  Rewrite to use
12607         multiple -e instead of multiple sed forks, suggested by Eric Blake
12608         <ebb9@byu.net>.
12609         * tests/test-argp-version-etc-1.sh: Likewise.
12610
12611 2009-08-13  Simon Josefsson  <simon@josefsson.org>
12612
12613         * tests/test-version-etc.sh: Don't fail on different
12614         project/version.
12615
12616 2009-08-12  Bruno Haible  <bruno@clisp.org>
12617
12618         Tests for modules 'getopt-posix', 'getopt-gnu'.
12619         * modules/getopt-posix-tests: New file.
12620         * tests/test-getopt.c: New file.
12621         * tests/test-getopt.h: New file.
12622         * tests/test-getopt_long.h: New file.
12623
12624         New modules 'getopt-posix', 'getopt-gnu'.
12625         * modules/getopt-gnu: New file, renamed from modules/getopt.
12626         * modules/getopt-posix: New file.
12627         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
12628         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
12629         (gl_GETOPT): Remove macro.
12630         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
12631         Disable the test against BSD systems that declare optreset. Test
12632         against mingw bug. Test against lack of support of optional arguments
12633         on many platforms.
12634         * doc/glibc-headers/getopt.texi: Update module name and list of
12635         relevant platforms.
12636         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
12637         'getopt-gnu' and more portability problems.
12638         * NEWS: Mention the changes.
12639
12640 2009-08-12  Bruno Haible  <bruno@clisp.org>
12641
12642         Ensure that optarg etc. get declared by <unistd.h>.
12643         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
12644         AC_USE_SYSTEM_EXTENSIONS.
12645         * modules/getopt (Depends-on): Add 'extensions'.
12646
12647 2009-08-12  Bruno Haible  <bruno@clisp.org>
12648
12649         Avoid test link errors.
12650         * modules/pipe-filter-ii-tests (Makefile.am): Define
12651         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
12652         * modules/pipe-filter-gi-tests (Makefile.am): Define
12653         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
12654         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12655
12656 2009-08-12  Bruno Haible  <bruno@clisp.org>
12657
12658         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
12659         gl_GETOPT_SUBSTITUTE before.
12660         (gl_GETOPT): Use it.
12661         * m4/argp.m4 (gl_ARGP): Update.
12662         Reported by Sergey Poznyakoff.
12663
12664         * m4/getopt.m4: Reorder macros.
12665         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
12666         (gl_GETOPT_SUBSTITUTE): Remove macro.
12667
12668 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
12669
12670         Minor improvement in gitlog-to-changelog
12671
12672         * build-aux/gitlog-to-changelog: New option `--format' makes
12673         output format string configurable.
12674
12675 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
12676
12677         Optimize exclude: use hash tables for non-wildcard patterns.
12678
12679         * lib/exclude.c: Include hash.h and mbuiter.h
12680         (struct exclude_pattern, exclude_segment): New data types.
12681         (struct exclude): Rewrite.
12682         (fnmatch_pattern_has_wildcards): New function.
12683         (new_exclude_segment, free_exclude_segment): New functions.
12684         (excluded_file_pattern_p, excluded_file_name_p): New functions.
12685         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
12686         * lib/exclude.h (is_fnmatch_pattern): New prototype.
12687         * modules/exclude: Depend on hash and mbuiter.
12688
12689         * modules/exclude-tests: New file.
12690         * tests/test-exclude.c: New file.
12691         * tests/test-exclude1.sh: New file.
12692         * tests/test-exclude2.sh: New file.
12693         * tests/test-exclude3.sh: New file.
12694         * tests/test-exclude4.sh: New file.
12695         * tests/test-exclude5.sh: New file.
12696         * tests/test-exclude6.sh: New file.
12697         * tests/test-exclude7.sh: New file.
12698
12699 2009-08-12  Bruno Haible  <bruno@clisp.org>
12700
12701         Ensure that getopt() gets declared by <unistd.h>.
12702         * lib/unistd.in.h: Conditionally include getopt.h.
12703         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
12704         Set GNULIB_UNISTD_H_GETOPT.
12705         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12706         GNULIB_UNISTD_H_GETOPT.
12707         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
12708
12709 2009-08-12  Bruno Haible  <bruno@clisp.org>
12710
12711         Clarify logic.
12712         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
12713         gl_replace_getopt instead of GETOPT_H.
12714
12715 2009-08-12  Bruno Haible  <bruno@clisp.org>
12716
12717         * m4/getopt.m4: Add comments.
12718
12719 2009-08-12  Bruno Haible  <bruno@clisp.org>
12720
12721         Disable multithread support by default on Cygwin 1.5.x.
12722         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
12723         set gl_use_threads=no if not specified otherwise.
12724
12725 2009-08-11  Bruno Haible  <bruno@clisp.org>
12726
12727         Avoid compilation error on NetBSD 5.0.
12728         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
12729         * tests/test-stdio.c: Likewise.
12730         * tests/test-stdlib.c: Likewise.
12731         * tests/test-string.c: Likewise.
12732         * tests/test-unistd.c: Likewise.
12733         Reported by Greg Troxel <gdt@ir.bbn.com>
12734         at <https://savannah.gnu.org/support/?106973>.
12735
12736 2009-08-11  Bruno Haible  <bruno@clisp.org>
12737
12738         * modules/dup2-tests (Depends-on): Remove close.
12739
12740         Undo 2009-07-19 commit.
12741         * modules/acl-tests (Depends-on): Remove close.
12742         * modules/binary-io-tests (Depends-on): Likewise.
12743         * modules/closein-tests (Depends-on): Likewise.
12744         * modules/flock-tests (Depends-on): Likewise.
12745         * modules/fsync-tests (Depends-on): Likewise.
12746         * modules/lseek-tests (Depends-on): Likewise.
12747         * modules/pipe-tests (Depends-on): Likewise.
12748         * modules/posix_spawn-tests (Depends-on): Likewise.
12749         * modules/posix_spawnp-tests (Depends-on): Likewise.
12750         * modules/stat-time-tests (Depends-on): Likewise.
12751         * modules/yesno-tests (Depends-on): Likewise.
12752
12753 2009-08-10  Bruno Haible  <bruno@clisp.org>
12754
12755         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
12756
12757 2009-08-10  Bruno Haible  <bruno@clisp.org>
12758
12759         Fix a gcc warning.
12760         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
12761
12762 2009-08-10  Bruno Haible  <bruno@clisp.org>
12763
12764         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
12765         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
12766         not only the first time.
12767         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
12768         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
12769         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
12770         is 1, not only the the first time.
12771
12772 2009-08-10  Bruno Haible  <bruno@clisp.org>
12773
12774         Make it possible to use module 'gethostname' without module 'close'.
12775         * lib/unistd.in.h (close): Evoke a link error only if
12776         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
12777         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12778         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12779         * modules/unistd (Makefile.am): Substitute
12780         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12781         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
12782         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
12783         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
12784         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12785         * modules/sys_ioctl (Makefile.am): Substitute
12786         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12787         * modules/socket (configure.ac): On native Windows, set
12788         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
12789         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12790         Reported by Sam Steingold <sds@gnu.org>.
12791
12792 2009-08-10  Bruno Haible  <bruno@clisp.org>
12793
12794         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
12795         * modules/ioctl (configure.ac): Likewise.
12796
12797 2009-08-10  Bruno Haible  <bruno@clisp.org>
12798
12799         Avoid collision between gnulib wrapper and libintl wrapper.
12800         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
12801         already defined in intl/printf.c.
12802         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
12803         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
12804
12805 2009-08-09  Bruno Haible  <bruno@clisp.org>
12806
12807         Make <sys/select.h> really self-contained, also on Solaris 10.
12808         * lib/sys_select.in.h: Include <string.h>.
12809         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
12810         Solaris 10 problem.
12811         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
12812         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
12813         Reported by Jim Meyering.
12814
12815 2009-08-09  Bruno Haible  <bruno@clisp.org>
12816
12817         Avoid warnings from 'aclocal' that are due to a use of macro name
12818         AM_XGETTEXT_OPTION that is not defined in automake.
12819         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
12820         automake.
12821         * modules/error (configure.ac): Likewise.
12822         * modules/propername (configure.ac): Likewise.
12823         * modules/vasprintf (configure.ac): Likewise.
12824         * modules/verror (configure.ac): Likewise.
12825         * modules/xprintf (configure.ac): Likewise.
12826         * modules/xvasprintf (configure.ac): Likewise.
12827
12828 2009-08-08  Bruno Haible  <bruno@clisp.org>
12829
12830         Avoid compilation error in C++ mode.
12831         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
12832         Reported by Sam Steingold <sds@gnu.org>.
12833
12834 2009-08-08  Bruno Haible  <bruno@clisp.org>
12835
12836         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
12837         for the various Unix platforms.
12838         * doc/posix-headers/limits.texi: Update platforms list regarding
12839         HOST_NAME_MAX.
12840         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12841
12842 2009-08-07  Jim Meyering  <meyering@redhat.com>
12843
12844         selinux-at: fix typo in a comment
12845         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
12846         Spotted by Paolo Bonzini.
12847
12848         selinux-at: remove redundant m4 code, add documentation
12849         * modules/selinux-at (configure.ac): Remove redundant code.
12850         LIB_SELINUX is already set via the dependent module, selinux-h.
12851         (Include): Add quotes around selinux-at.h.
12852         * lib/selinux-at.h: Add documentation.
12853         Reported by Bruno Haible in
12854         http://marc.info/?l=gnulib-bug&m=124958988300749
12855
12856 2009-08-07  Bruno Haible  <bruno@clisp.org>
12857
12858         Avoid link error on MacOS X 10.3 and 10.4.
12859         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
12860         on non-ELF systems.
12861         * lib/argp-pv.c (argp_program_version): Likewise.
12862         Reported by Simon Josefsson.
12863
12864 2009-08-07  Simon Josefsson  <simon@josefsson.org>
12865
12866         * tests/test-version-etc.sh: Use $EXEEXT.
12867
12868 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
12869
12870         update-copyright: update documentation to point to maint.mk
12871         * build-aux/update-copyright: Here.
12872
12873 2009-08-06  Jim Meyering  <meyering@redhat.com>
12874
12875         maint.mk: support update-copyright-local
12876         * top/maint.mk (update-copyright-local): Define place-holder.
12877         (update-copyright): Depend on $(update-copyright-local).
12878
12879 2009-08-06  Jim Meyering  <meyering@redhat.com>
12880
12881         selinux-at: new module
12882         Initially written for coreutils, this module will soon be
12883         used by findutils, too.
12884         * MODULES.html.sh [Misc]: Add selinux-at.
12885         * lib/selinux-at.h: New file, from coreutils.
12886         * lib/selinux-at.c: Likewise.
12887         * modules/selinux-at: Likewise.
12888         (License): Change from LGPL to GPL, since it depends
12889         on the GPL'd openat module.
12890
12891         doc: update README
12892         * README: Remove references to cogito.
12893         Remove cvs-repo-updating instructions from 2007.
12894         Don't imply that CVS is better if you have limited disk space.
12895
12896 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12897
12898         update-copyright: support C-style comments
12899         * build-aux/update-copyright: Implement and document.
12900         * tests/test-update-copyright.sh: Test.
12901
12902 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12903
12904         update-copyright: support omitted "(C)"
12905         * build-aux/update-copyright: Implement and document.  Also,
12906         allow variable whitespace before "(C)".
12907         * tests/test-update-copyright.sh: Test.
12908
12909 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12910
12911         update-copyright: don't trip on non-FSF copyright statements
12912         * build-aux/update-copyright: Fix so that the first correctly
12913         formatted FSF copyright statement is recognized no matter what
12914         appears before it.  Update documentation.
12915         * tests/test-update-copyright.sh: Test that.
12916
12917 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12918
12919         update-copyright: clean up code a little
12920         * build-aux/update-copyright: Append "_re" to the name of any
12921         variable holding a regular expression.
12922         Replace "old" and "new" with "stmt" in variable names.
12923         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
12924         handled correctly.
12925         Format code more consistently.
12926
12927 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
12928
12929         update-copyright-tests: improve portability
12930         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
12931         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
12932
12933 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
12934
12935         update-copyright: support @copyright{} and &copy;
12936         * build-aux/update-copyright: Implement and document.
12937         * tests/test-update-copyright.sh: Test.
12938
12939 2009-08-04  Jim Meyering  <meyering@redhat.com>
12940
12941         update-copyright-tests: correctly test EOL=\r\n handling
12942         * tests/test-update-copyright.sh: Put \r at the end of some lines
12943         for the dos-eol tests.  Based on a patch by Joel E. Denny.
12944
12945         maint.mk: make update-copyright exclusion list more configurable
12946         * top/maint.mk (update-copyright): Default to excluding COPYING,
12947         but allow an override, in case someone does want to update that file.
12948
12949         maint.mk: don't update copyright date in COPYING
12950         * top/maint.mk (update-copyright): Exclude COPYING.
12951
12952         maint.mk: add a copyright-updating rule
12953         * top/maint.mk (update-copyright): New rule.
12954         Derived from coreutils/Makefile.am.
12955
12956         update-copyright: rename some variables
12957         * build-aux/update-copyright: Rename a few variables for clarity.
12958         Tweak syntax.  List Joel E. Denny as coauthor.
12959
12960 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
12961
12962         update-copyright: fix bug for 2-digit last year and add tests
12963         * build-aux/update-copyright: Fix bug.
12964         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
12965         specified.
12966         * modules/update-copyright-tests: New
12967         * tests/test-update-copyright.sh: New.
12968
12969 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
12970
12971         update-copyright: handle leading tabs in line prefix
12972         * build-aux/update-copyright: Count leading tabs as 8 spaces
12973         when computing margin.  This helps with the formatting of
12974         ChangeLogs, for example.
12975         Fix documentation a little.
12976
12977 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
12978
12979         update-copyright: support EOL=\r\n
12980         * build-aux/update-copyright: Implement that.
12981
12982 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
12983
12984         update-copyright: automatically format copyright statements
12985         * build-aux/update-copyright: Implement that.
12986         Also, be a little more predictable and safer by always failing
12987         when the full copyright format is not perfectly recognized as an
12988         unbroken whole.  Discussed at
12989         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
12990         Rewrite documentation.
12991
12992 2009-08-03  Bruno Haible  <bruno@clisp.org>
12993
12994         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
12995
12996 2009-08-02  Bruno Haible  <bruno@clisp.org>
12997
12998         Tests for module 'uname'.
12999         * modules/uname-tests: New file.
13000         * tests/test-uname.c: New file.
13001
13002         New module 'uname'.
13003         * lib/uname.c: New file.
13004         * m4/uname.m4: New file.
13005         * modules/uname: New file.
13006         * doc/posix-functions/uname.texi: Mention the new module.
13007
13008 2009-08-02  Bruno Haible  <bruno@clisp.org>
13009
13010         Tests for module 'sys_utsname'.
13011         * modules/sys_utsname-tests: New file.
13012         * tests/test-sys_utsname.c: New file.
13013
13014         New module 'sys_utsname'.
13015         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
13016         * m4/sys_utsname_h.m4: New file.
13017         * modules/sys_utsname: New file.
13018         * doc/posix-headers/sys_utsname.texi: Mention the new module.
13019
13020 2009-08-02  Bruno Haible  <bruno@clisp.org>
13021
13022         Implicitly initialize the sockets library.
13023         * lib/gethostname.c: Include sockets.h.
13024         (rpl_gethostname): Invoke gl_sockets_startup.
13025         * lib/socket.c: Include sockets.h.
13026         (rpl_socket): Invoke gl_sockets_startup.
13027         * modules/gethostname (Depends-on): Add sockets.
13028         * modules/socket (Depends-on): Likewise.
13029         * tests/test-poll.c: Don't include sockets.h.
13030         (main): Don't invoke gl_sockets_startup.
13031         * tests/test-select.c: Don't include sockets.h.
13032         (main): Don't invoke gl_sockets_startup.
13033
13034 2009-08-02  Bruno Haible  <bruno@clisp.org>
13035
13036         Allow multiple calls to gl_sockets_startup.
13037         * lib/sockets.c (initialized_sockets_version): New variable.
13038         (gl_sockets_startup): Do nothing if already called for this or a higher
13039         version.
13040         (gl_sockets_cleanup): Reset initialized_sockets_version.
13041
13042 2009-08-03  Simon Josefsson  <simon@josefsson.org>
13043
13044         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
13045         different project/version.
13046
13047 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
13048             Bruno Haible  <bruno@clisp.org>
13049
13050         Tests for module 'pipe-filter-gi'.
13051         * modules/pipe-filter-gi-tests: New file.
13052         * tests/test-pipe-filter-gi1.sh: New file.
13053         * tests/test-pipe-filter-gi1.c: New file.
13054         * tests/test-pipe-filter-gi2.sh: New file.
13055         * tests/test-pipe-filter-gi2-main.c: New file.
13056         * tests/test-pipe-filter-gi2-child.c: New file.
13057
13058         New module 'pipe-filter-gi'.
13059         * lib/pipe-filter-gi.c: New file.
13060         * modules/pipe-filter-gi: New file.
13061
13062 2009-08-02  Bruno Haible  <bruno@clisp.org>
13063             Paolo Bonzini  <bonzini@gnu.org>
13064
13065         Tests for module 'pipe-filter-ii'.
13066         * modules/pipe-filter-ii-tests: New file.
13067         * tests/test-pipe-filter-ii1.sh: New file.
13068         * tests/test-pipe-filter-ii1.c: New file.
13069         * tests/test-pipe-filter-ii2.sh: New file.
13070         * tests/test-pipe-filter-ii2-main.c: New file.
13071         * tests/test-pipe-filter-ii2-child.c: New file.
13072
13073         New module 'pipe-filter-ii'.
13074         * lib/pipe-filter.h: New file.
13075         * lib/pipe-filter-ii.c: New file.
13076         * lib/pipe-filter-aux.h: New file.
13077         * modules/pipe-filter-ii: New file.
13078
13079 2009-08-02  Simon Josefsson  <simon@josefsson.org>
13080
13081         * lib/gc-libgcrypt.c: Change copyright to FSF.
13082         * lib/gc-gnulib.c: Likewise.
13083
13084 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
13085
13086         * lib/gethostname.c: Include limits.h.
13087
13088 2009-08-02  Simon Josefsson  <simon@josefsson.org>
13089             Bruno Haible  <bruno@clisp.org>
13090
13091         Ensure HOST_NAME_MAX as part of the gethostname module.
13092         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
13093         define also HOST_NAME_MAX.
13094         * tests/test-gethostname.c: Include <limits.h>.
13095         (main): Check also HOST_NAME_MAX.
13096         * doc/posix-headers/limits.texi: Document the mingw problem.
13097
13098 2009-08-02  Bruno Haible  <bruno@clisp.org>
13099
13100         * lib/gethostname.c (gethostname): Fix handling of large len argument.
13101         Add comments.
13102
13103 2009-03-31  Simon Josefsson  <simon@josefsson.org>
13104
13105         * lib/gethostname.c: Add Windows wrapper.
13106         * m4/gethostname.m4: Look for gethostname in -lws2_32.
13107         * modules/gethostname: Depend on sys_socket & errno, for also
13108         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
13109         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
13110
13111 2009-07-31  Jim Meyering  <meyering@redhat.com>
13112
13113         getloadavg: fix symbol name in comment
13114         * lib/getloadavg.c: Correct a typo I introduced when adding
13115         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
13116         Matt Kraai spotted the problem.
13117
13118 2009-07-29  Matt Kraai  <mkraai@beckman.com>
13119
13120         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
13121         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
13122         code also if ! defined N_NAME_POINTER.
13123         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
13124         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
13125         but the n_name member is a 12-byte array.
13126
13127 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
13128
13129         update-copyright: generalize comment handling
13130         * build-aux/update-copyright: Handle copyright statements
13131         within more comment styles.
13132         Document usage.
13133         Report any file with an external copyright holder or parse failure.
13134
13135 2009-07-29  Jim Meyering  <meyering@redhat.com>
13136
13137         mktime: correct setting of REPLACE_MKTIME
13138         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
13139
13140         update-copyright: new module
13141         * modules/update-copyright: New file.
13142         * build-aux/update-copyright: New file.
13143         * MODULES.html.sh (maint+release support): Add update-copyright.
13144
13145 2009-07-27  Bruno Haible  <bruno@clisp.org>
13146
13147         Fix compilation error when <ctime> is used and mktime is replaced.
13148         * lib/time.in.h (mktime): New declaration.
13149         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
13150         REPLACE_MKTIME instead of defining mktime in config.h.
13151         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
13152         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
13153         Reported by Ross McFarland <rwmcfa1@neces.com>.
13154
13155 2009-07-27  Bruno Haible  <bruno@clisp.org>
13156
13157         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
13158         Reported by Matt Kraai <mkraai@beckman.com>.
13159
13160 2009-07-25  Jim Meyering  <meyering@redhat.com>
13161
13162         maint.mk: avoid warnings about missing files
13163         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
13164         diagnostic when .prev-version does not exist.
13165         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
13166         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
13167         nonexistent cfg.mk.
13168         Suggestions from Simon Josefsson.
13169
13170 2009-07-25  Bruno Haible  <bruno@clisp.org>
13171
13172         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
13173         defined as macros. Needed on QNX 6.4.1.
13174         Reported by Matt Kraai <mkraai@beckman.com>.
13175
13176 2009-07-23  Jim Meyering  <meyering@redhat.com>
13177
13178         maint.mk: invoke "make dist" with a working value of XZ_OPT
13179         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
13180
13181 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
13182
13183         Make fseeko.c compile on QNX.
13184         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
13185
13186 2009-07-22  Peter Simons  <simons@cryp.to>
13187
13188         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
13189         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
13190         * lib/md4.h: Likewise.
13191         * lib/md5.h: Likewise.
13192         * lib/sha1.h: Likewise.
13193         * lib/sha256.h: Likewise.
13194         * lib/sha512.h: Likewise.
13195
13196         tests-sha1: don't assign literal string to 'char *' variable
13197         * tests/test-sha1.c (main): Declare locals with "const" to match
13198         attributes of the right hand side.
13199
13200 2009-07-21  Eric Blake  <ebb9@byu.net>
13201
13202         dup2: fix more mingw problems
13203         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
13204         fd to itself.
13205         * doc/posix-functions/dup2.texi (dup2): Document the bug.
13206         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
13207         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
13208         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
13209         care of mingw bugs.
13210
13211 2009-07-21  Jim Meyering  <meyering@redhat.com>
13212
13213         vc-list-files: avoid failure when /bin/sh is dash
13214         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
13215         On some Debian based systems, /bin/sh is a symlink to dash, and running
13216         this command would omit the "/" following each 'tests' prefix:
13217           dash -x build-aux/vc-list-files -C . tests
13218         That is because bash and dash work differently:
13219           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
13220           bash ok
13221           dash odd
13222
13223 2009-07-21  Eric Blake  <ebb9@byu.net>
13224
13225         dup2-tests: test previous patch
13226         * modules/dup2-tests: New file.
13227         * tests/test-dup2.c: Likewise.
13228         * tests/test-open.c (main): Avoid unspecified behavior.
13229         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
13230         test.
13231
13232         dup2: work around mingw and cygwin 1.5 bug
13233         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
13234         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
13235         * modules/unistd (Makefile.am): Substitute it.
13236         * lib/unistd.in.h (dup2): Declare the replacement.
13237         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
13238         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
13239         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
13240         * modules/execute (Depends-on): Add dup2.
13241         * modules/fseterr (Depends-on): Likewise.
13242         * modules/pipe (Depends-on): Likewise.
13243         * modules/posix_spawn-internal (Depends-on): Likewise.
13244
13245 2009-07-21  Bruno Haible  <bruno@clisp.org>
13246
13247         * modules/.gitattributes: New file.
13248
13249 2009-07-20  Bruno Haible  <bruno@clisp.org>
13250
13251         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
13252         (main): Use it.
13253
13254 2009-07-20  Eric Blake  <ebb9@byu.net>
13255
13256         test-pipe: make a bit more robust.
13257         * tests/test-pipe.c (myerr): Allow error messages regardless of
13258         what we do to stderr.
13259         (test_pipe): Rearrange to avoid deadlock.
13260         (child_main): Try a larger read, to ensure we avoided deadlock.
13261         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
13262         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
13263         if misused.
13264
13265 2009-07-19  Jim Meyering  <meyering@redhat.com>
13266
13267         fts: avoid false-positive cycle-detection
13268         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
13269         for each new command line argument.
13270
13271 2009-07-19  Bruno Haible  <bruno@clisp.org>
13272
13273         Fix build error on mingw with the modules sys_select and unistd.
13274         * modules/acl-tests (Depends-on): Add close.
13275         * modules/binary-io-tests (Depends-on): Likewise.
13276         * modules/closein-tests (Depends-on): Likewise.
13277         * modules/flock-tests (Depends-on): Likewise.
13278         * modules/fsync-tests (Depends-on): Likewise.
13279         * modules/lseek-tests (Depends-on): Likewise.
13280         * modules/pipe-tests (Depends-on): Likewise.
13281         * modules/posix_spawn-tests (Depends-on): Likewise.
13282         * modules/posix_spawnp-tests (Depends-on): Likewise.
13283         * modules/stat-time-tests (Depends-on): Likewise.
13284         * modules/yesno-tests (Depends-on): Likewise.
13285
13286 2009-07-19  Bruno Haible  <bruno@clisp.org>
13287
13288         Unify conditionals.
13289         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
13290         macros, not at the compiler macros.
13291         * lib/pipe.c: Likewise.
13292         * lib/execute.c: Likewise.
13293         * lib/spawni.c: Likewise.
13294
13295 2009-07-19  Bruno Haible  <bruno@clisp.org>
13296
13297         Fix handling of closed stdin/stdout/stderr on mingw.
13298         * lib/w32spawn.h: Include unistd.h.
13299         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
13300         file descriptor with O_NOINHERIT flag.
13301         (fd_safer_noinherit): New function, based on fd-safer.c.
13302         (dup_safer_noinherit): New function, based on dup-safer.c.
13303         (undup_safer_noinherit): New function.
13304         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
13305         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
13306         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
13307         instead of fd_safer.
13308         * tests/test-pipe.c: Include <windows.h>.
13309         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
13310
13311         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
13312         from main.
13313         (test_pipe): Pass an extra argument for disambiguation.
13314         (main): Invoke parent_main or child_main.
13315
13316         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
13317         consistently.
13318
13319 2009-07-18  Eric Blake  <ebb9@byu.net>
13320
13321         test-pipe: fix mingw build
13322         * tests/test-pipe.c (main): Avoid fcntl on mingw.
13323
13324 2009-07-18  Bruno Haible  <bruno@clisp.org>
13325
13326         * modules/pipe-tests (Makefile.am): Fix typo.
13327
13328 2009-07-18  Eric Blake  <ebb9@byu.net>
13329
13330         error: fix mingw build
13331         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
13332         Reported by Bruno Haible.
13333
13334         error: avoid undefined use of stdout
13335         * lib/error.c (error, error_at_line): Check that fd 1 is open
13336         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
13337         is handling faults and the close_stdout module wants to report the
13338         detection of closed stdout as an error.
13339
13340 2009-07-17  Eric Blake  <ebb9@byu.net>
13341
13342         pipe: be robust in face of closed fds
13343         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
13344         should cause child to misbehave.
13345         * modules/pipe-tests: New module.
13346         * tests/test-pipe.c: New file.
13347         * tests/test-pipe.sh: New file.
13348         Reported by Akim Demaille.
13349
13350 2009-07-14  Bruno Haible  <bruno@clisp.org>
13351
13352         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
13353         Reported by anonymous kc.
13354
13355 2009-07-07  Jim Meyering  <meyering@redhat.com>
13356
13357         maint.mk: don't look for translatable strings in *.m4 or *.mk
13358         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
13359         when searching for translatable strings.
13360
13361 2009-07-05  Jim Meyering  <meyering@redhat.com>
13362
13363         remove superfluous parentheses in STREQ definition
13364         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
13365         * lib/getugroups.c (STREQ): Likewise.
13366         * lib/fnmatch.c (STREQ): Likewise.
13367         Spotted by Bruno Haible.
13368
13369 2009-07-04  Jim Meyering  <meyering@redhat.com>
13370
13371         argv-iter: new module
13372         * MODULES.html.sh: Add argv-iter.
13373         * lib/argv-iter.c, lib/argv-iter.h: New files.
13374         * modules/argv-iter: New file.
13375         * modules/argv-iter-tests: New file.
13376         * tests/test-argv-iter.c: Test it.
13377
13378 2009-07-04  Bruno Haible  <bruno@clisp.org>
13379
13380         Fix assertion.
13381         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
13382         contains more exact copies of a given entry than file2, leave the extra
13383         copies unpaired rather than aborting.
13384         Reported by Eric Blake.
13385
13386 2009-07-02  Bruno Haible  <bruno@clisp.org>
13387
13388         Speedup git-merge-changelog for git cherry-pick.
13389         * lib/git-merge-changelog.c (struct entries_mapping): New type.
13390         (entries_mapping_get): New function, extracted from compute_mapping.
13391         (entries_mapping_reverse_get): New function.
13392         (compute_mapping): Add a 'full' argument. Return the result in a
13393         'struct entries_mapping'.
13394         (main): Update. Access the mappings through entries_mapping_get.
13395         Reported by Eric Blake.
13396
13397 2009-07-02  Bruno Haible  <bruno@clisp.org>
13398
13399         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
13400         best_i.
13401
13402 2009-07-02  Bruno Haible  <bruno@clisp.org>
13403
13404         Speed up approximate search for matching ChangeLog entries.
13405         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
13406         argument. Call fstrcmp_bounded instead of fstrcmp.
13407         (compute_mapping, try_split_merged_entry, main): Update callers.
13408
13409 2009-07-02  Bruno Haible  <bruno@clisp.org>
13410
13411         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
13412
13413 2009-06-30  Bruno Haible  <bruno@clisp.org>
13414
13415         Reduce the number of uc_is_cased calls.
13416         * lib/unicase.h (casing_suffix_context_t): Add
13417         'first_char_except_ignorable' field.
13418         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
13419         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
13420         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
13421         Update initializer.
13422         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
13423         case-ignorable characters.
13424         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
13425         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
13426         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
13427         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
13428         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
13429
13430 2009-06-30  Bruno Haible  <bruno@clisp.org>
13431
13432         Tests for module 'unicase/ignorable'.
13433         * modules/unicase/ignorable-tests: New file.
13434         * tests/unicase/test-ignorable.c: New file, generated by
13435         gen-uni-tables.
13436
13437         Tests for module 'unicase/cased'.
13438         * modules/unicase/cased-tests: New file.
13439         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
13440         * tests/unicase/test-predicate-part1.h: New file, derived from
13441         tests/unictype/test-predicate-part1.h.
13442         * tests/unicase/test-predicate-part2.h: New file, same as
13443         tests/unictype/test-predicate-part2.h.
13444
13445         Fix evaluation of "Before C" condition of FINAL_SIGMA.
13446         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
13447         (output_casing_properties): New function.
13448         (main): Call it.
13449         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
13450         * lib/unicase/cased.c: Include unictype/bitmap.h.
13451         (uc_is_cased): Define through a bitmap lookup.
13452         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
13453         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
13454         (uc_is_case_ignorable): Define through a bitmap lookup.
13455         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
13456         lib/unictype/bitmap.h.
13457         (Depends-on): Add inline. Clean up.
13458         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
13459         lib/unictype/bitmap.h.
13460         (Depends-on): Add inline. Clean up.
13461         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
13462         recognition.
13463         * tests/unicase/test-u16-tolower.c (main): Likewise.
13464         * tests/unicase/test-u32-tolower.c (main): Likewise.
13465
13466 2009-06-30  Bruno Haible  <bruno@clisp.org>
13467
13468         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
13469         * lib/unicase/u16-casemap.c: Likewise.
13470         * lib/unicase/u32-casemap.c: Likewise.
13471
13472 2009-06-29  Bruno Haible  <bruno@clisp.org>
13473
13474         Define u32_casefold as a wrapper around u32_ct_casefold.
13475         * lib/unicase/u32-casefold.c: Update.
13476         * modules/unicase/u32-casefold (Depends-on): Add
13477         unicase/u32-ct-casefold, unicase/empty-prefix-context,
13478         unicase/empty-suffix-context. Clean up.
13479
13480         Define u16_casefold as a wrapper around u16_ct_casefold.
13481         * lib/unicase/u16-casefold.c: Update.
13482         * modules/unicase/u16-casefold (Depends-on): Add
13483         unicase/u16-ct-casefold, unicase/empty-prefix-context,
13484         unicase/empty-suffix-context. Clean up.
13485
13486         Define u8_casefold as a wrapper around u8_ct_casefold.
13487         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
13488         * lib/unicase/u8-casefold.c: Update.
13489         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
13490         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13491
13492         Define u32_totitle as a wrapper around u32_ct_totitle.
13493         * lib/unicase/u32-totitle.c: Update.
13494         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
13495         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13496
13497         Define u16_totitle as a wrapper around u16_ct_totitle.
13498         * lib/unicase/u16-totitle.c: Update.
13499         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
13500         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13501
13502         Define u8_totitle as a wrapper around u8_ct_totitle.
13503         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
13504         functions.
13505         (FUNC): Delegate to U_CT_TOTITLE.
13506         * lib/unicase/u8-totitle.c: Update.
13507         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
13508         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13509
13510         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
13511         invocation.
13512         * modules/unicase/u32-tolower (Depends-on): Add
13513         unicase/empty-prefix-context, unicase/empty-suffix-context.
13514
13515         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
13516         invocation.
13517         * modules/unicase/u16-tolower (Depends-on): Add
13518         unicase/empty-prefix-context, unicase/empty-suffix-context.
13519
13520         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
13521         * modules/unicase/u8-tolower (Depends-on): Add
13522         unicase/empty-prefix-context, unicase/empty-suffix-context.
13523
13524         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
13525         invocation.
13526         * modules/unicase/u32-toupper (Depends-on): Add
13527         unicase/empty-prefix-context, unicase/empty-suffix-context.
13528
13529         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
13530         invocation.
13531         * modules/unicase/u16-toupper (Depends-on): Add
13532         unicase/empty-prefix-context, unicase/empty-suffix-context.
13533
13534         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
13535         * modules/unicase/u8-toupper (Depends-on): Add
13536         unicase/empty-prefix-context, unicase/empty-suffix-context.
13537
13538         New module 'unicase/u32-ct-casefold'.
13539         * lib/unicase/u32-ct-casefold.c: New file.
13540         * modules/unicase/u32-ct-casefold: New file.
13541
13542         New module 'unicase/u16-ct-casefold'.
13543         * lib/unicase/u16-ct-casefold.c: New file.
13544         * modules/unicase/u16-ct-casefold: New file.
13545
13546         New module 'unicase/u8-ct-casefold'.
13547         * lib/unicase/u8-ct-casefold.c: New file.
13548         * lib/unicase/u-ct-casefold.h: New file, derived from
13549         lib/unicase/u-casefold.h.
13550         * modules/unicase/u8-ct-casefold: New file.
13551
13552         New module 'unicase/u32-ct-totitle'.
13553         * lib/unicase/u32-ct-totitle.c: New file.
13554         * modules/unicase/u32-ct-totitle: New file.
13555
13556         New module 'unicase/u16-ct-totitle'.
13557         * lib/unicase/u16-ct-totitle.c: New file.
13558         * modules/unicase/u16-ct-totitle: New file.
13559
13560         New module 'unicase/u8-ct-totitle'.
13561         * lib/unicase/u8-ct-totitle.c: New file.
13562         * lib/unicase/u-ct-totitle.h: New file, derived from
13563         lib/unicase/u-totitle.h.
13564         * modules/unicase/u8-ct-totitle: New file.
13565
13566         New module 'unicase/u32-ct-tolower'.
13567         * lib/unicase/u32-ct-tolower.c: New file.
13568         * modules/unicase/u32-ct-tolower: New file.
13569
13570         New module 'unicase/u16-ct-tolower'.
13571         * lib/unicase/u16-ct-tolower.c: New file.
13572         * modules/unicase/u16-ct-tolower: New file.
13573
13574         New module 'unicase/u8-ct-tolower'.
13575         * lib/unicase/u8-ct-tolower.c: New file.
13576         * modules/unicase/u8-ct-tolower: New file.
13577
13578         New module 'unicase/u32-ct-toupper'.
13579         * lib/unicase/u32-ct-toupper.c: New file.
13580         * modules/unicase/u32-ct-toupper: New file.
13581
13582         New module 'unicase/u16-ct-toupper'.
13583         * lib/unicase/u16-ct-toupper.c: New file.
13584         * modules/unicase/u16-ct-toupper: New file.
13585
13586         New module 'unicase/u8-ct-toupper'.
13587         * lib/unicase/u8-ct-toupper.c: New file.
13588         * modules/unicase/u8-ct-toupper: New file.
13589
13590         Add context arguments to u*_casemap functions.
13591         * lib/unicase/unicasemap.h: Include unicase.h.
13592         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
13593         suffix_context arguments.
13594         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
13595         functions.
13596         (FUNC): Add prefix_context and suffix_context arguments. Use
13597         uc_is_cased and uc_is_case_ignorable.
13598         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
13599         * lib/unicase/u16-casemap.c: Likewise.
13600         * lib/unicase/u32-casemap.c: Likewise.
13601         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
13602         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
13603         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
13604         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
13605         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
13606         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
13607
13608         New module 'unicase/u32-suffix-context'.
13609         * lib/unicase/u32-suffix-context.c: New file.
13610         * modules/unicase/u32-suffix-context: New file.
13611
13612         New module 'unicase/u16-suffix-context'.
13613         * lib/unicase/u16-suffix-context.c: New file.
13614         * modules/unicase/u16-suffix-context: New file.
13615
13616         New module 'unicase/u8-suffix-context'.
13617         * lib/unicase/u8-suffix-context.c: New file.
13618         * lib/unicase/u-suffix-context.h: New file.
13619         * modules/unicase/u8-suffix-context: New file.
13620
13621         New module 'unicase/empty-suffix-context'.
13622         * lib/unicase/empty-suffix-context.c: New file.
13623         * modules/unicase/empty-suffix-context: New file.
13624
13625         New module 'unicase/u32-prefix-context'.
13626         * lib/unicase/u32-prefix-context.c: New file.
13627         * modules/unicase/u32-prefix-context: New file.
13628
13629         New module 'unicase/u16-prefix-context'.
13630         * lib/unicase/u16-prefix-context.c: New file.
13631         * modules/unicase/u16-prefix-context: New file.
13632
13633         New module 'unicase/u8-prefix-context'.
13634         * lib/unicase/u8-prefix-context.c: New file.
13635         * lib/unicase/u-prefix-context.h: New file.
13636         * lib/unicase/context.h: New file.
13637         * modules/unicase/u8-prefix-context: New file.
13638
13639         New module 'unicase/empty-prefix-context'.
13640         * lib/unicase/empty-prefix-context.c: New file.
13641         * modules/unicase/empty-prefix-context: New file.
13642
13643         New module 'unicase/ignorable'.
13644         * lib/unicase/ignorable.c: New file.
13645         * modules/unicase/ignorable: New file.
13646
13647         New module 'unicase/cased'.
13648         * lib/unicase/caseprop.h: New file.
13649         * lib/unicase/cased.c: New file.
13650         * modules/unicase/cased: New file.
13651
13652         New functions for case mapping of substrings.
13653         * lib/unicase.h (casing_prefix_context_t): New type.
13654         (unicase_empty_prefix_context): New variable.
13655         (u8_casing_prefix_context, u16_casing_prefix_context,
13656         u32_casing_prefix_context, u8_casing_prefixes_context,
13657         u16_casing_prefixes_context, u32_casing_prefixes_context): New
13658         declarations.
13659         (casing_suffix_context_t): New type.
13660         (unicase_empty_suffix_context): New variable.
13661         (u8_casing_suffix_context, u16_casing_suffix_context,
13662         u32_casing_suffix_context, u8_casing_suffixes_context,
13663         u16_casing_suffixes_context, u32_casing_suffixes_context,
13664         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
13665         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
13666         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
13667         declarations.
13668
13669 2009-06-28  Jim Meyering  <meyering@redhat.com>
13670
13671         boostrap: indent only with spaces
13672         * build-aux/bootstrap: Indent only with spaces, never TABs.
13673
13674         bootstrap: split long lines
13675         * build-aux/bootstrap: Keep line length < 80.
13676
13677         bootstrap: sync from coreutils
13678         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
13679         just as autoreconf does.  Verify a list of prerequisite
13680         package-name,version-number pairs if defined in bootstrap.conf.
13681         Refer to README-prereq, if prerequisites are not satisfied.
13682
13683 2009-06-27  Eric Blake  <ebb9@byu.net>
13684
13685         tests: add test for bogus NULL definition
13686         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
13687         * tests/test-stdlib.c: Likewise.
13688         * tests/test-string.c: Likewise.
13689         * tests/test-locale.c: Likewise.
13690         * tests/test-unistd.c: Likewise.
13691         * modules/stdio-tests (Depends-on): Add verify.
13692         * modules/stdlib-tests (Depends-on): Likewise.
13693         * modules/string-tests (Depends-on): Likewise.
13694         * modules/locale-tests (Depends-on): Likewise.
13695         * modules/unistd-tests (Depends-on): Likewise.
13696
13697 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
13698
13699         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
13700         self-explaining comment.
13701         * m4/selinux-selinux-h: Update serial.
13702         (gl_LIBSELINUX): New macro, adding a warning for missing development
13703         packages to code extracted from...
13704         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
13705         Add warning for missing development packages here, too.
13706
13707 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
13708
13709         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
13710
13711 2009-06-25  Eric Blake  <ebb9@byu.net>
13712
13713         version-etc: fix regression
13714         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
13715         gcc.
13716         (version_etc): Use it, to catch bugs with trailing NULL.
13717         * lib/version-etc.c (version_etc_arn): Delete unused argument.
13718         (version_etc_va): Fix logic bug.
13719         * modules/version-etc-tests: Add test.
13720         * tests/test-version-etc.c: New file.
13721         * tests/test-version-etc.sh: Likewise.
13722
13723 2009-06-25  Sam Steingold  <sds@gnu.org>
13724
13725         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
13726         mbtowc declaration.
13727
13728 2009-06-25  Eric Blake  <ebb9@byu.net>
13729
13730         fpurge: migrate into <stdio.h>
13731         * lib/fpurge.h: Delete...
13732         * lib/stdio.in.h (fpurge): ...and declare here, instead.
13733         * lib/fpurge.c (fpurge): Change declaring header.
13734         * modules/fpurge (Files): Drop deleted file.
13735         (Depends-on): Add stdio.
13736         (configure.ac): Set witness.
13737         * modules/stdio (Makefile.am): Support fpurge macros.
13738         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
13739         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
13740         * lib/fflush.c: Update client.
13741         * tests/test-fpurge.c: Likewise.
13742         * NEWS: Mention the change.
13743
13744 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
13745
13746         * lib/argp-version-etc.c (program_authors): Add const
13747         qualifier.
13748         * lib/version-etc.c: Fix typos in the comments.
13749         * modules/argp-version-etc: Depends on version-etc.
13750
13751 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
13752
13753         argp-version-etc: new module.
13754
13755         * lib/argp-version-etc.c: New file.
13756         * lib/argp-version-etc.h: New file.
13757         * modules/argp-version-etc: New file.
13758         * modules/argp-version-etc-tests: New file.
13759         * tests/test-argp-version-etc.c: New test.
13760         * tests/test-argp-version-etc-1.sh: New test.
13761
13762 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
13763
13764         Provide additional interfaces and documentation for version-etc
13765         module.
13766
13767         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
13768         interfaces.
13769         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
13770         prototypes.
13771
13772 2009-06-24  Bruno Haible  <bruno@clisp.org>
13773
13774         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
13775         HAVE_LIB${NAME} macro.
13776         Reported by Sam Steingold <sds@gnu.org>.
13777
13778 2009-06-23  Simon Josefsson  <simon@josefsson.org>
13779
13780         * modules/hash-tests (test_hash_LDADD): Link to libintl when
13781         needed.
13782
13783 2009-06-21  Bruno Haible  <bruno@clisp.org>
13784
13785         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
13786         work.
13787         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
13788         together with LIB${NAME}, LTLIB${NAME}.
13789         Reported by Sam Steingold <sds@gnu.org>.
13790
13791 2009-06-20  Jim Meyering  <meyering@redhat.com>
13792
13793         tests: make sc_require_test_exit_idiom more generic
13794         * top/maint.mk (Exit_witness_file): New overridable variable.
13795         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
13796         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
13797
13798 2009-06-19  Jim Meyering  <meyering@redhat.com>
13799
13800         hash: reverse order of src/dst parameters in an internal interface
13801         * lib/hash.c (transfer_entries): Reverse order of parameters to
13802         put DST before SRC.  Adjust callers.
13803
13804         tests: test-hash: avoid wholesale duplication
13805         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
13806         Instead, use a loop and add a single conditional.
13807
13808         tests: test-hash: allow seed selection via a command line argument
13809         * tests/test-hash.c (get_seed): New function.
13810         (main): Use it.
13811
13812 2009-06-19  Eric Blake  <ebb9@byu.net>
13813
13814         hash: avoid memory leak on allocation failure
13815         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
13816         failure.  Factor repeated algorithm...
13817         (transfer_entries): ...into new helper routine.
13818         (hash_delete): React to hash_rehash return value.
13819
13820         hash: reduce memory pressure in hash_rehash no-op case
13821         * lib/hash.c (next_prime): Avoid overflow.
13822         (hash_initialize): Factor bucket size computation...
13823         (compute_bucket_size): ...into new helper function.
13824         (hash_rehash): Use new function and open coding to reduce memory
13825         pressure, and avoid a memory leak in USE_OBSTACK code.
13826         Reported by Jim Meyering.
13827
13828 2009-06-18  Eric Blake  <ebb9@byu.net>
13829
13830         hash: make rotation more obvious
13831         * modules/hash (Depends-on): Add bitrotate and stdint.
13832         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
13833         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
13834         (SIZE_MAX): Rely on headers for definition.
13835         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
13836         (raw_hasher): Use rotr_sz.
13837         Suggested by Jim Meyering.
13838
13839         hash: fix memory leak in last patch
13840         * lib/hash.c (hash_rehash): Avoid memory leak.
13841
13842         hash: avoid no-op rehashing
13843         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
13844
13845         hash: provide default callback functions
13846         * lib/hash.c (raw_hasher, raw_comparator): New functions.
13847         (hash_initialize): Use them as defaults.
13848         * tests/test-hash.c (main): Test this.
13849
13850         hash: minor optimization
13851         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
13852         when possible.
13853         (hash_initialize): Document this promise.
13854         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
13855         * tests/test-hash.c (hash_compare_strings): Test this.
13856
13857 2009-06-18  Bruno Haible  <bruno@clisp.org>
13858
13859         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
13860         going to be replaced anyway.
13861
13862 2009-06-18  Bruno Haible  <bruno@clisp.org>
13863
13864         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
13865         in one place.
13866         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
13867         be replaced anyway.
13868
13869 2009-06-18  Eric Blake  <ebb9@byu.net>
13870
13871         hash: check for resize before insertion
13872         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
13873         threshold before insertion, so that a pathological hash_rehash
13874         that fills every bucket can still trigger another rehash.
13875
13876 2009-06-18  Jim Meyering  <meyering@redhat.com>
13877
13878         hash-tests: add a loop around the small tests
13879         * tests/test-hash.c (main): Repeat small tests with selected
13880         small initial table sizes.
13881
13882 2009-06-17  Eric Blake  <ebb9@byu.net>
13883
13884         hash: minor cleanups
13885         * lib/hash.h (hash_entry): Make opaque, by moving...
13886         * lib/hash.c (hash_entry): ...here.
13887         (hash_insert): Clarify restrictions on what can be inserted.
13888         (hash_get_next): Clarify when it is safe to remove an element
13889         during traversal.
13890         (check_tuning): Skip verification when tuning is known safe.
13891         (hash_initialize): Clarify restrictions on tuning.
13892
13893 2009-06-17  Jim Meyering  <jim@meyering.net>
13894         and Eric Blake  <ebb9@byu.net>
13895
13896         hash-tests: new module
13897         * modules/hash-tests: New file.
13898         * tests/test-hash.c: New file.
13899
13900 2009-06-17  Eric Blake  <ebb9@byu.net>
13901
13902         strstr-simple: document new module
13903         * MODULES.html.sh: Document new module.
13904
13905         strstr, strcasestr: replace on platforms with broken memchr
13906         * modules/strstr: Split into...
13907         * modules/strstr-simple: ...new module that does not care about
13908         performance, but does care about glibc bug.
13909         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
13910         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
13911         if platform memchr is broken, per Debian bug 521737.
13912         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
13913         memchr.
13914         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
13915         * doc/posix-functions/strstr.texi (strstr): Document the fix.
13916         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
13917         * modules/mountlist (Depends-on): Add strstr-simple.
13918         * modules/gen-uni-tables (Depends-on): Likewise.
13919         * modules/argz (Depends-on): Add strstr.
13920
13921 2009-06-17  Bruno Haible  <bruno@clisp.org>
13922
13923         * modules/posix_spawn-internal (Depends-on): Add errno.
13924
13925 2009-06-17  Bruno Haible  <bruno@clisp.org>
13926
13927         Define missing ESTALE on Interix 3.5.
13928         * lib/errno.in.h (ESTALE): Assign a value if missing.
13929         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
13930         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
13931         missing.
13932         * doc/posix-headers/errno.texi: Mention the Interix bug.
13933         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
13934
13935 2009-06-15  Eric Blake  <ebb9@byu.net>
13936
13937         memchr, memchr2: add valgrind exception
13938         * lib/memchr.valgrind: New file.
13939         * lib/memchr2.valgrind: New file.
13940         * modules/memchr (Files): Distribute valgrind file.
13941         * modules/memchr2 (Files): Likewise.
13942
13943         docs: memchr is no longer obsolete
13944         * MODULES.html.sh: Move memchr from obsolete to string.h section.
13945         * lib/string.in.h (memchr): Simplify logic.
13946
13947 2009-06-14  Jim Meyering  <meyering@redhat.com>
13948
13949         link-follow: fix the "checking..." message to not mention trailing slash
13950         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
13951         never considered trailing slashes.
13952
13953 2009-06-14  Bruno Haible  <bruno@clisp.org>
13954
13955         * m4/memchr.m4: Mention also the bug on IA-64.
13956         * doc/posix-functions/memchr.texi: Likewise.
13957
13958 2009-06-12  Eric Blake  <ebb9@byu.net>
13959
13960         memchr: detect broken x86_64 and alpha implementations
13961         * modules/memchr-tests (Depends-on): Move mmap detection...
13962         * modules/memchr (Depends-on): ...here.
13963         (configure.ac): Set indicator.
13964         * lib/string.in.h (memchr): Declare replacement.
13965         * modules/string (Makefile.am): Trigger replacement.
13966         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
13967         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
13968         bugs.
13969         * doc/posix-functions/memchr.texi (memchr): Document the bug.
13970         * modules/getpagesize (License): Relax license.
13971
13972 2009-06-11  Bruno Haible  <bruno@clisp.org>
13973
13974         * lib/idpriv.h: Add more references.
13975
13976 2009-06-08  Bruno Haible  <bruno@clisp.org>
13977
13978         Tests for module 'idpriv-droptemp'.
13979         * modules/idpriv-droptemp-tests: New file.
13980         * tests/test-idpriv-droptemp.sh: New file.
13981         * tests/test-idpriv-droptemp.su.sh: New file.
13982         * tests/test-idpriv-droptemp.c: New file.
13983
13984         New module 'idpriv-droptemp'.
13985         * lib/idpriv-droptemp.c: New file.
13986         * modules/idpriv-droptemp: New file.
13987
13988 2009-06-08  Bruno Haible  <bruno@clisp.org>
13989
13990         Tests for module 'idpriv-drop'.
13991         * modules/idpriv-drop-tests: New file.
13992         * tests/test-idpriv-drop.sh: New file.
13993         * tests/test-idpriv-drop.su.sh: New file.
13994         * tests/test-idpriv-drop.c: New file.
13995
13996         New module 'idpriv-drop'.
13997         * lib/idpriv.h: New file.
13998         * lib-idpriv-drop.c: New file.
13999         * m4/idpriv.m4: New file.
14000         * modules/idpriv-drop: New file.
14001
14002 2009-06-08  Bruno Haible  <bruno@clisp.org>
14003
14004         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
14005         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
14006         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
14007         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
14008         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
14009         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
14010         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
14011
14012 2009-06-08  Eric Blake  <ebb9@byu.net>
14013
14014         test-strstr: use memory fence, when possible
14015         * tests/test-strstr.c (main): Use memory fence, in order to be
14016         more likely to trigger Debian bug 521737.
14017         * modules/strstr-tests (Files): Pull in additional files.
14018
14019         memchr: no longer obsolete, for wider field testing
14020         * modules/memchr (Status, Notice): Delete, this module is no
14021         longer obsolete.
14022         * modules/vasnprintf (Depends-on): Add memchr.
14023
14024 2009-06-07  Jim Meyering  <meyering@redhat.com>
14025
14026         hash: declare some functions with the warn_unused_result attribute
14027         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
14028
14029 2009-06-07  Bruno Haible  <bruno@clisp.org>
14030
14031         * tests/test-alignof.c: Don't test int64_t if it does not exist.
14032         Reported by Eric Blake.
14033
14034 2009-06-06  Eric Blake  <ebb9@byu.net>
14035
14036         test-alignof: fix typo with long double
14037         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
14038         compiler error.
14039
14040 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
14041
14042         Escape non-texinfo { and }s.
14043         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
14044         markup error.
14045
14046 2009-06-04  Jim Meyering  <meyering@redhat.com>
14047
14048         gitlog-to-changelog: don't infloop on an empty commit log
14049         * build-aux/gitlog-to-changelog: Warn about an empty log message.
14050         Reported by Boris Petersen <transacid@centerim.org>.
14051
14052 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
14053
14054         version-etc: extend for packagers
14055         Add three new configure options, intended for packagers:
14056           --with-packager="packager name"
14057           --with-packager-version="packager-specific version"
14058           --with-packager-bug-reports="packager bug reporting"
14059         An example with coreutils:
14060           $ ./configure \
14061             --with-packager=Gentoo \
14062             --with-packager-bug-report=http://bugs.gentoo.org/ \
14063             --with-packager-version="patchset 1.6"
14064           $ ./src/ls --version | head -n2
14065           ls (GNU coreutils) 7.1-dirty
14066           Packaged by Gentoo (patchset 1.6)
14067         Note that the bug reporting info via --help doesn't show up because
14068         coreutils uses its own custom emit_bug_reporting_address() implementation
14069         in src/system.h.  If it didn't, it'd look like:
14070           $ ./src/ls --help | tail -n4
14071           Report bugs to <bug-coreutils@gnu.org>.
14072           Report Gentoo bugs to <http://bugs.gentoo.org/>.
14073           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
14074           General help using GNU software: <http://www.gnu.org/gethelp/>.
14075         * lib/version-etc.c: Print new information, if provided.
14076         * m4/version-etc.m4: New file.
14077         * modules/version-etc (Files): Add m4/version-etc.m4.
14078         (configure.ac): Add gl_VERSION_ETC.
14079
14080 2009-05-31  Bruno Haible  <bruno@clisp.org>
14081
14082         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
14083         and 'int64_t'.
14084         * modules/alignof-tests (Dependencies): Add stdint.
14085         Reported by Eric Blake.
14086
14087 2009-05-31  Bruno Haible  <bruno@clisp.org>
14088
14089         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
14090         restriction due to compiler bugs.
14091         Reported by Eric Blake.
14092
14093 2009-05-31  Simon Josefsson  <simon@josefsson.org>
14094             Bruno Haible  <bruno@clisp.org>
14095
14096         Fix test-alignof failure.
14097         * lib/alignof.h (alignof_slot): New macro.
14098         (alignof_type): New macro, with the same semantics as the previous
14099         'alignof'.
14100         (alignof): Alias to alignof_slot.
14101         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
14102         check that the results are usable as constant expressions.
14103
14104 2009-05-31  Bruno Haible  <bruno@clisp.org>
14105
14106         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
14107         * tests/test-memchr.c (main): Check that memchr does not read past the
14108         first occurrence of the byte.
14109         * tests/test-strstr.c (main): Update comment.
14110         Suggested by Eric Blake.
14111
14112 2009-05-30  Bruno Haible  <bruno@clisp.org>
14113
14114         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
14115         detail how to use dumpbin.
14116         Reported by David Byron <dbyron@dbyron.com>.
14117
14118 2009-06-02  Simon Josefsson  <simon@josefsson.org>
14119
14120         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
14121
14122 2009-06-02  Simon Josefsson  <simon@josefsson.org>
14123
14124         * m4/manywarnings.m4: Add GCC 4.4 warnings.
14125
14126 2009-05-28  Bruno Haible  <bruno@clisp.org>
14127
14128         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
14129         build-aux/ files.
14130
14131 2009-05-28  Simon Josefsson  <simon@josefsson.org>
14132
14133         * gnulib-tool (func_import): Transform license on build-aux/ files too.
14134
14135 2009-05-27  Simon Josefsson  <simon@josefsson.org>
14136
14137         * gnulib-tool (sed_transform_main_lib_file)
14138         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
14139         regexps.
14140
14141 2009-05-26  Simon Josefsson  <simon@josefsson.org>
14142
14143         * tests/test-strstr.c: Add another self-test.
14144         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
14145         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
14146
14147 2009-05-23  Bruno Haible  <bruno@clisp.org>
14148
14149         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
14150         change.
14151
14152 2009-05-21  Bruno Haible  <bruno@clisp.org>
14153
14154         Simplify use of mode_t varargs.
14155         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
14156         uses 'mode_t' or 'int'.
14157         * lib/openat.c (openat): Likewise.
14158         * lib/open-safer.c (open_safer): Likewise.
14159         * m4/mode_t.m4: New file.
14160         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
14161         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
14162         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
14163         * modules/open (Files): Add m4/mode_t.m4.
14164         * modules/openat (Files): Likewise.
14165         * modules/fcntl-safer (Files): Likewise.
14166         Suggested by Eric Blake.
14167
14168 2009-05-21  Pádraig Brady  <P@draigbrady.com>
14169
14170         * doc/glibc-functions/fallocate.texi: New file.
14171         * doc/gnulib.texi: Include it.
14172
14173 2009-05-21  Eric Blake  <ebb9@byu.net>
14174             Bruno Haible  <bruno@clisp.org>
14175
14176         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
14177         invocations.
14178         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
14179
14180 2009-05-21  Eric Blake  <ebb9@byu.net>
14181             Bruno Haible  <bruno@clisp.org>
14182
14183         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
14184         include_next. Fix of 2008-11-20 commit.
14185         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
14186         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
14187         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
14188         NEXT_MATH_H.
14189         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
14190         instead of NEXT_MATH_H.
14191
14192 2009-05-21  Bruno Haible  <bruno@clisp.org>
14193
14194         Avoid redefinition warnings for SIZE_MAX.
14195         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
14196         Reported by Simon Josefsson.
14197
14198 2009-05-21  Bruno Haible  <bruno@clisp.org>
14199
14200         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
14201         AC_CACHE_VAL.
14202
14203 2009-05-20  Bruno Haible  <bruno@clisp.org>
14204
14205         Make zeroptr.h work on mingw.
14206         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
14207         mprotect.
14208         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
14209         * modules/memchr2-tests (configure.ac): Likewise.
14210         * modules/memcmp-tests (configure.ac): Likewise.
14211         * modules/memmem-tests (configure.ac): Likewise.
14212         * modules/memrchr-tests (configure.ac): Likewise.
14213         Reported by Simon Josefsson.
14214
14215 2009-05-20  Simon Josefsson  <simon@josefsson.org>
14216
14217         * tests/test-glob.c: Include string.h for strcmp prototype.
14218
14219 2009-05-20  Simon Josefsson  <simon@josefsson.org>
14220
14221         * modules/getdelim (Depends-on): Add explicit stdint, although it
14222         was implicitly already pulled in via realloc-posix.
14223         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
14224
14225 2009-05-20  Simon Josefsson  <simon@josefsson.org>
14226
14227         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
14228         G. Christensen" <tgc@jupiterrise.com>.
14229         * m4/sys_socket_h.m4: Check for sa_family_t.
14230         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
14231         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
14232         * tests/test-sys_socket.c: Check that sa_family_t works.
14233
14234 2009-05-18  Eric Blake  <ebb9@byu.net>
14235
14236         maint.mk: allow gnulib_dir in VPATH build
14237         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
14238
14239 2009-05-15  Jim Meyering  <meyering@redhat.com>
14240
14241         maint.mk: Give gnulib_dir a default definition.
14242         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
14243         Thus, most packages no longer need to specify this variable in cfg.mk
14244
14245 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
14246
14247         rename.m4: fix typos that would make non-mingw cross-configure fail
14248         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
14249
14250 2009-05-13  Eric Blake  <ebb9@byu.net>
14251
14252         mmap-anon: avoid out-of-order autoconf expansion
14253         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
14254         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
14255         * modules/memchr-tests (Depends-on): Add extensions.
14256         * modules/memchr2-tests (Depends-on): Add extensions.
14257         * modules/memcmp-tests (Depends-on): Add extensions.
14258         * modules/memmem-tests (Depends-on): Add extensions.
14259         * modules/memrchr-tests (Depends-on): Add extensions.
14260
14261 2009-05-13  Bruno Haible  <bruno@clisp.org>
14262
14263         Make some tests ISO C 99 compliant.
14264         * tests/zerosize-ptr.h: New file.
14265         * tests/test-memchr.c: Include zerosize-ptr.h.
14266         (main): Use a zero-size object pointer instead of NULL.
14267         * tests/test-memchr2.c: Include zerosize-ptr.h.
14268         (main): Use a zero-size object pointer instead of NULL.
14269         * tests/test-memcmp.c: Include zerosize-ptr.h.
14270         (main): Use a zero-size object pointer instead of NULL.
14271         * tests/test-memmem.c: Include zerosize-ptr.h.
14272         (main): Use a zero-size object pointer instead of NULL.
14273         * tests/test-memrchr.c: Include zerosize-ptr.h.
14274         (main): Use a zero-size object pointer instead of NULL.
14275         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
14276         m4/mmap-anon.m4.
14277         (Depends-on): Add getpagesize.
14278         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14279         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
14280         m4/mmap-anon.m4.
14281         (Depends-on): Add getpagesize.
14282         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14283         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
14284         m4/mmap-anon.m4.
14285         (Depends-on): Add getpagesize.
14286         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14287         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
14288         m4/mmap-anon.m4.
14289         (Depends-on): Add getpagesize.
14290         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14291         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
14292         m4/mmap-anon.m4.
14293         (Depends-on): Add getpagesize.
14294         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14295
14296 2009-05-12  Bruno Haible  <bruno@clisp.org>
14297
14298         Tests for module 'alignof'.
14299         * modules/alignof-tests: New file.
14300         * tests/test-alignof.c: New file.
14301
14302 2009-05-12  Bruno Haible  <bruno@clisp.org>
14303
14304         Fix alignof macro.
14305         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
14306         vendor compilers that are always correct.
14307
14308 2009-05-12  Bruno Haible  <bruno@clisp.org>
14309
14310         Make the MAP_ANONYMOUS detection work on HP-UX 11.
14311         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
14312         not whether its fully works.
14313
14314 2009-05-12  Bruno Haible  <bruno@clisp.org>
14315
14316         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
14317
14318 2009-05-12  Jim Meyering  <meyering@redhat.com>
14319
14320         * top/maint.mk: Adjust backslash alignment.
14321
14322 2009-05-11  Simon Josefsson  <simon@josefsson.org>
14323
14324         * top/maint.mk: Make $(srcdir)/build-aux configurable.
14325
14326 2009-05-11  Eric Blake  <ebb9@byu.net>
14327
14328         argp: avoid undefined behavior
14329         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
14330         macros.
14331
14332 2009-05-08  Simon Josefsson  <simon@josefsson.org>
14333
14334         * tests/test-vc-list-files-git.sh: Do git config of user.email and
14335         user.name to prevent git commit from complaining.
14336
14337 2009-05-10  Bruno Haible  <bruno@clisp.org>
14338
14339         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
14340         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
14341         it rewrites every file name only once.
14342         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
14343
14344 2009-05-08  Bruno Haible  <bruno@clisp.org>
14345
14346         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
14347         instead of 'max'.
14348
14349 2009-05-08  Simon Josefsson  <simon@josefsson.org>
14350
14351         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
14352         sockaddr_storage test.
14353
14354 2009-05-07  Simon Josefsson  <simon@josefsson.org>
14355
14356         * modules/sys_socket (Makefile.am): Substitute
14357         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
14358         * m4/sys_socket_h.m4: Check for sockaddr_storage.
14359         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
14360         * tests/test-sys_socket.c: Check sockaddr_storage.
14361
14362 2009-05-08  Bruno Haible  <bruno@clisp.org>
14363
14364         New module 'alignof'.
14365         * lib/alignof.h: New file.
14366         * modules/alignof: New file.
14367
14368 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14369             Bruno Haible  <bruno@clisp.org>
14370
14371         Fix test-file-has-acl on FreeBSD.
14372         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
14373         mask is implicitly added.
14374         * tests/test-file-has-acl.c: Include <signal.h>.
14375         (main): Terminate the test after 5 seconds.
14376         * modules/acl-tests (configure.ac): Check for alarm function.
14377
14378 2009-05-04  Bruno Haible  <bruno@clisp.org>
14379
14380         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
14381         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
14382         * modules/errno (configure.ac): Drop AC_REQUIRE.
14383         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
14384         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
14385
14386 2009-05-04  Simon Josefsson  <simon@josefsson.org>
14387
14388         * modules/glob-tests: New module.
14389         * tests/test-glob.c: Add.
14390
14391 2009-05-04  Simon Josefsson  <simon@josefsson.org>
14392
14393         * modules/fnmatch-tests: New module.
14394         * tests/test-fnmatch.c: Add.
14395
14396 2009-05-04  Eric Blake  <ebb9@byu.net>
14397
14398         maint: make the new no-submodule-changes rule VPATH-safe
14399         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
14400
14401 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14402             Bruno Haible  <bruno@clisp.org>
14403
14404         acl: Fix infinite loop on FreeBSD.
14405         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
14406         of return value from acl_get_entry.
14407         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
14408         Likewise.
14409
14410 2009-05-03  Bruno Haible  <bruno@clisp.org>
14411
14412         * lib/acl-internal.h (acl_entries): Clarify return value.
14413         * lib/acl_entries.c (acl_entries): Likewise.
14414
14415 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14416
14417         Bug fix in acl module.
14418         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
14419
14420 2009-05-03  Bruno Haible  <bruno@clisp.org>
14421
14422         Create gperf-generated file in the source dir, not in the build dir.
14423         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
14424         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
14425         * modules/unicase/locale-language (unicase/locale-languages.h):
14426         Likewise.
14427         * modules/unicase/special-casing (unicase/special-casing-table.h):
14428         Likewise.
14429         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
14430         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
14431         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
14432         Reported by Ralf Wildenhues.
14433
14434 2009-05-03  Bruno Haible  <bruno@clisp.org>
14435
14436         * modules/fnmatch (Description, configure.ac): Taken from
14437         fnmatch-posix.
14438         * modules/fnmatch-posix: Turn into a symbolic reference to the
14439         'fnmatch' module, and deprecate.
14440         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
14441
14442 2009-05-03  Bruno Haible  <bruno@clisp.org>
14443
14444         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
14445         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
14446         Reported by Ralf Wildenhues.
14447
14448 2009-05-04  Simon Josefsson  <simon@josefsson.org>
14449
14450         * m4/fnmatch.m4: Fix fnmatch re-define.
14451
14452 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14453
14454         priv-set: new module and tests; adapt write-any-file
14455         * lib/priv-set.c: New file.
14456         * lib/priv-set.h: New file.
14457         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
14458         * lib/write-any-file.c: Simplify by using priv-set module.
14459         * m4/priv-set.m4: New file.
14460         * modules/priv-set: New file.
14461         * modules/unlinkdir: Add dependency on priv-set module.
14462         * modules/write-any-file: Likewise.
14463
14464         Tests for module 'priv-set'.
14465         * modules/priv-set-tests: New file.
14466         * tests/test-priv-set.c: New file.
14467
14468 2009-05-03  Jim Meyering  <meyering@redhat.com>
14469             Bruno Haible  <bruno@clisp.org>
14470
14471         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
14472         use the converted UTF-8 variant of the name instead.
14473
14474 2009-05-03  Jim Meyering  <meyering@redhat.com>
14475
14476         tests: tighten some getdate tests
14477         * tests/test-getdate.c (main): Tighten tests: require equality,
14478         not just greater than.  Set TZ envvar to UTC0.
14479
14480 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
14481
14482         getdate: correctly interpret "next monday" when run on a Monday
14483         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
14484         that e.g., "next tues" (when run on a tuesday) results in a date
14485         that is one week in the future, and not today's date.
14486         I.e., add a week when the wday is the same as the current one.
14487         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
14488         and earlier by Martin Bernreuther and Jan Minář.
14489         * tests/test-getdate.c (main): Check that "next DAY" is always in
14490         the future and that "last DAY" is always in the past.
14491
14492 2009-05-02  Jim Meyering  <meyering@redhat.com>
14493
14494         build: ensure that a release build fails when a submodule is unclean
14495         * top/maint.mk (no-submodule-changes): New rule.
14496         (alpha beta major): Depend on it.
14497
14498 2009-05-02  Bruno Haible  <bruno@clisp.org>
14499
14500         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
14501         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
14502         shell variable gl_fnmatch_required to detect which variant is
14503         requested.
14504         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
14505         gl_FUNC_FNMATCH_POSIX.
14506         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
14507         exclude fnmatch-posix.
14508
14509 2009-05-02  Bruno Haible  <bruno@clisp.org>
14510
14511         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
14512         * modules/mbsrtowcs (License): Change to LGPLv2+.
14513         * modules/strnlen1 (License): Likewise.
14514         Reported by Simon Josefsson.
14515
14516 2009-05-02  Bruno Haible  <bruno@clisp.org>
14517
14518         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
14519         "cross".
14520         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
14521         gnulib-tool was called with option --source-base=lib.
14522
14523 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14524
14525         Use automake *-local hooks without commands, for extensibility.
14526         * modules/localcharset (Makefile.am): Rename install-exec-local
14527         rule to install-exec-localcharset, and make it a prerequisite of
14528         install-exec-local.  Likewise, rename the uninstall-local rule to
14529         uninstall-localcharset, and make it a prerequisite of the former.
14530
14531 2009-05-01  Bruno Haible  <bruno@clisp.org>
14532
14533         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
14534         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
14535         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
14536         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
14537         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
14538         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
14539         m4/locale-zh.m4, m4/codeset.m4.
14540
14541         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
14542         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
14543         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
14544         m4/locale-zh.m4.
14545
14546         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
14547         REPLACE_WCRTOMB if mbstate_t must be replaced.
14548         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
14549         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
14550
14551 2009-05-01  Bruno Haible  <bruno@clisp.org>
14552
14553         Avoid compiler warnings when redefining macros defined by <libintl.h>.
14554         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
14555         dngettext, dcngettext, textdomain, bindtextdomain,
14556         bind_textdomain_codeset): Undefine before redefining.
14557
14558 2009-04-30  Bruno Haible  <bruno@clisp.org>
14559
14560         Fix bug introduced on 2009-04-25.
14561         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
14562         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
14563         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
14564         is defined.
14565         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
14566         is defined.
14567         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
14568         is defined.
14569         Reported by Elbert_Pol <elbert.pol@gmail.com>.
14570
14571 2009-04-28  Bruno Haible  <bruno@clisp.org>
14572
14573         Comment tweaks.
14574         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
14575         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
14576         * lib/unicase.h (u*_casexfrm): Likewise.
14577         Reported by Paolo Bonzini.
14578
14579 2009-04-28  Bruno Haible  <bruno@clisp.org>
14580
14581         Fix a compilation error.
14582         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
14583         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
14584         Reported by Jim Meyering.
14585
14586 2009-04-27  Bruno Haible  <bruno@clisp.org>
14587
14588         New module 'libunistring'.
14589         * modules/libunistring: New file.
14590         * m4/libunistring.m4: New file.
14591         * MODULES.html.sh (Unicode string functions): Add it.
14592
14593 2009-04-27  Eric Blake  <ebb9@byu.net>
14594
14595         maint.mk: allow package-specific header to provide <config.h>
14596         * top/maint.mk (sc_require_config_h): New variable.
14597         (sc_require_config_h, sc_require_config_h_first): Use it.
14598
14599 2009-04-27  Simon Josefsson  <simon@josefsson.org>
14600
14601         * top/maint.mk (sc_avoid_if_before_free): Except
14602         useless-if-before-free script.
14603
14604 2009-04-27  Eric Blake  <ebb9@byu.net>
14605
14606         maintainer-makefile: depend on all required helper scripts
14607         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
14608         useless-if-before-free.
14609         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
14610         version, rather than assuming gnulib checkout is available.
14611         Reported by Simen Josefsson.
14612
14613 2009-04-26  Bruno Haible  <bruno@clisp.org>
14614
14615         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
14616         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
14617         "../" or "..".
14618
14619 2009-04-26  Bruno Haible  <bruno@clisp.org>
14620
14621         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
14622         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
14623         AC_LIB_HAVE_LINKFLAGS.
14624
14625 2009-04-26  Bruno Haible  <bruno@clisp.org>
14626
14627         Simplify calling convention of u*_conv_from_encoding.
14628         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
14629         u32_conv_from_encoding): Expect a resultbuf argument and return the
14630         result directly as a pointer.
14631         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
14632         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
14633         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
14634         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
14635         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
14636         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
14637         Update.
14638         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
14639         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
14640         * lib/vasnprintf.c (VASNPRINTF): Update.
14641         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
14642         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
14643         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
14644         * NEWS: Mention the change.
14645
14646 2009-04-26  Bruno Haible  <bruno@clisp.org>
14647
14648         Simplify calling convention of u*_conv_to_encoding.
14649         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
14650         u32_conv_to_encoding): Expect a resultbuf argument and return the
14651         result directly as a pointer.
14652         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
14653         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
14654         freeing scaled_offsets if mem_iconveha failed.
14655         * lib/unicase/u-casexfrm.h (FUNC): Update.
14656         * lib/uninorm/u-normxfrm.h (FUNC): Update.
14657         * lib/vasnprintf.c (VASNPRINTF): Update.
14658         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
14659         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
14660         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
14661         * NEWS: Mention the change.
14662
14663 2009-04-26  Bruno Haible  <bruno@clisp.org>
14664
14665         Avoid test failures on AIX and OSF/1.
14666         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
14667         malloc(0).
14668         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
14669         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
14670         Likewise.
14671         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
14672         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
14673         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
14674         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
14675         * doc/posix-functions/malloc.texi: Document the portability problem
14676         related to malloc(0).
14677
14678 2009-04-26  Bruno Haible  <bruno@clisp.org>
14679
14680         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
14681         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
14682         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
14683
14684 2009-04-25  Bruno Haible  <bruno@clisp.org>
14685
14686         Avoid link error when creating a namespace clean library.
14687         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
14688         as macro with arguments if already defined as an alias.
14689         * lib/signbitf.c (gl_signbitf): Don't undefine.
14690         * lib/signbitd.c (gl_signbitd): Don't undefine.
14691         * lib/signbitl.c (gl_signbitl): Don't undefine.
14692
14693 2009-04-25  Jim Meyering  <meyering@redhat.com>
14694
14695         vc-list-files: fix another quoting bug
14696         * build-aux/vc-list-files: Avoid sed backslash expansion
14697         of pathological directory names.
14698
14699 2009-04-25  Eric Blake  <ebb9@byu.net>
14700
14701         vc-list-files: fix shell quoting error
14702         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
14703         timestamp.
14704
14705 2009-04-25  Jim Meyering  <meyering@redhat.com>
14706
14707         vc-list-files: restore lost functionality with subdir argument
14708         * build-aux/vc-list-files: When given a non-"." sub-directory
14709         argument, substitute the $dir/ prefix back onto each resulting name.
14710         Otherwise, coreutils' root_tests check would fail.
14711
14712 2009-04-24  Eric Blake  <ebb9@byu.net>
14713
14714         vc-list-files: ignore git symlinks
14715         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
14716         than ls-files, to ignore git symlinks.
14717
14718         maint.mk: import improvements from m4
14719         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
14720         (move_if_change): Delete unused macro.
14721         (news-date-check, vc-diff-check): Support VPATH builds.
14722         (announcement): Likewise.  Split --bootstrap-tools list...
14723         (boostrap-tools): ...into separate list, which can be overridden
14724         in cfg.mk.
14725         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
14726         requiring dependency on useless-if-before-free module.
14727         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
14728         Support VPATH builds.
14729
14730 2009-04-24  Jim Meyering  <meyering@redhat.com>
14731
14732         maint.mk: remove coreutils-specific rules and variables
14733         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
14734         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
14735         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
14736
14737         maint.mk: remove obsolete rule
14738         * top/maint.mk (rel-check): Remove rule.
14739         (WGET, WGETFLAGS): Remove now-unused variables.
14740
14741 2009-04-24  Simon Josefsson  <simon@josefsson.org>
14742
14743         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
14744         consistency.
14745
14746         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
14747         '$(PATH_SEPARATOR)' instead of ':'.
14748
14749 2009-04-24  Simon Josefsson  <simon@josefsson.org>
14750
14751         * lib/getopt1.c (main): Use 'const' for static array.
14752
14753 2009-04-24  Simon Josefsson  <simon@josefsson.org>
14754
14755         * top/maint.mk: Sync with coreutils.
14756         * NEWS: Explain incompatibilities.
14757
14758 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
14759             Bruno Haible  <bruno@clisp.org>
14760
14761         Fix cross-compilation results.
14762         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
14763         statement, as third argument of AC_TRY_RUN.
14764         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
14765         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
14766         Likewise.
14767         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
14768         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
14769         Likewise.
14770         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
14771         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
14772         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
14773
14774 2009-04-20  Bruno Haible  <bruno@clisp.org>
14775
14776         Avoid test failure on mingw.
14777         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
14778
14779 2009-04-20  Bruno Haible  <bruno@clisp.org>
14780
14781         Avoid compilation error on mingw.
14782         * modules/localename-tests (Depends-on): Add locale.
14783
14784 2009-04-19  Bruno Haible  <bruno@clisp.org>
14785
14786         Support for building a shared library on Windows platforms.
14787         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
14788         (main): Test the presence of UNINORM_NFC here.
14789         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
14790         (main): Test the presence of UNINORM_NFD here.
14791         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
14792         (main): Test the presence of UNINORM_NFKC here.
14793         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
14794         (main): Test the presence of UNINORM_NFKD here.
14795
14796 2009-04-19  Bruno Haible  <bruno@clisp.org>
14797
14798         Avoid a compiler warning.
14799         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
14800         Change type of variable 'sequence'.
14801
14802 2009-04-19  Bruno Haible  <bruno@clisp.org>
14803
14804         * modules/configmake (Makefile.am): When the contents of configmake.h
14805         does not change, arrange to preserve its modification time.
14806
14807 2009-04-17  Simon Josefsson  <simon@josefsson.org>
14808
14809         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
14810         gettext domain.
14811
14812 2009-04-16  Jim Meyering  <meyering@redhat.com>
14813
14814         useless-if-before-free: improve conversion code
14815         * build-aux/useless-if-before-free: Adjust code-in-comment to match
14816         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
14817
14818 2009-04-14  Bruno Haible  <bruno@clisp.org>
14819
14820         * modules/fcntl (Depends-on): Add extensions.
14821         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
14822
14823 2009-04-12  Ben Pfaff  <blp@gnu.org>
14824
14825         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
14826         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
14827
14828 2009-03-20  Ben Pfaff  <blp@gnu.org>
14829
14830         Make rename replace existing destinations on Windows.
14831         * m4/rename.m4: Add test for Mingw.
14832         * lib/rename.c: Add rename replacement that uses MoveFileEx with
14833         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
14834         * doc/posix-functions/rename.texi: Document.
14835
14836 2009-04-10  Bruno Haible  <bruno@clisp.org>
14837
14838         New include file "iconveh.h".
14839         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
14840         * lib/striconveh.h: Include it.
14841         (enum iconv_ilseq_handler): Remove definition.
14842         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
14843         striconveh.h.
14844         * lib/striconveha.c: Include striconveh.h.
14845         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
14846         * modules/striconveh (Files): Add lib/iconveh.h.
14847         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
14848         lib/striconveh.h.
14849
14850 2009-04-10  Bruno Haible  <bruno@clisp.org>
14851
14852         * lib/uniconv.h: Update comment.
14853
14854 2009-04-10  Bruno Haible  <bruno@clisp.org>
14855
14856         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
14857         always.
14858         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
14859         * lib/unistr/u16-mbtouc-aux.c: Likewise.
14860         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
14861         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
14862         "unistring-notinline.h", so that the function gets defined always.
14863         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
14864         * lib/unistr/u8-uctomb.c: Likewise.
14865         * lib/unistr/u16-mbtouc.c: Likewise.
14866         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
14867         * lib/unistr/u16-uctomb.c: Likewise.
14868         * lib/unistr/u32-mbtouc.c: Likewise.
14869         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
14870         * lib/unistr/u32-uctomb.c: Likewise.
14871
14872 2009-04-10  Bruno Haible  <bruno@clisp.org>
14873
14874         Mark 'utime' obsolete.
14875         * modules/utime (Status, Notice): New sections.
14876         Suggested by Jim Meyering.
14877
14878         Fix cross-compile guess for utime test.
14879         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
14880         autoconf.
14881         * doc/posix-functions/utime.texi: Give more precisions.
14882         Reported by Jan <ipif@ymail.com>.
14883
14884 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
14885
14886         filevercmp: correct today's change
14887         * lib/filevercmp.c: Also handle coreutils' test inputs.
14888         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
14889
14890         Fix regression in 'filevercmp' module. Thanks Sven Joachim
14891         for reporting it.
14892         * lib/filevercmp.c: Special handle for "", "." and "..".
14893         * tests/test-filevercmp.c: Enlarge the set suite.
14894
14895 2009-04-07  Jim Meyering  <meyering@redhat.com>
14896
14897         useless-if-before-free: show how to remove braced useless free, too
14898         * build-aux/useless-if-before-free: still only in a comment, though.
14899
14900 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
14901
14902         maint.mk: import changes to syntax-check macros from coreutils
14903         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
14904         Use them in the relevant macros.
14905
14906 2009-04-06  Bruno Haible  <bruno@clisp.org>
14907
14908         Fix unportable use of bit-fields.
14909         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
14910         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
14911         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
14912
14913 2009-04-06  Bruno Haible  <bruno@clisp.org>
14914
14915         Avoid test failures on AIX and OSF/1.
14916         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
14917         that malloc(0) = NULL.
14918         * tests/unicase/test-u8-tolower.c (check): Likewise.
14919         * tests/unicase/test-u8-totitle.c (check): Likewise.
14920         * tests/unicase/test-u8-toupper.c (check): Likewise.
14921         * tests/unicase/test-u16-casefold.c (check): Likewise.
14922         * tests/unicase/test-u16-tolower.c (check): Likewise.
14923         * tests/unicase/test-u16-totitle.c (check): Likewise.
14924         * tests/unicase/test-u16-toupper.c (check): Likewise.
14925         * tests/unicase/test-u32-casefold.c (check): Likewise.
14926         * tests/unicase/test-u32-tolower.c (check): Likewise.
14927         * tests/unicase/test-u32-totitle.c (check): Likewise.
14928         * tests/unicase/test-u32-toupper.c (check): Likewise.
14929         * tests/uninorm/test-u8-nfc.c (check): Likewise.
14930         * tests/uninorm/test-u8-nfd.c (check): Likewise.
14931         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
14932         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
14933         * tests/uninorm/test-u16-nfc.c (check): Likewise.
14934         * tests/uninorm/test-u16-nfd.c (check): Likewise.
14935         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
14936         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
14937         * tests/uninorm/test-u32-nfc.c (check): Likewise.
14938         * tests/uninorm/test-u32-nfd.c (check): Likewise.
14939         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
14940         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
14941
14942 2009-04-05  Bruno Haible  <bruno@clisp.org>
14943
14944         Work around an autoconf limitation.
14945         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
14946         comment line if it would be longer than 3 KB.
14947
14948 2009-04-05  Bruno Haible  <bruno@clisp.org>
14949
14950         Avoid test failure with libiconv-1.13.
14951         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
14952         of the expected test results.
14953
14954 2009-04-05  Bruno Haible  <bruno@clisp.org>
14955
14956         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
14957         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
14958         that it should be installed.
14959
14960 2009-04-05  Bruno Haible  <bruno@clisp.org>
14961
14962         * gnulib-tool: New option --copy-file.
14963         (func_usage): Document it.
14964         (func_dest_tmpfilename): Moved out of func_import.
14965         (func_add_file, func_update_file): New functions, extracted from
14966         func_import.
14967         (func_import): Update.
14968
14969 2009-04-05  Karl Berry  <karl@gnu.org>
14970
14971         * README: prominently mention gnulib-tool.
14972         Rearrange sections so getting the code is near the top.
14973
14974 2009-04-05  Bruno Haible  <bruno@clisp.org>
14975
14976         * lib/unicase.h: Mention u*_cmp2.
14977         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
14978         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
14979         * lib/unicase/ulc-casecmp.c: Likewise.
14980         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
14981         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
14982         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
14983         unistr/u8-cmp.
14984         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
14985         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
14986         unistr/u16-cmp.
14987         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
14988         unistr/u32-cmp.
14989
14990         * lib/uninorm.h: Mention u*_cmp2.
14991         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
14992         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
14993         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
14994         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
14995         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
14996         unistr/u8-cmp.
14997         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
14998         unistr/u16-cmp.
14999         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
15000         unistr/u32-cmp.
15001
15002         New module 'unistr/u32-cmp2'.
15003         * lib/unistr/u32-cmp2.c: New file.
15004         * modules/unistr/u32-cmp2: New file.
15005
15006         New module 'unistr/u16-cmp2'.
15007         * lib/unistr/u16-cmp2.c: New file.
15008         * modules/unistr/u16-cmp2: New file.
15009
15010         New module 'unistr/u8-cmp2'.
15011         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
15012         * lib/unistr/u8-cmp2.c: New file.
15013         * lib/unistr/u-cmp2.h: New file.
15014         * modules/unistr/u8-cmp2: New file.
15015
15016 2009-04-05  Bruno Haible  <bruno@clisp.org>
15017
15018         * lib/unictype.h (uc_property_is_valid): New macro.
15019         * tests/unictype/test-pr_byname.c (main): Use it.
15020
15021         * lib/unistr.h: Doc fixes.
15022         * lib/uniconv.h: Doc fixes.
15023         * lib/unictype.h: Doc fixes.
15024
15025 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
15026
15027         Port coreutils 7.2 to Solaris 8.
15028
15029         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
15030         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
15031         for Solaris 8.  This is a bit of a hack, as it means it's the
15032         caller's responsibility to add -lnsl if needed, but most likely it
15033         won't be needed since only getaddrinfo uses this and getaddrinfo
15034         isn't needed on Solaris 8.
15035
15036         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
15037         problem to Solaris 8 encountered with coreutils 7.2, which
15038         resulted in a message "fnmatch.c:292: warning: passing argument 4
15039         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
15040         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
15041
15042 2009-04-03  Simon Josefsson  <simon@josefsson.org>
15043
15044         * m4/ld-version-script.m4: Add FIXME comment.
15045
15046 2009-04-02  Simon Josefsson  <simon@josefsson.org>
15047
15048         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
15049         SOVERSION variable.
15050
15051 2009-04-02  Bruno Haible  <bruno@clisp.org>
15052
15053         * Makefile (info, html, dvi, pdf): Combine the rules.
15054         Suggested by Jim Meyering.
15055
15056 2009-04-01  Bruno Haible  <bruno@clisp.org>
15057
15058         * Makefile (info, html, dvi, pdf): New targets.
15059         Reported by Reuben Thomas <rrt@sc3d.org>.
15060
15061 2009-04-01  Bruno Haible  <bruno@clisp.org>
15062
15063         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
15064         can be put into PATH.
15065         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
15066
15067 2009-04-01  Bruno Haible  <bruno@clisp.org>
15068
15069         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
15070
15071 2009-04-01  Bruno Haible  <bruno@clisp.org>
15072
15073         Rename module 'visibility'.
15074         * modules/lib-symbol-visibility: Renamed from modules/visibility.
15075         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
15076         * doc/gnulib.texi: Update.
15077         * MODULES.html.sh (Misc): Update.
15078         * NEWS: Mention the change.
15079
15080 2009-04-01  Simon Josefsson  <simon@josefsson.org>
15081
15082         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
15083         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
15084         Eric Blake <ebb9@byu.net> for review.
15085         * MODULES.html.sh: Add lib-msvc-compat.
15086         * doc/gnulib.texi: Link to new section.
15087         * m4/ld-output-def.m4: New file.
15088         * doc/ld-output-def.texi: New file.
15089
15090 2009-04-01  Simon Josefsson  <simon@josefsson.org>
15091
15092         Rename ld-version-script to lib-symbol-versions.  Suggested by
15093         Bruno Haible <bruno@clisp.org>.
15094         * modules/ld-version-script: Renamed to lib-symbol-versions.
15095         * doc/ld-version-script.texi: Fix module name.
15096         * MODULES.html.sh: Add lib-symbol-versions.
15097
15098 2009-03-31  Simon Josefsson  <simon@josefsson.org>
15099
15100         * modules/u64-tests: New file.
15101         * tests/test-u64.c: New file.
15102
15103 2009-03-04  Simon Josefsson  <simon@josefsson.org>
15104
15105         * MODULES.html.sh: Mention u64.
15106         * modules/u64: New module.
15107         * modules/crypto/sha512: Depend on u64 module instead of providing
15108         u64.h.
15109
15110 2009-03-27  Eric Blake  <ebb9@byu.net>
15111
15112         test-strerror: make debugging EAI_SYSTEM easier
15113         * modules/getaddrinfo-tests (Depends-on): Add strerror.
15114         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
15115         failure was EAI_SYSTEM.
15116
15117 2009-03-25  Bruno Haible  <bruno@clisp.org>
15118
15119         Fix a problem with --enable-relocatable on Solaris 7.
15120         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
15121         since 2008-02-24.
15122
15123 2009-03-25  Eric Blake  <ebb9@byu.net>
15124
15125         test-sockets: avoid gcc warning
15126         * tests/test-sockets.c (main): Silence compiler warning.
15127
15128 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
15129
15130         New modules nproc, pthread, contributed by Glen Lenker.
15131
15132         * MODULES.html.sh: Add pthread, nproc.
15133         * lib/nproc.c: New file.
15134         * lib/nproc.h: New file.
15135         * lib/pthread.in.h: New file.
15136         * m4/pthread.m4: New file.
15137         * modules/nproc: New file.
15138         * modules/pthread: New file.
15139
15140 2009-03-24  Simon Josefsson  <simon@josefsson.org>
15141
15142         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
15143         New variable.
15144
15145 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
15146
15147         filevercmp: handle simple~ and numbered.~3~ backup suffixes
15148         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
15149         * tests/test-filevercmp.c: Add tests for backup suffixes.
15150
15151 2009-03-24  Simon Josefsson  <simon@josefsson.org>
15152
15153         * modules/stdlib (Depends-on): Add stdint, needed when defining
15154         struct random_data on, for example, HP-UX 10.20.  Reported by
15155         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15156
15157 2009-03-24  Simon Josefsson  <simon@josefsson.org>
15158
15159         * lib/readline.c (readline): Call fflush on stdout after printing
15160         prompt.
15161
15162 2009-03-20  Bruno Haible  <bruno@clisp.org>
15163
15164         Remove dependency from 'close' module to -lws2_32 on native Windows.
15165         * lib/close-hook.h: New file.
15166         * lib/close-hook.c: New file.
15167         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
15168         w32sock.h.
15169         (_gl_close_fd_maybe_socket): Remove function.
15170         (rpl_close): Invoke execute_all_close_hooks instead of
15171         _gl_close_fd_maybe_socket.
15172         * lib/sockets.c: Include close-hook.h, w32sock.h.
15173         (close_fd_maybe_socket): New function, essentially from lib/close.c.
15174         (close_sockets_hook): New variable.
15175         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
15176         (gl_sockets_cleanup): Unregister it.
15177         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
15178         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
15179         * modules/close-hook: New file.
15180         * modules/close (Files): Remove lib/w32sock.h.
15181         (Depends-on): Add close-hook.
15182         (Link): Remove section.
15183         * modules/sockets (Files): Add lib/w32sock.h.
15184         (Depends-on): Add close-hook.
15185         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
15186         invocation.
15187         * NEWS: Mention that LIB_CLOSE is gone.
15188
15189 2009-03-23  Eric Blake  <ebb9@byu.net>
15190
15191         signal-tests: test previous patch
15192         * tests/test-signal.c: New file.
15193         * modules/signal-tests: Likewise.
15194
15195         signal.h: always support 'volatile sig_atomic_t'
15196         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
15197         (gl_SIGNAL_H_DEFAULTS): Add a default.
15198         * modules/signal (Makefile.am): Substitute if needed.
15199         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
15200         users can blindly add volatile.
15201         * doc/posix-headers/signal.texi (signal.h): Document it.
15202         Reported by Matthew Woehlke.
15203
15204 2009-03-23  Jim Meyering  <meyering@redhat.com>
15205
15206         pathmax: PATH_MAX: use pathconf only when available
15207         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
15208         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
15209         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
15210         This avoids a link failure in a PSP cross-compilation environment
15211         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
15212
15213         * lib/vasnprintf.c (divide): Fix typo in comment.
15214
15215 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15216
15217         * gnulib-tool (func_filter_filelist): Fix comment.
15218
15219 2009-03-20  Bruno Haible  <bruno@clisp.org>
15220
15221         Make sockets.h self-contained.
15222         * lib/sockets.c: Include sockets.h first.
15223         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
15224
15225 2009-03-19  Eric Blake  <ebb9@byu.net>
15226
15227         doc: mention more functions added in cygwin 1.7.0
15228         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
15229         addition.
15230         * doc/posix-functions/log2f.texi: Likewise.
15231
15232 2009-03-19  Jim Meyering  <meyering@redhat.com>
15233
15234         fsusage: avoid syntax error due to statement-before-declaration
15235         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
15236         after all declarations.  Reported by Matthew Woehlke in
15237         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
15238
15239 2009-03-18  Eric Blake  <ebb9@byu.net>
15240
15241         build-aux/compile: sync from automake
15242         * build-aux/compile: New file, from automake.
15243         * config/srclist.txt: Mention build-aux/compile.
15244
15245 2009-03-17  Bruno Haible  <bruno@clisp.org>
15246
15247         * lib/git-merge-changelog.c: Fix typo in comment.
15248         Reported by Reuben Thomas <rrt@sc3d.org>.
15249
15250 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
15251
15252         * m4/regex.m4: update and improve help for
15253         --without-included-regex.
15254
15255 2009-03-17  Simon Josefsson  <simon@josefsson.org>
15256
15257         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
15258         failure on missing include files.
15259
15260 2009-03-17  Eric Blake  <ebb9@byu.net>
15261
15262         doc: mention more functions added in cygwin 1.7.0
15263         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
15264         addition.
15265         * doc/posix-functions/fwscanf.texi: Likewise.
15266         * doc/posix-functions/swprintf.texi: Likewise.
15267         * doc/posix-functions/swscanf.texi: Likewise.
15268         * doc/posix-functions/vfwprintf.texi: Likewise.
15269         * doc/posix-functions/vfwscanf.texi: Likewise.
15270         * doc/posix-functions/vswprintf.texi: Likewise.
15271         * doc/posix-functions/vswscanf.texi: Likewise.
15272         * doc/posix-functions/vwprintf.texi: Likewise.
15273         * doc/posix-functions/vwscanf.texi: Likewise.
15274         * doc/posix-functions/wcscasecmp.texi: Likewise.
15275         * doc/posix-functions/wcsdup.texi: Likewise.
15276         * doc/posix-functions/wcsftime.texi: Likewise.
15277         * doc/posix-functions/wcsncasecmp.texi: Likewise.
15278         * doc/posix-functions/wprintf.texi: Likewise.
15279         * doc/posix-functions/wscanf.texi: Likewise.
15280         * doc/glibc-functions/gethostbyname2.texi: Likewise.
15281
15282 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15283
15284         maint.mk: really add $(AM_MAKEFLAGS)
15285         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
15286         was inadvertently omitted in the last commit.
15287         Spotted by Bruno Haible.
15288
15289         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
15290         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
15291         $(AM_MAKEFLAGS)' rather than plain `make'.
15292
15293         gnulib-tool: execute $MAKE not make
15294         * gnulib-tool: Default $MAKE to 'make'.
15295         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
15296         than make.  Initialize $MAKE in the do-autobuild script.
15297
15298         gnulib-tool: use $MAKE not make in generated files
15299         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
15300         make, in generated files.  Initialize $MAKE in the do-autobuild
15301         script.
15302
15303         * top/GNUmakefile (_have-git-version-gen): Fix typo.
15304
15305         GNUmakefile: disable parallelism only for multiple, recursive targets
15306         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
15307         additions in the Makefile.
15308         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
15309         by Automake.
15310         (.NOTPARALLEL): Only disable parallel builds if multiple targets
15311         are listed on the command line and at least one of them is
15312         listed in $(ALL_RECURSIVE_TARGETS).
15313
15314 2009-03-14  Bruno Haible  <bruno@clisp.org>
15315
15316         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
15317         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
15318         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
15319         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
15320         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
15321         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
15322         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
15323         unistr/u8-uctomb.
15324         * modules/unistr/u8-strchr (Depends-on): Likewise.
15325         * modules/unistr/u8-strrchr (Depends-on): Likewise.
15326         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
15327         unistr/u16-uctomb.
15328         * modules/unistr/u16-strchr (Depends-on): Likewise.
15329         * modules/unistr/u16-strrchr (Depends-on): Likewise.
15330
15331 2009-03-12  Bruno Haible  <bruno@clisp.org>
15332
15333         Work around select() bug on Interix 3.5.
15334         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
15335         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
15336         * m4/select.m4: New file.
15337         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
15338         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
15339         * modules/select (Files): Add m4/select.m4.
15340         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
15341         * modules/nanosleep (Depends-on): Add select.
15342         * modules/poll (Depends-on): Likewise.
15343         * doc/posix-functions/select.texi: Mention the Interix bug.
15344         Reported by Markus Duft <mduft@gentoo.org>.
15345
15346         * lib/select.c: Renamed from lib/winsock-select.c.
15347         * modules/select (Files): Add lib/select.c, remove
15348         lib/winsock-select.c.
15349         (configure.ac): Update.
15350
15351 2009-03-12  Jim Meyering  <meyering@redhat.com>
15352
15353         avoid gcc warnings about unused macro definitions
15354         * lib/readtokens.c (STREQ): Remove unused definition.
15355         * lib/xmalloc.c (SIZE_MAX): Likewise.
15356         * lib/openat-die.c (N_): Likewise.
15357         * lib/mountlist.c (SIZE_MAX): Remove definition.
15358         Instead, include <stdint.h>.
15359         * lib/readutmp.c: Likewise.
15360         * modules/readutmp (Depends-on): Add stdint.
15361         * modules/mountlist (Depends-on): Add stdint.
15362         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
15363
15364 2009-03-10  Bruno Haible  <bruno@clisp.org>
15365
15366         Tests for module 'mbmemcasecoll'.
15367         * modules/mbmemcasecoll-tests: New file.
15368         * tests/test-mbmemcasecoll1.sh: New file.
15369         * tests/test-mbmemcasecoll2.sh: New file.
15370         * tests/test-mbmemcasecoll3.sh: New file.
15371         * tests/test-mbmemcasecoll.c: New file.
15372
15373         New module 'mbmemcasecoll'.
15374         * lib/mbmemcasecoll.h: New file.
15375         * lib/mbmemcasecoll.c: New file.
15376         * modules/mbmemcasecoll: New file.
15377
15378         * tests/test-mbmemcasecmp.h: New file, extracted from
15379         tests/test-mbmemcasecmp.c.
15380         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
15381         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
15382         (main): Update.
15383         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
15384
15385 2009-03-09  Bruno Haible  <bruno@clisp.org>
15386
15387         Tests for module 'mbmemcasecmp'.
15388         * modules/mbmemcasecmp-tests: New file.
15389         * tests/test-mbmemcasecmp1.sh: New file.
15390         * tests/test-mbmemcasecmp2.sh: New file.
15391         * tests/test-mbmemcasecmp3.sh: New file.
15392         * tests/test-mbmemcasecmp.c: New file.
15393
15394         New module 'mbmemcasecmp'.
15395         * lib/mbmemcasecmp.h: New file.
15396         * lib/mbmemcasecmp.c: New file.
15397         * modules/mbmemcasecmp: New file.
15398
15399 2009-03-09  Bruno Haible  <bruno@clisp.org>
15400
15401         Tests for module 'unicase/ulc-casecoll'.
15402         * modules/unicase/ulc-casecoll-tests: New file.
15403         * tests/unicase/test-ulc-casecoll1.sh: New file.
15404         * tests/unicase/test-ulc-casecoll2.sh: New file.
15405         * tests/unicase/test-ulc-casecoll.c: New file.
15406
15407         New module 'unicase/ulc-casecoll'.
15408         * lib/unicase.h (ulc_casecoll): New declaration.
15409         * lib/unicase/ulc-casecoll.c: New file.
15410         * modules/unicase/ulc-casecoll: New file.
15411
15412         New module 'unicase/ulc-casexfrm'.
15413         * lib/unicase.h (ulc_casexfrm): New declaration.
15414         * lib/unicase/ulc-casexfrm.c: New file.
15415         * modules/unicase/ulc-casexfrm: New file.
15416
15417 2009-03-09  Bruno Haible  <bruno@clisp.org>
15418
15419         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
15420         invocations.
15421
15422         * m4/mbscasecmp.m4: Remove file.
15423         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
15424         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
15425
15426         * m4/mbscasestr.m4: Remove file.
15427         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
15428         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
15429
15430         * m4/mbschr.m4: Remove file.
15431         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
15432         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
15433
15434         * m4/mbscspn.m4: Remove file.
15435         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
15436         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
15437
15438         * m4/mbslen.m4: Remove file.
15439         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
15440         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
15441
15442         * m4/mbsncasecmp.m4: Remove file.
15443         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
15444         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
15445
15446         * m4/mbsnlen.m4: Remove file.
15447         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
15448         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
15449
15450         * m4/mbspbrk.m4: Remove file.
15451         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
15452         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
15453
15454         * m4/mbspcasecmp.m4: Remove file.
15455         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
15456         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
15457
15458         * m4/mbsrchr.m4: Remove file.
15459         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
15460         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
15461
15462         * m4/mbssep.m4: Remove file.
15463         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
15464         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
15465
15466         * m4/mbsspn.m4: Remove file.
15467         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
15468         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
15469
15470         * m4/mbsstr.m4: Remove file.
15471         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
15472         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
15473
15474         * m4/mbstok_r.m4: Remove file.
15475         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
15476         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
15477
15478         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
15479
15480         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
15481         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
15482
15483         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
15484
15485 2009-03-08  Bruno Haible  <bruno@clisp.org>
15486
15487         Tests for module 'unicase/ulc-casecmp'.
15488         * modules/unicase/ulc-casecmp-tests: New file.
15489         * tests/unicase/test-ulc-casecmp1.sh: New file.
15490         * tests/unicase/test-ulc-casecmp2.sh: New file.
15491         * tests/unicase/test-ulc-casecmp.c: New file.
15492
15493         New module 'unicase/ulc-casecmp'.
15494         * lib/unicase.h (ulc_casecmp): New declaration.
15495         * lib/unicase/ulc-casecmp.c: New file.
15496         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
15497         'const SRC_UNIT *'.
15498         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
15499         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
15500         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
15501         * modules/unicase/ulc-casecmp: New file.
15502
15503         Tests for module 'unicase/u32-is-cased'.
15504         * modules/unicase/u32-is-cased-tests: New file.
15505         * tests/unicase/test-u32-is-cased.c: New file.
15506
15507         Tests for module 'unicase/u16-is-cased'.
15508         * modules/unicase/u16-is-cased-tests: New file.
15509         * tests/unicase/test-u16-is-cased.c: New file.
15510
15511         Tests for module 'unicase/u8-is-cased'.
15512         * modules/unicase/u8-is-cased-tests: New file.
15513         * tests/unicase/test-u8-is-cased.c: New file.
15514         * tests/unicase/test-is-cased.h: New file.
15515
15516         New module 'unicase/u32-is-cased'.
15517         * lib/unicase/u32-is-cased.c: New file.
15518         * modules/unicase/u32-is-cased: New file.
15519
15520         New module 'unicase/u16-is-cased'.
15521         * lib/unicase/u16-is-cased.c: New file.
15522         * modules/unicase/u16-is-cased: New file.
15523
15524         New module 'unicase/u8-is-cased'.
15525         * lib/unicase/u8-is-cased.c: New file.
15526         * lib/unicase/u-is-cased.h: New file.
15527         * modules/unicase/u8-is-cased: New file.
15528
15529         Tests for module 'unicase/u32-is-casefolded'.
15530         * modules/unicase/u32-is-casefolded-tests: New file.
15531         * tests/unicase/test-u32-is-casefolded.c: New file.
15532
15533         Tests for module 'unicase/u16-is-casefolded'.
15534         * modules/unicase/u16-is-casefolded-tests: New file.
15535         * tests/unicase/test-u16-is-casefolded.c: New file.
15536
15537         Tests for module 'unicase/u8-is-casefolded'.
15538         * modules/unicase/u8-is-casefolded-tests: New file.
15539         * tests/unicase/test-u8-is-casefolded.c: New file.
15540         * tests/unicase/test-is-casefolded.h: New file.
15541
15542         New module 'unicase/u32-is-casefolded'.
15543         * lib/unicase/u32-is-casefolded.c: New file.
15544         * modules/unicase/u32-is-casefolded: New file.
15545
15546         New module 'unicase/u16-is-casefolded'.
15547         * lib/unicase/u16-is-casefolded.c: New file.
15548         * modules/unicase/u16-is-casefolded: New file.
15549
15550         New module 'unicase/u8-is-casefolded'.
15551         * lib/unicase/u8-is-casefolded.c: New file.
15552         * modules/unicase/u8-is-casefolded: New file.
15553
15554         Tests for module 'unicase/u32-is-titlecase'.
15555         * modules/unicase/u32-is-titlecase-tests: New file.
15556         * tests/unicase/test-u32-is-titlecase.c: New file.
15557
15558         Tests for module 'unicase/u16-is-titlecase'.
15559         * modules/unicase/u16-is-titlecase-tests: New file.
15560         * tests/unicase/test-u16-is-titlecase.c: New file.
15561
15562         Tests for module 'unicase/u8-is-titlecase'.
15563         * modules/unicase/u8-is-titlecase-tests: New file.
15564         * tests/unicase/test-u8-is-titlecase.c: New file.
15565         * tests/unicase/test-is-titlecase.h: New file.
15566
15567         New module 'unicase/u32-is-titlecase'.
15568         * lib/unicase/u32-is-titlecase.c: New file.
15569         * modules/unicase/u32-is-titlecase: New file.
15570
15571         New module 'unicase/u16-is-titlecase'.
15572         * lib/unicase/u16-is-titlecase.c: New file.
15573         * modules/unicase/u16-is-titlecase: New file.
15574
15575         New module 'unicase/u8-is-titlecase'.
15576         * lib/unicase/u8-is-titlecase.c: New file.
15577         * modules/unicase/u8-is-titlecase: New file.
15578
15579         Tests for module 'unicase/u32-is-lowercase'.
15580         * modules/unicase/u32-is-lowercase-tests: New file.
15581         * tests/unicase/test-u32-is-lowercase.c: New file.
15582
15583         Tests for module 'unicase/u16-is-lowercase'.
15584         * modules/unicase/u16-is-lowercase-tests: New file.
15585         * tests/unicase/test-u16-is-lowercase.c: New file.
15586
15587         Tests for module 'unicase/u8-is-lowercase'.
15588         * modules/unicase/u8-is-lowercase-tests: New file.
15589         * tests/unicase/test-u8-is-lowercase.c: New file.
15590         * tests/unicase/test-is-lowercase.h: New file.
15591
15592         New module 'unicase/u32-is-lowercase'.
15593         * lib/unicase/u32-is-lowercase.c: New file.
15594         * modules/unicase/u32-is-lowercase: New file.
15595
15596         New module 'unicase/u16-is-lowercase'.
15597         * lib/unicase/u16-is-lowercase.c: New file.
15598         * modules/unicase/u16-is-lowercase: New file.
15599
15600         New module 'unicase/u8-is-lowercase'.
15601         * lib/unicase/u8-is-lowercase.c: New file.
15602         * modules/unicase/u8-is-lowercase: New file.
15603
15604         Tests for module 'unicase/u32-is-uppercase'.
15605         * modules/unicase/u32-is-uppercase-tests: New file.
15606         * tests/unicase/test-u32-is-uppercase.c: New file.
15607
15608         Tests for module 'unicase/u16-is-uppercase'.
15609         * modules/unicase/u16-is-uppercase-tests: New file.
15610         * tests/unicase/test-u16-is-uppercase.c: New file.
15611
15612         Tests for module 'unicase/u8-is-uppercase'.
15613         * modules/unicase/u8-is-uppercase-tests: New file.
15614         * tests/unicase/test-u8-is-uppercase.c: New file.
15615         * tests/unicase/test-is-uppercase.h: New file.
15616
15617         New module 'unicase/u32-is-uppercase'.
15618         * lib/unicase/u32-is-uppercase.c: New file.
15619         * modules/unicase/u32-is-uppercase: New file.
15620
15621         New module 'unicase/u16-is-uppercase'.
15622         * lib/unicase/u16-is-uppercase.c: New file.
15623         * modules/unicase/u16-is-uppercase: New file.
15624
15625         New module 'unicase/u8-is-uppercase'.
15626         * lib/unicase/u8-is-uppercase.c: New file.
15627         * modules/unicase/u8-is-uppercase: New file.
15628
15629         New module 'unicase/u32-is-invariant'.
15630         * lib/unicase/u32-is-invariant.c: New file.
15631         * modules/unicase/u32-is-invariant: New file.
15632
15633         New module 'unicase/u16-is-invariant'.
15634         * lib/unicase/u16-is-invariant.c: New file.
15635         * modules/unicase/u16-is-invariant: New file.
15636
15637         New module 'unicase/u8-is-invariant'.
15638         * lib/unicase/u8-is-invariant.c: New file.
15639         * lib/unicase/invariant.h: New file.
15640         * lib/unicase/u-is-invariant.h: New file.
15641         * modules/unicase/u8-is-invariant: New file.
15642
15643         Tests for module 'unicase/u32-casecoll'.
15644         * modules/unicase/u32-casecoll-tests: New file.
15645         * tests/unicase/test-u32-casecoll.c: New file.
15646
15647         Tests for module 'unicase/u16-casecoll'.
15648         * modules/unicase/u16-casecoll-tests: New file.
15649         * tests/unicase/test-u16-casecoll.c: New file.
15650
15651         Tests for module 'unicase/u8-casecoll'.
15652         * modules/unicase/u8-casecoll-tests: New file.
15653         * tests/unicase/test-u8-casecoll.c: New file.
15654
15655         New module 'unicase/u32-casecoll'.
15656         * lib/unicase/u32-casecoll.c: New file.
15657         * modules/unicase/u32-casecoll: New file.
15658
15659         New module 'unicase/u16-casecoll'.
15660         * lib/unicase/u16-casecoll.c: New file.
15661         * modules/unicase/u16-casecoll: New file.
15662
15663         New module 'unicase/u8-casecoll'.
15664         * lib/unicase/u8-casecoll.c: New file.
15665         * lib/unicase/u-casecoll.h: New file.
15666         * modules/unicase/u8-casecoll: New file.
15667
15668         New module 'unicase/u32-casexfrm'.
15669         * lib/unicase/u32-casexfrm.c: New file.
15670         * modules/unicase/u32-casexfrm: New file.
15671
15672         New module 'unicase/u16-casexfrm'.
15673         * lib/unicase/u16-casexfrm.c: New file.
15674         * modules/unicase/u16-casexfrm: New file.
15675
15676         New module 'unicase/u8-casexfrm'.
15677         * lib/unicase/u8-casexfrm.c: New file.
15678         * lib/unicase/u-casexfrm.h: New file.
15679         * modules/unicase/u8-casexfrm: New file.
15680
15681         Tests for module 'unicase/u32-casecmp'.
15682         * modules/unicase/u32-casecmp-tests: New file.
15683         * tests/unicase/test-u32-casecmp.c: New file.
15684
15685         Tests for module 'unicase/u16-casecmp'.
15686         * modules/unicase/u16-casecmp-tests: New file.
15687         * tests/unicase/test-u16-casecmp.c: New file.
15688
15689         Tests for module 'unicase/u8-casecmp'.
15690         * modules/unicase/u8-casecmp-tests: New file.
15691         * tests/unicase/test-u8-casecmp.c: New file.
15692         * tests/unicase/test-casecmp.h: New file.
15693
15694         New module 'unicase/u32-casecmp'.
15695         * lib/unicase/u32-casecmp.c: New file.
15696         * modules/unicase/u32-casecmp: New file.
15697
15698         New module 'unicase/u16-casecmp'.
15699         * lib/unicase/u16-casecmp.c: New file.
15700         * modules/unicase/u16-casecmp: New file.
15701
15702         New module 'unicase/u8-casecmp'.
15703         * lib/unicase/u8-casecmp.c: New file.
15704         * lib/unicase/u-casecmp.h: New file.
15705         * modules/unicase/u8-casecmp: New file.
15706
15707         Tests for module 'unicase/u32-casefold'.
15708         * modules/unicase/u32-casefold-tests: New file.
15709         * tests/unicase/test-u32-casefold.c: New file.
15710
15711         Tests for module 'unicase/u16-casefold'.
15712         * modules/unicase/u16-casefold-tests: New file.
15713         * tests/unicase/test-u16-casefold.c: New file.
15714
15715         Tests for module 'unicase/u8-casefold'.
15716         * modules/unicase/u8-casefold-tests: New file.
15717         * tests/unicase/test-u8-casefold.c: New file.
15718
15719         New module 'unicase/u32-casefold'.
15720         * lib/unicase/u32-casefold.c: New file.
15721         * modules/unicase/u32-casefold: New file.
15722
15723         New module 'unicase/u16-casefold'.
15724         * lib/unicase/u16-casefold.c: New file.
15725         * modules/unicase/u16-casefold: New file.
15726
15727         New module 'unicase/u8-casefold'.
15728         * lib/unicase/u8-casefold.c: New file.
15729         * lib/unicase/u-casefold.h: New file.
15730         * modules/unicase/u8-casefold: New file.
15731
15732         New module 'unicase/tocasefold'.
15733         * lib/unicase/casefold.h: New file.
15734         * lib/unicase/tocasefold.c: New file.
15735         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
15736         * modules/unicase/tocasefold: New file.
15737
15738         Tests for module 'unicase/u32-totitle'.
15739         * modules/unicase/u32-totitle-tests: New file.
15740         * tests/unicase/test-u32-totitle.c: New file.
15741
15742         Tests for module 'unicase/u16-totitle'.
15743         * modules/unicase/u16-totitle-tests: New file.
15744         * tests/unicase/test-u16-totitle.c: New file.
15745
15746         Tests for module 'unicase/u8-totitle'.
15747         * modules/unicase/u8-totitle-tests: New file.
15748         * tests/unicase/test-u8-totitle.c: New file.
15749
15750         New module 'unicase/u32-totitle'.
15751         * lib/unicase/u32-totitle.c: New file.
15752         * modules/unicase/u32-totitle: New file.
15753
15754         New module 'unicase/u16-totitle'.
15755         * lib/unicase/u16-totitle.c: New file.
15756         * modules/unicase/u16-totitle: New file.
15757
15758         New module 'unicase/u8-totitle'.
15759         * lib/unicase/u8-totitle.c: New file.
15760         * lib/unicase/u-totitle.h: New file.
15761         * modules/unicase/u8-totitle: New file.
15762
15763         Tests for module 'unicase/u32-tolower'.
15764         * modules/unicase/u32-tolower-tests: New file.
15765         * tests/unicase/test-u32-tolower.c: New file.
15766
15767         Tests for module 'unicase/u16-tolower'.
15768         * modules/unicase/u16-tolower-tests: New file.
15769         * tests/unicase/test-u16-tolower.c: New file.
15770
15771         Tests for module 'unicase/u8-tolower'.
15772         * modules/unicase/u8-tolower-tests: New file.
15773         * tests/unicase/test-u8-tolower.c: New file.
15774
15775         New module 'unicase/u32-tolower'.
15776         * lib/unicase/u32-tolower.c: New file.
15777         * modules/unicase/u32-tolower: New file.
15778
15779         New module 'unicase/u16-tolower'.
15780         * lib/unicase/u16-tolower.c: New file.
15781         * modules/unicase/u16-tolower: New file.
15782
15783         New module 'unicase/u8-tolower'.
15784         * lib/unicase/u8-tolower.c: New file.
15785         * modules/unicase/u8-tolower: New file.
15786
15787         Tests for module 'unicase/u32-toupper'.
15788         * modules/unicase/u32-toupper-tests: New file.
15789         * tests/unicase/test-u32-toupper.c: New file.
15790
15791         Tests for module 'unicase/u16-toupper'.
15792         * modules/unicase/u16-toupper-tests: New file.
15793         * tests/unicase/test-u16-toupper.c: New file.
15794
15795         Tests for module 'unicase/u8-toupper'.
15796         * modules/unicase/u8-toupper-tests: New file.
15797         * tests/unicase/test-u8-toupper.c: New file.
15798
15799         New module 'unicase/u32-toupper'.
15800         * lib/unicase/u32-toupper.c: New file.
15801         * modules/unicase/u32-toupper: New file.
15802
15803         New module 'unicase/u16-toupper'.
15804         * lib/unicase/u16-toupper.c: New file.
15805         * modules/unicase/u16-toupper: New file.
15806
15807         New module 'unicase/u8-toupper'.
15808         * lib/unicase/u8-toupper.c: New file.
15809         * modules/unicase/u8-toupper: New file.
15810
15811         New module 'unicase/u32-casemap'.
15812         * lib/unicase/u32-casemap.c: New file.
15813         * modules/unicase/u32-casemap: New file.
15814
15815         New module 'unicase/u16-casemap'.
15816         * lib/unicase/u16-casemap.c: New file.
15817         * modules/unicase/u16-casemap: New file.
15818
15819         New module 'unicase/u8-casemap'.
15820         * lib/unicase/unicasemap.h: New file.
15821         * lib/unicase/u8-casemap.c: New file.
15822         * lib/unicase/u-casemap.h: New file.
15823         * modules/unicase/u8-casemap: New file.
15824
15825         New module 'unicase/special-casing'.
15826         * lib/unicase/special-casing.h: New file.
15827         * lib/unicase/special-casing.c: New file.
15828         * lib/unicase/special-casing-table.gperf: New file, generated by
15829         gen-uni-tables.c.
15830         * modules/unicase/special-casing: New file.
15831
15832         Tests for module 'unicase/locale-language'.
15833         * modules/unicase/locale-language-tests: New file.
15834         * tests/unicase/test-locale-language.sh: New file.
15835         * tests/unicase/test-locale-language.c: New file.
15836
15837         New module 'unicase/locale-language'.
15838         * lib/unicase/locale-language.c: New file.
15839         * lib/unicase/locale-languages.gperf: New file.
15840         * modules/unicase/locale-language: New file.
15841
15842         Generate more tables for case conversion and case folding.
15843         * lib/gen-uni-tables.c (SCC_*): New enum items.
15844         (struct special_casing_rule): New type.
15845         (casing_rules, num_casing_rules, allocated_casing_rules): New
15846         variables.
15847         (add_casing_rule, fill_casing_rules): New functions.
15848         (struct casefold_rule): New type.
15849         (casefolding_rules, num_casefolding_rules,
15850         allocated_casefolding_rules): New variables.
15851         (fill_casefolding_rules): New function.
15852         (unicode_casefold): New variable.
15853         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
15854         sort_casing_rules, output_casing_rules): New functions.
15855         (main): Accept to more arguments: SpecialCasing.txt and
15856         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
15857         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
15858         Output mapping for casefolding.
15859
15860         * lib/unicase.h: Include stdbool.h, uninorm.h.
15861         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
15862         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
15863         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
15864         arguments.
15865         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
15866         resultp arguments.
15867         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
15868         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
15869         resultp arguments.
15870         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
15871         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
15872         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
15873         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
15874         declarations.
15875         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
15876
15877 2009-03-08  Bruno Haible  <bruno@clisp.org>
15878
15879         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
15880         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
15881         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
15882         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
15883
15884 2009-03-07  Bruno Haible  <bruno@clisp.org>
15885
15886         Adjust u*_normcmp, u*_normcoll API.
15887         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
15888         u16_normcoll, u32_normcoll): Change failure conventions.
15889         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
15890         errno and return -1.
15891         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
15892
15893 2009-03-07  Bruno Haible  <bruno@clisp.org>
15894
15895         Tests for module 'uninorm/u32-normcoll'.
15896         * modules/uninorm/u32-normcoll-tests: New file.
15897         * tests/uninorm/test-u32-normcoll.c: New file.
15898
15899         Tests for module 'uninorm/u16-normcoll'.
15900         * modules/uninorm/u16-normcoll-tests: New file.
15901         * tests/uninorm/test-u16-normcoll.c: New file.
15902
15903         Tests for module 'uninorm/u8-normcoll'.
15904         * modules/uninorm/u8-normcoll-tests: New file.
15905         * tests/uninorm/test-u8-normcoll.c: New file.
15906
15907 2009-03-07  Bruno Haible  <bruno@clisp.org>
15908
15909         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
15910         tests/uninorm/test-u32-normcmp.c.
15911         * tests/uninorm/test-u32-normcmp.c: Include it.
15912         (test_nonascii): New function, extracted from main. Add some more
15913         tests.
15914         (main): Invoke test_ascii and test_nonascii.
15915         * modules/uninorm/u32-normcmp-tests (Files): Add
15916         tests/uninorm/test-u32-normcmp.h.
15917         (Depends-on): Remove uninorm/u32-normcmp.
15918
15919         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
15920         tests/uninorm/test-u16-normcmp.c.
15921         * tests/uninorm/test-u16-normcmp.c: Include it.
15922         (test_nonascii): New function, extracted from main. Add some more
15923         tests.
15924         (main): Invoke test_ascii and test_nonascii.
15925         * modules/uninorm/u16-normcmp-tests (Files): Add
15926         tests/uninorm/test-u16-normcmp.h.
15927         (Depends-on): Remove uninorm/u16-normcmp.
15928
15929         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
15930         tests/uninorm/test-u8-normcmp.c.
15931         * tests/uninorm/test-u8-normcmp.c: Include it.
15932         (test_nonascii): New function, extracted from main. Add some more
15933         tests.
15934         (main): Invoke test_ascii and test_nonascii.
15935         * modules/uninorm/u8-normcmp-tests (Files): Add
15936         tests/uninorm/test-u8-normcmp.h.
15937         (Depends-on): Remove uninorm/u8-normcmp.
15938
15939 2009-03-07  Bruno Haible  <bruno@clisp.org>
15940
15941         New module 'uninorm/u32-normcoll'.
15942         * lib/uninorm/u32-normcoll.c: New file.
15943         * modules/uninorm/u32-normcoll: New file.
15944
15945         New module 'uninorm/u16-normcoll'.
15946         * lib/uninorm/u16-normcoll.c: New file.
15947         * modules/uninorm/u16-normcoll: New file.
15948
15949         New module 'uninorm/u8-normcoll'.
15950         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
15951         declarations.
15952         * lib/uninorm/u8-normcoll.c: New file.
15953         * lib/uninorm/u-normcoll.h: New file.
15954         * modules/uninorm/u8-normcoll: New file.
15955
15956         New module 'uninorm/u32-normxfrm'.
15957         * lib/uninorm/u32-normxfrm.c: New file.
15958         * modules/uninorm/u32-normxfrm: New file.
15959
15960         New module 'uninorm/u16-normxfrm'.
15961         * lib/uninorm/u16-normxfrm.c: New file.
15962         * modules/uninorm/u16-normxfrm: New file.
15963
15964         New module 'uninorm/u8-normxfrm'.
15965         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
15966         declarations.
15967         * lib/uninorm/u8-normxfrm.c: New file.
15968         * lib/uninorm/u-normxfrm.h: New file.
15969         * modules/uninorm/u8-normxfrm: New file.
15970
15971 2009-03-07  Bruno Haible  <bruno@clisp.org>
15972
15973         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
15974         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
15975         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
15976
15977 2009-03-07  Bruno Haible  <bruno@clisp.org>
15978
15979         New module 'memxfrm'.
15980         * lib/memxfrm.h: New file.
15981         * lib/memxfrm.c: New file.
15982         * modules/memxfrm: New file.
15983
15984 2009-03-07  Bruno Haible  <bruno@clisp.org>
15985
15986         New module 'memcmp2'.
15987         * lib/memcmp2.h: New file.
15988         * lib/memcmp2.c: New file.
15989         * modules/memcmp2: New file.
15990
15991 2009-03-07  Bruno Haible  <bruno@clisp.org>
15992
15993         Tests for module 'uninorm/decomposing-form'.
15994         * modules/uninorm/decomposing-form-tests: New file.
15995         * tests/uninorm/test-decomposing-form.c: New file.
15996
15997         New module 'uninorm/decomposing-form'.
15998         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
15999         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
16000         Add 'decomposing_variant' field.
16001         * lib/uninorm/decomposing-form.c: New file.
16002         * lib/uninorm/nfc.c (uninorm_nfc): Update.
16003         * lib/uninorm/nfd.c (uninorm_nfd): Update.
16004         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
16005         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
16006         * modules/uninorm/decomposing-form: New file.
16007         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
16008         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
16009
16010 2009-03-07  Bruno Haible  <bruno@clisp.org>
16011
16012         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
16013         strings.
16014
16015 2009-03-06  Bruno Haible  <bruno@clisp.org>
16016
16017         Tests for module 'uninorm/u32-normcmp'.
16018         * tests/uninorm/test-u32-normcmp.c: New file.
16019         * modules/uninorm/u32-normcmp-tests: New file.
16020
16021         Tests for module 'uninorm/u16-normcmp'.
16022         * tests/uninorm/test-u16-normcmp.c: New file.
16023         * modules/uninorm/u16-normcmp-tests: New file.
16024
16025         Tests for module 'uninorm/u8-normcmp'.
16026         * tests/uninorm/test-u8-normcmp.c: New file.
16027         * modules/uninorm/u8-normcmp-tests: New file.
16028
16029         New module 'uninorm/u32-normcmp'.
16030         * lib/uninorm/u32-normcmp.c: New file.
16031         * modules/uninorm/u32-normcmp: New file.
16032
16033         New module 'uninorm/u16-normcmp'.
16034         * lib/uninorm/u16-normcmp.c: New file.
16035         * modules/uninorm/u16-normcmp: New file.
16036
16037         New module 'uninorm/u8-normcmp'.
16038         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
16039         declarations.
16040         * lib/uninorm/u8-normcmp.c: New file.
16041         * lib/uninorm/u-normcmp.h: New file.
16042         * modules/uninorm/u8-normcmp: New file.
16043
16044 2009-03-06  Bruno Haible  <bruno@clisp.org>
16045
16046         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
16047         Reported by Eric Blake.
16048
16049 2009-03-06  Eric Blake  <ebb9@byu.net>
16050             Bruno Haible  <bruno@clisp.org>
16051
16052         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
16053         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
16054         condition.
16055         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
16056         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
16057         condition.
16058         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
16059
16060 2009-03-06  Eric Blake  <ebb9@byu.net>
16061
16062         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
16063         to avoid compiler warnings.
16064         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
16065
16066 2009-03-05  Bruno Haible  <bruno@clisp.org>
16067
16068         * tests/test-ftell.c (main): Disable test beyond end of file on
16069         FreeMiNT.
16070         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
16071
16072 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
16073
16074         * lib/filevercmp.c: Move hidden files up in ordering.
16075         * tests/test-filevercmp.c: Add tests for hidden files.
16076
16077 2009-03-04  Bruno Haible  <bruno@clisp.org>
16078
16079         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
16080         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
16081         AM_CFLAGS.
16082         Reported by Simon Josefsson.
16083
16084 2009-03-03  Bruno Haible  <bruno@clisp.org>
16085
16086         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
16087         Reported by Simon Josefsson.
16088
16089         * doc/ld-version-script.texi: Update node reference.
16090
16091 2009-03-03  Bruno Haible  <bruno@clisp.org>
16092
16093         * modules/visibility (License): Change to 'unlimited'.
16094         Suggested by Simon Josefsson.
16095
16096 2009-03-03  Jim Meyering  <meyering@redhat.com>
16097
16098         unlinkdir: cannot_unlink_dir may modify process state
16099         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
16100         it's neither thread-safe nor appropriate for use in a library.
16101
16102 2009-03-03  Eric Blake  <ebb9@byu.net>
16103
16104         test-closein: silence test under Darwin
16105         * tests/test-closein.sh: Ignore stderr from cat, since we don't
16106         care if it dies from EPIPE or EBADF.
16107
16108 2009-03-03  Bruno Haible  <bruno@clisp.org>
16109
16110         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
16111         earlier.
16112         * doc/visibility.texi: Fix @node and @section.
16113
16114 2009-03-03  Simon Josefsson  <simon@josefsson.org>
16115
16116         * doc/gnulib.texi: Link to sections for ld version script and
16117         visibility.
16118         * doc/visibility.texi: Add @node and @section.
16119         * modules/ld-version-script: New module.
16120         * m4/ld-version-script.m4: New file.
16121         * doc/ld-version-script.texi: New file.
16122
16123 2009-03-02  David Lutterkort  <lutter@redhat.com>
16124
16125         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
16126         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16127
16128 2009-03-02  Bruno Haible  <bruno@clisp.org>
16129
16130         * doc/visibility.texi: Mention libtool's -export-symbols option.
16131
16132 2009-03-02  Jim Meyering  <meyering@redhat.com>
16133
16134         announce-gen: new option: --no-print-checksums
16135         * build-aux/announce-gen (usage): Describe it.
16136         (print_checksums): Print a newline here, not in the [*] footnote.
16137         (main): Honor it.
16138
16139 2009-03-01  Bruno Haible  <bruno@clisp.org>
16140
16141         Use socklen_t in the native Windows replacements prototypes.
16142         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
16143         instead of 'int'.
16144         * lib/getsockopt.c (rpl_getsockopt): Likewise.
16145         * lib/setsockopt.c (rpl_setsockopt): Likewise.
16146         * modules/getsockopt (Depends-on): Add socklen.
16147         * modules/setsockopt (Depends-on): Add socklen.
16148
16149 2009-03-01  Bruno Haible  <bruno@clisp.org>
16150
16151         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
16152         least 4.2.
16153
16154 2009-03-01  Eric Blake  <ebb9@byu.net>
16155             Bruno Haible  <bruno@clisp.org>
16156
16157         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
16158         error messages.
16159         * lib/wait-process.c (wait_subprocess): Omit error message about
16160         deadly signal sent to the child of termsigp != NULL.
16161
16162 2009-03-01  Eric Blake  <ebb9@byu.net>
16163
16164         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
16165
16166 2009-03-01  Bruno Haible  <bruno@clisp.org>
16167
16168         Avoid a gcc warning.
16169         * tests/test-sched.c (b): Make global.
16170         Reported by Eric Blake.
16171
16172 2009-01-19  Martin Lambers  <marlam@marlam.de>
16173
16174         Provide POSIX semantics for socket timeout options on W32.
16175         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
16176         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
16177         * modules/setsockopt: Depend on sys_time module for struct timeval.
16178         * modules/getsockopt: Depend on sys_time module for struct timeval.
16179
16180 2009-03-01  Simon Josefsson  <simon@josefsson.org>
16181
16182         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
16183         __USE_GNU, for consistency with netdb.in.h.
16184         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
16185
16186 2009-03-01  Bruno Haible  <bruno@clisp.org>
16187
16188         More support for FreeMiNT.
16189         * lib/fseeko.c (rpl_fseeko): Complete last commit.
16190         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
16191
16192 2009-03-01  Bruno Haible  <bruno@clisp.org>
16193
16194         More support for FreeMiNT.
16195         * lib/fpurge.c (fpurge): Correct last commit.
16196         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
16197
16198 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16199
16200         Fix unportable awk script in vc-list-files.
16201         * build-aux/vc-list-files: In the replacement awk script, use
16202         substr with a second argument of 1, not zero.
16203         Report by Simon Josefsson.
16204
16205 2009-02-28  Bruno Haible  <bruno@clisp.org>
16206
16207         More support for FreeMiNT.
16208         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
16209         to FreeMiNT today.
16210         * lib/fwriting.c (fwriting): Likewise.
16211         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
16212
16213 2009-02-28  Bruno Haible  <bruno@clisp.org>
16214
16215         * tests/test-freadseek.c (main): Disable test beyond end of file on
16216         FreeMiNT.
16217         * tests/test-ftello.c (main): Likewise.
16218         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
16219
16220 2009-02-28  Bruno Haible  <bruno@clisp.org>
16221
16222         Add tentative support for FreeMiNT.
16223         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
16224         * lib/fpurge.c (fpurge): Likewise.
16225         * lib/freadable.c (freadable): Likewise.
16226         * lib/freading.c (freading): Likewise.
16227         * lib/freadptr.c (freadptr): Likewise.
16228         * lib/freadseek.c (freadptrinc): Likewise.
16229         * lib/fseeko.c (rpl_fseeko): Likewise.
16230         * lib/fseterr.c (fseterr): Likewise.
16231         * lib/fwritable.c (fwritable): Likewise.
16232         * lib/fwriting.c (fwriting): Likewise.
16233         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
16234         Hourihane.
16235         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
16236
16237 2009-02-28  Bruno Haible  <bruno@clisp.org>
16238
16239         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
16240         SIGCHLD.
16241         Reported by Jim Meyering.
16242
16243 2009-02-28  Bruno Haible  <bruno@clisp.org>
16244
16245         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
16246         Mention the results of these tests on various platforms.
16247         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
16248         order.
16249         * doc/posix-functions/printf.texi: Likewise.
16250         * doc/posix-functions/snprintf.texi: Likewise.
16251         * doc/posix-functions/sprintf.texi: Likewise.
16252         * doc/posix-functions/vfprintf.texi: Likewise.
16253         * doc/posix-functions/vprintf.texi: Likewise.
16254         * doc/posix-functions/vsnprintf.texi: Likewise.
16255         * doc/posix-functions/vsprintf.texi: Likewise.
16256         * doc/glibc-functions/obstack_printf.texi: Likewise.
16257         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
16258
16259 2009-02-28  Bruno Haible  <bruno@clisp.org>
16260
16261         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
16262         Reported by Loïc Minier <lool@dooz.org>.
16263
16264 2009-02-27  Bruno Haible  <bruno@clisp.org>
16265
16266         * gnulib-tool (func_import): Make the sed expression used to create the
16267         sed script for updating the .gitignore file POSIX compliant.
16268         Reported by Eric Blake.
16269
16270 2009-02-27  Bruno Haible  <bruno@clisp.org>
16271
16272         * gnulib-tool (sed): Don't alias as "sed --posix".
16273         Reported by Eric Blake.
16274
16275 2009-02-27  Bruno Haible  <bruno@clisp.org>
16276
16277         Avoid test link errors.
16278         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
16279         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
16280         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
16281         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
16282         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16283
16284 2009-02-27  Bruno Haible  <bruno@clisp.org>
16285
16286         Avoid spurious "(cached)" in configure output.
16287         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
16288         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
16289         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
16290         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
16291         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
16292         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
16293         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
16294         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
16295         Reported by Eric Blake.
16296
16297 2009-02-27  Eric Blake  <ebb9@byu.net>
16298
16299         printf: fix regression in previous patch
16300         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
16301
16302 2009-02-27  Bruno Haible  <bruno@clisp.org>
16303
16304         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
16305         value.
16306         * lib/stdint.in.h: Likewise.
16307         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
16308
16309 2009-02-27  Eric Blake  <ebb9@byu.net>
16310
16311         doc: mention more functions added in cygwin 1.7.0
16312         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
16313         addition.
16314         * doc/posix-functions/open_wmemstream.texi: Likewise.
16315         * doc/posix-functions/wcsnlen.texi: Likewise.
16316         * doc/posix-functions/wcsnrtombs.texi: Likewise.
16317         * doc/posix-functions/wcstod.texi: Likewise.
16318         * doc/posix-functions/wcstof.texi: Likewise.
16319         * doc/posix-functions/wcstoimax.texi: Likewise.
16320         * doc/posix-functions/wcstok.texi: Likewise.
16321         * doc/posix-functions/wcstoumax.texi: Likewise.
16322
16323         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
16324         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
16325         * doc/posix-functions/fprintf.texi: Update.
16326         * doc/posix-functions/printf.texi: Update.
16327         * doc/posix-functions/snprintf.texi: Update.
16328         * doc/posix-functions/sprintf.texi: Update.
16329         * doc/posix-functions/vfprintf.texi: Update.
16330         * doc/posix-functions/vprintf.texi: Update.
16331         * doc/posix-functions/vsnprintf.texi: Update.
16332         * doc/posix-functions/vsprintf.texi: Update.
16333         * doc/glibc-functions/obstack_printf.texi: Update.
16334         * doc/glibc-functions/obstack_vprintf.texi: Update.
16335
16336 2009-02-26  Eric Blake  <ebb9@byu.net>
16337
16338         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
16339         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
16340         compilation bug by using runtime conversion.
16341         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
16342         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
16343         * modules/ceill-tests (Files): Use nan.h.
16344         * modules/floorl-tests (Files): Likewise.
16345         * modules/frexpl-tests (Files): Likewise.
16346         * modules/isnanl-tests (Files): Likewise.
16347         * modules/ldexpl-tests (Files): Likewise.
16348         * modules/roundl-tests (Files): Likewise.
16349         * modules/truncl-tests (Files): Likewise.
16350         * tests/test-ceill.c (main): Use a working NaN.
16351         * tests/test-floorl.c (main): Likewise.
16352         * tests/test-frexpl.c (main): Likewise.
16353         * tests/test-isnan.c (test_long_double): Likewise.
16354         * tests/test-isnanl.h (main): Likewise.
16355         * tests/test-ldexpl.h (main): Likewise.
16356         * tests/test-roundl.h (main): Likewise.
16357         * tests/test-truncl.h (main): Likewise.
16358         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
16359
16360 2009-02-26  Eric Blake  <ebb9@byu.net>
16361             Bruno Haible  <bruno@clisp.org>
16362
16363         Work around a *printf bug with %ls on Solaris.
16364         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
16365         precision is specified, sprintf stops converting the wide string
16366         argument when the number of bytes that have been produced by this
16367         conversion equals or exceeds the precision.
16368         * doc/posix-functions/fprintf.texi: Update.
16369         * doc/posix-functions/printf.texi: Update.
16370         * doc/posix-functions/snprintf.texi: Update.
16371         * doc/posix-functions/sprintf.texi: Update.
16372         * doc/posix-functions/vfprintf.texi: Update.
16373         * doc/posix-functions/vprintf.texi: Update.
16374         * doc/posix-functions/vsnprintf.texi: Update.
16375         * doc/posix-functions/vsprintf.texi: Update.
16376         * doc/glibc-functions/obstack_printf.texi: Update.
16377         * doc/glibc-functions/obstack_vprintf.texi: Update.
16378
16379 2009-02-26  Eric Blake  <ebb9@byu.net>
16380
16381         stdlib: favor compiler check of random.h
16382         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
16383         to avoid an ObjC random.h installed by Swarm.
16384
16385 2009-02-26  Bruno Haible  <bruno@clisp.org>
16386
16387         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
16388         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
16389         Reported by Gary V. Vaughan <gary@gnu.org>.
16390
16391 2009-02-26  Bruno Haible  <bruno@clisp.org>
16392
16393         Fix *printf behaviour regarding the %ls directive.
16394         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
16395         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
16396         NEED_PRINTF_DIRECTIVE_LS.
16397         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
16398         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
16399         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
16400         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
16401         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
16402         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
16403         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
16404         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
16405         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
16406         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
16407         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
16408         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
16409         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
16410         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
16411         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
16412         * doc/posix-functions/fprintf.texi: Update.
16413         * doc/posix-functions/printf.texi: Update.
16414         * doc/posix-functions/snprintf.texi: Update.
16415         * doc/posix-functions/sprintf.texi: Update.
16416         * doc/posix-functions/vfprintf.texi: Update.
16417         * doc/posix-functions/vprintf.texi: Update.
16418         * doc/posix-functions/vsnprintf.texi: Update.
16419         * doc/posix-functions/vsprintf.texi: Update.
16420         * doc/glibc-functions/obstack_printf.texi: Update.
16421         * doc/glibc-functions/obstack_vprintf.texi: Update.
16422         Reported by Eric Blake.
16423
16424 2009-02-25  Bruno Haible  <bruno@clisp.org>
16425
16426         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
16427         with known value.
16428         Reported by Gary V. Vaughan <gary@gnu.org>.
16429
16430 2009-02-25  Bruno Haible  <bruno@clisp.org>
16431
16432         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
16433         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
16434         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
16435         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
16436         Reported by Gary V. Vaughan <gary@gnu.org>.
16437
16438 2009-02-25  Bruno Haible  <bruno@clisp.org>
16439
16440         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
16441         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
16442         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
16443         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
16444         Reported by Gary V. Vaughan <gary@gnu.org>.
16445
16446 2009-02-25  Eric Blake  <ebb9@byu.net>
16447
16448         tests: skip fseek/ftell tests if ungetc is broken
16449         * m4/ungetc.m4: New file.
16450         * modules/fseek-tests: Split test, so ungetc dependency is
16451         separate from rest of test.
16452         * modules/fseeko-tests: Likewise.
16453         * modules/ftell-tests: Likewise.
16454         * modules/ftello-tests: Likewise.
16455         * tests/test-fseek.c (main): Isolate ungetc dependency.
16456         * tests/test-fseeko.c (main): Likewise.
16457         * tests/test-ftell.c (main): Likewise.
16458         * tests/test-ftello.c (main): Likewise.
16459         * tests/test-fseek2.sh: New file.
16460         * tests/test-fseeko2.sh: Likewise.
16461         * tests/test-ftell2.sh: Likewise.
16462         * tests/test-ftello2.sh: Likewise.
16463
16464 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
16465
16466         test-getaddrinfo: fix usage of skip return code 77
16467         * tests/test-gettaddrinfo.c: Return skip code 77 only
16468         for first occurance of skip (4x77 is not 77)
16469
16470 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
16471
16472         strtod: avoid C99 decl-after-statement
16473         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
16474
16475 2009-02-24  Eric Blake  <ebb9@byu.net>
16476
16477         strtod: detect HP-UX 11.31 bug
16478         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
16479         Reported by Gary V. Vaughan.
16480
16481 2009-02-23  Bruno Haible  <bruno@clisp.org>
16482
16483         Fix invalid read past end of memory block.
16484         * lib/vasnprintf.c (DCHAR_SET): Define.
16485         (local_wcslen): Define only when needed.
16486         (local_strnlen, local_wcsnlen): New functions.
16487         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
16488         directives that involve a conversion ourselves.
16489         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
16490         wcsnlen, mbrtowc, wcrtomb.
16491         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
16492         * tests/test-vasprintf-posix.c (test_function): Likewise.
16493         * tests/test-snprintf-posix.h (test_function): Likewise.
16494         * tests/test-sprintf-posix.h (test_function): Likewise.
16495         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16496
16497 2009-02-22  Bruno Haible  <bruno@clisp.org>
16498
16499         Implement new clarified decomposition of Hangul syllables.
16500         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
16501         of type LTV, return only a pairwise decomposition.
16502         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
16503         Likewise.
16504         * tests/uninorm/test-decomposition.c (main): Updated expected result.
16505         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
16506         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
16507
16508 2009-02-22  Bruno Haible  <bruno@clisp.org>
16509
16510         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
16511         zero-length results and shrink excess allocated memory.
16512         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
16513         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
16514         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
16515         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
16516         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
16517         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
16518         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
16519         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
16520         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
16521         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
16522         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
16523         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
16524
16525 2009-02-21  Bruno Haible  <bruno@clisp.org>
16526
16527         * doc/gnulib.texi: Include safe-alloc.texi earlier.
16528         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
16529         spaces after a period. Put a space between a macro name and its
16530         argument list. Trivial rewordings.
16531         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
16532         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
16533         (main): Return 0 explicitly.
16534
16535 2009-02-21  Bruno Haible  <bruno@clisp.org>
16536
16537         Tests for module 'uninorm/filter'.
16538         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
16539         * modules/uninorm/filter-tests: New file.
16540
16541         New module 'uninorm/filter'.
16542         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
16543         uninorm_filter_flush, uninorm_filter_free): New declarations.
16544         * lib/uninorm/uninorm-filter.c: New file.
16545         * modules/uninorm/filter: New file.
16546
16547 2009-02-21  Bruno Haible  <bruno@clisp.org>
16548
16549         Tests for module 'uninorm/nfkc'.
16550         * tests/uninorm/test-nfkc.c: New file.
16551         * tests/uninorm/test-u8-nfkc.c: New file.
16552         * tests/uninorm/test-u16-nfkc.c: New file.
16553         * tests/uninorm/test-u32-nfkc.c: New file.
16554         * tests/uninorm/test-u32-nfkc-big.sh: New file.
16555         * tests/uninorm/test-u32-nfkc-big.c: New file.
16556         * modules/uninorm/nfkc-tests: New file.
16557
16558         New module 'uninorm/nfkc'.
16559         * lib/uninorm/nfkc.c: New file.
16560         * modules/uninorm/nfkc: New file.
16561
16562         Tests for module 'uninorm/nfkd'.
16563         * tests/uninorm/test-nfkd.c: New file.
16564         * tests/uninorm/test-u8-nfkd.c: New file.
16565         * tests/uninorm/test-u16-nfkd.c: New file.
16566         * tests/uninorm/test-u32-nfkd.c: New file.
16567         * tests/uninorm/test-u32-nfkd-big.sh: New file.
16568         * tests/uninorm/test-u32-nfkd-big.c: New file.
16569         * modules/uninorm/nfkd-tests: New file.
16570
16571         New module 'uninorm/nfkd'.
16572         * lib/uninorm/nfkd.c: New file.
16573         * modules/uninorm/nfkd: New file.
16574
16575         Tests for module 'uninorm/nfc'.
16576         * tests/uninorm/test-nfc.c: New file.
16577         * tests/uninorm/test-u8-nfc.c: New file.
16578         * tests/uninorm/test-u16-nfc.c: New file.
16579         * tests/uninorm/test-u32-nfc.c: New file.
16580         * tests/uninorm/test-u32-nfc-big.sh: New file.
16581         * tests/uninorm/test-u32-nfc-big.c: New file.
16582         * modules/uninorm/nfc-tests: New file.
16583
16584         New module 'uninorm/nfc'.
16585         * lib/uninorm/nfc.c: New file.
16586         * modules/uninorm/nfc: New file.
16587
16588         Tests for module 'uninorm/nfd'.
16589         * tests/uninorm/test-nfd.c: New file.
16590         * tests/uninorm/test-u8-nfd.c: New file.
16591         * tests/uninorm/test-u16-nfd.c: New file.
16592         * tests/uninorm/test-u32-nfd.c: New file.
16593         * tests/uninorm/test-u32-nfd-big.sh: New file.
16594         * tests/uninorm/test-u32-nfd-big.c: New file.
16595         * tests/uninorm/test-u32-normalize-big.h: New file.
16596         * tests/uninorm/test-u32-normalize-big.c: New file.
16597         * tests/uninorm/NormalizationTest.txt: New file, created from
16598         Unicode 5.1.0 NormalizationTest.txt.
16599         * modules/uninorm/nfd-tests: New file.
16600
16601         New module 'uninorm/nfd'.
16602         * lib/uninorm/nfd.c: New file.
16603         * modules/uninorm/nfd: New file.
16604
16605         New module 'uninorm/u32-normalize'.
16606         * lib/uninorm/u32-normalize.c: New file.
16607         * modules/uninorm/u32-normalize: New file.
16608
16609         New module 'uninorm/u16-normalize'.
16610         * lib/uninorm/u16-normalize.c: New file.
16611         * modules/uninorm/u16-normalize: New file.
16612
16613         New module 'uninorm/u8-normalize'.
16614         * lib/uninorm/u8-normalize.c: New file.
16615         * lib/uninorm/normalize-internal.h: New file.
16616         * lib/uninorm/u-normalize-internal.h: New file.
16617         * modules/uninorm/u8-normalize: New file.
16618
16619         New module 'uninorm/decompose-internal'.
16620         * lib/uninorm/decompose-internal.c: New file.
16621         * modules/uninorm/decompose-internal: New file.
16622
16623         Tests for module 'uninorm/composition'.
16624         * tests/uninorm/test-composition.c: New file.
16625         * modules/uninorm/composition-tests: New file.
16626
16627         New module 'uninorm/composition'.
16628         * lib/uninorm/composition.c: New file.
16629         * lib/uninorm/composition-table.gperf: New file, generated by
16630         gen-uni-tables.
16631         * modules/uninorm/composition: New file.
16632
16633         Tests for module 'uninorm/compat-decomposition'.
16634         * tests/uninorm/test-compat-decomposition.c: New file.
16635         * modules/uninorm/compat-decomposition-tests: New file.
16636
16637         New module 'uninorm/compat-decomposition'.
16638         * lib/uninorm/decompose-internal.h: New file.
16639         * lib/uninorm/compat-decomposition.c: New file.
16640         * modules/uninorm/compat-decomposition: New file.
16641
16642         Tests for module 'uninorm/canonical-decomposition'.
16643         * tests/uninorm/test-canonical-decomposition.c: New file.
16644         * modules/uninorm/canonical-decomposition-tests: New file.
16645
16646         New module 'uninorm/canonical-decomposition'.
16647         * lib/uninorm/canonical-decomposition.c: New file.
16648         * modules/uninorm/canonical-decomposition: New file.
16649
16650         Tests for module 'uninorm/decomposition'.
16651         * tests/uninorm/test-decomposition.c: New file.
16652         * modules/uninorm/decomposition-tests: New file.
16653
16654         New module 'uninorm/decomposition'.
16655         * lib/uninorm/decomposition.c: New file.
16656         * modules/uninorm/decomposition: New file.
16657
16658         New module 'uninorm/decomposition-table'.
16659         * lib/uninorm/decomposition-table.h: New file.
16660         * lib/uninorm/decomposition-table.c: New file.
16661         * lib/uninorm/decomposition-table1.h: New file, generated by
16662         gen-uni-tables.
16663         * lib/uninorm/decomposition-table2.h: New file, generated by
16664         gen-uni-tables.
16665         * modules/uninorm/decomposition-table: New file.
16666
16667         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
16668         (UC_DECOMP_*): New enumeration items.
16669         (get_decomposition): New function.
16670         (struct decomp_table): New type.
16671         (output_decomposition, output_decomposition_tables): New functions.
16672         (unicode_composition_exclusions): New variable.
16673         (fill_composition_exclusions, debug_output_composition_tables): New
16674         functions.
16675         (main): Accept one more argument. Invoke fill_composition_exclusions.
16676         Output decomposition and composition tables.
16677
16678         New module 'uninorm/base'.
16679         * lib/uninorm.h: New file.
16680         * lib/unictype.h: Update comment.
16681         * modules/uninorm/base: New file.
16682
16683 2009-02-21  David Lutterkort  <lutter@redhat.com>
16684
16685         Tests for module 'safe-alloc'.
16686         * tests/test-safe-alloc.c: New file.
16687         * modules/safe-alloc-tests: New file.
16688
16689         New module 'safe-alloc'.
16690         * lib/safe-alloc.h: New file.
16691         * lib/safe-alloc.c: New file.
16692         * m4/safe-alloc.m4: New file.
16693         * modules/safe-alloc: New file.
16694         * doc/safe-alloc.texi: New file.
16695         * doc/gnulib.texi: Include it.
16696         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
16697         safe-alloc.
16698
16699 2009-02-18  Bruno Haible  <bruno@clisp.org>
16700
16701         Fix link error on non-glibc systems.
16702         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
16703         variable.
16704         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16705
16706 2009-02-18  Jim Meyering  <meyering@redhat.com>
16707
16708         fts: avoid used-uninitialized error due to recent change
16709         * lib/fts.c (fts_read): Guard uses of the new member,
16710         parent->fts_n_dirs_remaining, since it's not relevant for
16711         the parent of a directory specified on the command-line.
16712
16713 2009-02-17  James Youngman  <jay@gnu.org>
16714             Bruno Haible  <bruno@clisp.org>
16715
16716         * m4/include_next.m4: Reformulate comment.
16717
16718 2009-02-16  Jim Meyering  <meyering@redhat.com>
16719
16720         fts: add #if guards so that the fts_lgpl module still builds
16721         * lib/fts.c: Guard just-added hash-table-using parts with
16722         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
16723         Reported by Simon Josefsson.
16724
16725 2009-02-15  Bruno Haible  <bruno@clisp.org>
16726
16727         * modules/array-mergesort-tests: New file.
16728         * tests/test-array-mergesort.c: New file.
16729
16730         New module 'array-mergesort'.
16731         * modules/array-mergesort: New file.
16732         * lib/array-mergesort.h: New file.
16733
16734 2009-02-15  Bruno Haible  <bruno@clisp.org>
16735
16736         Fix 2009-02-07 commit.
16737         * lib/gen-uni-tables.c (output_predicate, output_category,
16738         output_combclass, output_bidi_category, output_decimal_digit,
16739         output_digit, output_numeric, output_mirror, output_scripts,
16740         output_ident_category, output_simple_mapping): Fix format directives.
16741         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
16742
16743 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
16744
16745         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
16746         fixes are available from IBM.
16747
16748 2009-02-13  Jim Meyering  <meyering@redhat.com>
16749
16750         fts: arrange not to stat non-directories in more cases
16751         This makes GNU find (when it doesn't need to stat each file)
16752         *much* more efficient at traversing reiserfs file systems.
16753         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
16754         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
16755         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
16756         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
16757         (leaf_optimization_applies): New function.
16758         (LCO_hash, LCO_compare): New helper functions.
16759         (link_count_optimize_ok): New function.
16760         (fts_stat): Initialize new member (if dir).
16761         (fts_read): Decrement parent's fts_n_dirs_remaining count if
16762         we've just stat'ed a directory.  Skip the stat call when possible.
16763         ---
16764         Note this AFS-related exchange:
16765         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
16766         and note find's pioctl call in find/fstype.c.
16767         But that is necessary only if you want to enable the
16768         optimization for AFS, and for now, I don't.
16769
16770         fts: move a function definition "up" (no semantic change)
16771         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
16772         "up" to precede upcoming use of a related function.
16773
16774 2009-02-11  Jim Meyering  <meyering@redhat.com>
16775
16776         fts: correct internal computation of nlinks (optimization-related)
16777         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
16778         whether the current entry is a directory, so don't test it.
16779
16780 2009-02-10  Bruno Haible  <bruno@clisp.org>
16781
16782         Tests for module 'uniwbrk/ulc-wordbreaks'.
16783         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
16784         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
16785         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
16786
16787         Tests for module 'uniwbrk/u32-wordbreaks'.
16788         * modules/uniwbrk/u32-wordbreaks-tests: New file.
16789         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
16790
16791         Tests for module 'uniwbrk/u16-wordbreaks'.
16792         * modules/uniwbrk/u16-wordbreaks-tests: New file.
16793         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
16794
16795         Tests for module 'uniwbrk/u8-wordbreaks'.
16796         * modules/uniwbrk/u8-wordbreaks-tests: New file.
16797         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
16798
16799 2009-02-10  Bruno Haible  <bruno@clisp.org>
16800
16801         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
16802         property.
16803         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
16804         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
16805         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
16806
16807 2009-02-10  Simon Josefsson  <simon@josefsson.org>
16808
16809         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
16810         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
16811
16812 2009-02-10  Bruno Haible  <bruno@clisp.org>
16813
16814         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
16815         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
16816         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
16817         * lib/unilbrk/u8-possible-linebreaks.c: Update.
16818         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
16819         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
16820
16821 2009-02-09  Simon Josefsson  <simon@josefsson.org>
16822
16823         * lib/sockets.h (gl_fd_to_handle): New function.
16824
16825         * tests/test-sockets.c: Call gl_fd_to_handle.
16826
16827 2009-02-09  Bruno Haible  <bruno@clisp.org>
16828
16829         * doc/havelib.texi: Document the conventions on bi-arch systems.
16830
16831 2009-02-08  Bruno Haible  <bruno@clisp.org>
16832
16833         Document the AC_LIB_LINKFLAGS macro.
16834         * doc/havelib.texi: New file, mostly written on 2005-05-24.
16835         * doc/gnulib.texi: Include it.
16836
16837 2009-02-08  Bruno Haible  <bruno@clisp.org>
16838
16839         Fix wrong order of sections, compared to TOC.
16840         * doc/gnulib.texi: Include relocatable-maint.texi after the
16841         "Regular expressions" node, not before.
16842
16843 2009-02-08  Bruno Haible  <bruno@clisp.org>
16844
16845         Tests for module 'unicase/totitle'.
16846         * modules/unicase/totitle-tests: New file.
16847
16848         Tests for module 'unicase/tolower'.
16849         * modules/unicase/tolower-tests: New file.
16850
16851         Tests for module 'unicase/toupper'.
16852         * modules/unicase/toupper-tests: New file.
16853         * tests/unicase/test-mapping-part1.h: New file.
16854         * tests/unicase/test-mapping-part2.h: New file.
16855
16856         New module 'unicase/totitle'.
16857         * modules/unicase/totitle: New file.
16858         * lib/unicase/totitle.c: New file.
16859
16860         New module 'unicase/tolower'.
16861         * modules/unicase/tolower: New file.
16862         * lib/unicase/tolower.c: New file.
16863
16864         New module 'unicase/toupper'.
16865         * modules/unicase/toupper: New file.
16866         * lib/unicase/toupper.c: New file.
16867         * lib/unicase/simple-mapping.h: New file.
16868
16869         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
16870         (mapping_table): New structure.
16871         (output_simple_mapping): New function.
16872         (main): Invoke output_simple_mapping_test and output_simple_mapping.
16873         * modules/gen-uni-tables (Description): Update.
16874         * lib/unicase/toupper.h: New file, automatically generated by
16875         gen-uni-tables.
16876         * lib/unicase/tolower.h: New file, automatically generated by
16877         gen-uni-tables.
16878         * lib/unicase/totitle.h: New file, automatically generated by
16879         gen-uni-tables.
16880         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
16881         gen-uni-tables.
16882         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
16883         gen-uni-tables.
16884         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
16885         gen-uni-tables.
16886
16887         New module 'unicase/base'.
16888         * modules/unicase/base: New file.
16889         * lib/unicase.h: New file.
16890
16891 2009-02-08  Bruno Haible  <bruno@clisp.org>
16892
16893         New module 'uniwbrk/ulc-wordbreaks'.
16894         * modules/uniwbrk/ulc-wordbreaks: New file.
16895         * lib/uniwbrk/ulc-wordbreaks.c: New file.
16896
16897         New module 'uniwbrk/u32-wordbreaks'.
16898         * modules/uniwbrk/u32-wordbreaks: New file.
16899         * lib/uniwbrk/u32-wordbreaks.c: New file.
16900
16901         New module 'uniwbrk/u16-wordbreaks'.
16902         * modules/uniwbrk/u16-wordbreaks: New file.
16903         * lib/uniwbrk/u16-wordbreaks.c: New file.
16904
16905         New module 'uniwbrk/u8-wordbreaks'.
16906         * modules/uniwbrk/u8-wordbreaks: New file.
16907         * lib/uniwbrk/u8-wordbreaks.c: New file.
16908         * lib/uniwbrk/u-wordbreaks.h: New file.
16909
16910         New module 'uniwbrk/table'.
16911         * modules/uniwbrk/table: New file.
16912         * lib/uniwbrk/wbrktable.h: New file.
16913         * lib/uniwbrk/wbrktable.c: New file.
16914
16915         New module 'uniwbrk/wordbreak-property'.
16916         * modules/uniwbrk/wordbreak-property: New file.
16917         * lib/uniwbrk/wordbreak-property.c: New file.
16918
16919         * lib/gen-uni-tables.c (WBP_*): New enum items.
16920         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
16921         (unicode_org_wbp): New variable.
16922         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
16923         New functions.
16924         (wbp_table): New structure.
16925         (output_wbp, output_wbrk_tables): New functions.
16926         (main): Accept additional argument. Invoke fill_org_wbp,
16927         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
16928         output_wbrk_tables.
16929         * modules/gen-uni-tables (Description): Update.
16930         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
16931         gen-uni-tables.
16932
16933         New module 'uniwbrk/base'.
16934         * modules/uniwbrk/base: New file.
16935         * lib/uniwbrk.h: New file.
16936
16937 2009-02-08  Bruno Haible  <bruno@clisp.org>
16938
16939         Update to Unicode 5.1.0.
16940         * lib/gen-uni-tables.c (is_property_alphabetic): Include
16941         U+2185..U+2188.
16942         (is_property_default_ignorable_code_point): Don't include characters
16943         of category Cc or Cs and not-a-characters.
16944         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
16945         U+0D79, U+109E, U+109F, U+A60C.
16946         * lib/unictype/bidi_of.h: Regenerated.
16947         * lib/unictype/blocks.h: Regenerated.
16948         * lib/unictype/categ_C.h: Regenerated.
16949         * lib/unictype/categ_Cf.h: Regenerated.
16950         * lib/unictype/categ_Cn.h: Regenerated.
16951         * lib/unictype/categ_L.h: Regenerated.
16952         * lib/unictype/categ_Ll.h: Regenerated.
16953         * lib/unictype/categ_Lm.h: Regenerated.
16954         * lib/unictype/categ_Lo.h: Regenerated.
16955         * lib/unictype/categ_Lu.h: Regenerated.
16956         * lib/unictype/categ_M.h: Regenerated.
16957         * lib/unictype/categ_Mc.h: Regenerated.
16958         * lib/unictype/categ_Me.h: Regenerated.
16959         * lib/unictype/categ_Mn.h: Regenerated.
16960         * lib/unictype/categ_N.h: Regenerated.
16961         * lib/unictype/categ_Nd.h: Regenerated.
16962         * lib/unictype/categ_Nl.h: Regenerated.
16963         * lib/unictype/categ_No.h: Regenerated.
16964         * lib/unictype/categ_P.h: Regenerated.
16965         * lib/unictype/categ_Pd.h: Regenerated.
16966         * lib/unictype/categ_Pe.h: Regenerated.
16967         * lib/unictype/categ_Pf.h: Regenerated.
16968         * lib/unictype/categ_Pi.h: Regenerated.
16969         * lib/unictype/categ_Po.h: Regenerated.
16970         * lib/unictype/categ_Ps.h: Regenerated.
16971         * lib/unictype/categ_S.h: Regenerated.
16972         * lib/unictype/categ_Sk.h: Regenerated.
16973         * lib/unictype/categ_Sm.h: Regenerated.
16974         * lib/unictype/categ_So.h: Regenerated.
16975         * lib/unictype/categ_of.h: Regenerated.
16976         * lib/unictype/combining.h: Regenerated.
16977         * lib/unictype/ctype_alnum.h: Regenerated.
16978         * lib/unictype/ctype_alpha.h: Regenerated.
16979         * lib/unictype/ctype_graph.h: Regenerated.
16980         * lib/unictype/ctype_lower.h: Regenerated.
16981         * lib/unictype/ctype_print.h: Regenerated.
16982         * lib/unictype/ctype_punct.h: Regenerated.
16983         * lib/unictype/ctype_upper.h: Regenerated.
16984         * lib/unictype/decdigit.h: Regenerated.
16985         * lib/unictype/digit.h: Regenerated.
16986         * lib/unictype/mirror.h: Regenerated.
16987         * lib/unictype/numeric.h: Regenerated.
16988         * lib/unictype/pr_alphabetic.h: Regenerated.
16989         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
16990         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
16991         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
16992         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
16993         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
16994         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
16995         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
16996         * lib/unictype/pr_combining.h: Regenerated.
16997         * lib/unictype/pr_dash.h: Regenerated.
16998         * lib/unictype/pr_decimal_digit.h: Regenerated.
16999         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
17000         * lib/unictype/pr_deprecated.h: Regenerated.
17001         * lib/unictype/pr_diacritic.h: Regenerated.
17002         * lib/unictype/pr_extender.h: Regenerated.
17003         * lib/unictype/pr_format_control.h: Regenerated.
17004         * lib/unictype/pr_grapheme_base.h: Regenerated.
17005         * lib/unictype/pr_grapheme_extend.h: Regenerated.
17006         * lib/unictype/pr_grapheme_link.h: Regenerated.
17007         * lib/unictype/pr_id_continue.h: Regenerated.
17008         * lib/unictype/pr_id_start.h: Regenerated.
17009         * lib/unictype/pr_ideographic.h: Regenerated.
17010         * lib/unictype/pr_ignorable_control.h: Regenerated.
17011         * lib/unictype/pr_lowercase.h: Regenerated.
17012         * lib/unictype/pr_math.h: Regenerated.
17013         * lib/unictype/pr_numeric.h: Regenerated.
17014         * lib/unictype/pr_other_alphabetic.h: Regenerated.
17015         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
17016         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
17017         * lib/unictype/pr_other_id_continue.h: Regenerated.
17018         * lib/unictype/pr_other_lowercase.h: Regenerated.
17019         * lib/unictype/pr_other_math.h: Regenerated.
17020         * lib/unictype/pr_punctuation.h: Regenerated.
17021         * lib/unictype/pr_sentence_terminal.h: Regenerated.
17022         * lib/unictype/pr_soft_dotted.h: Regenerated.
17023         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
17024         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
17025         * lib/unictype/pr_unified_ideograph.h: Regenerated.
17026         * lib/unictype/pr_uppercase.h: Regenerated.
17027         * lib/unictype/pr_xid_continue.h: Regenerated.
17028         * lib/unictype/pr_xid_start.h: Regenerated.
17029         * lib/unictype/pr_zero_width.h: Regenerated.
17030         * lib/unictype/scripts.h: Regenerated.
17031         * lib/unictype/scripts_byname.gperf: Regenerated.
17032         * lib/unictype/sy_java_ident.h: Regenerated.
17033         * lib/unilbrk/lbrkprop1.h: Regenerated.
17034         * lib/unilbrk/lbrkprop2.h: Regenerated.
17035         * tests/unictype/test-categ_C.c: Regenerated.
17036         * tests/unictype/test-categ_Cf.c: Regenerated.
17037         * tests/unictype/test-categ_Cn.c: Regenerated.
17038         * tests/unictype/test-categ_L.c: Regenerated.
17039         * tests/unictype/test-categ_Ll.c: Regenerated.
17040         * tests/unictype/test-categ_Lm.c: Regenerated.
17041         * tests/unictype/test-categ_Lo.c: Regenerated.
17042         * tests/unictype/test-categ_Lu.c: Regenerated.
17043         * tests/unictype/test-categ_M.c: Regenerated.
17044         * tests/unictype/test-categ_Mc.c: Regenerated.
17045         * tests/unictype/test-categ_Me.c: Regenerated.
17046         * tests/unictype/test-categ_Mn.c: Regenerated.
17047         * tests/unictype/test-categ_N.c: Regenerated.
17048         * tests/unictype/test-categ_Nd.c: Regenerated.
17049         * tests/unictype/test-categ_Nl.c: Regenerated.
17050         * tests/unictype/test-categ_No.c: Regenerated.
17051         * tests/unictype/test-categ_P.c: Regenerated.
17052         * tests/unictype/test-categ_Pd.c: Regenerated.
17053         * tests/unictype/test-categ_Pe.c: Regenerated.
17054         * tests/unictype/test-categ_Pf.c: Regenerated.
17055         * tests/unictype/test-categ_Pi.c: Regenerated.
17056         * tests/unictype/test-categ_Po.c: Regenerated.
17057         * tests/unictype/test-categ_Ps.c: Regenerated.
17058         * tests/unictype/test-categ_S.c: Regenerated.
17059         * tests/unictype/test-categ_Sk.c: Regenerated.
17060         * tests/unictype/test-categ_Sm.c: Regenerated.
17061         * tests/unictype/test-categ_So.c: Regenerated.
17062         * tests/unictype/test-ctype_alnum.c: Regenerated.
17063         * tests/unictype/test-ctype_alpha.c: Regenerated.
17064         * tests/unictype/test-ctype_graph.c: Regenerated.
17065         * tests/unictype/test-ctype_lower.c: Regenerated.
17066         * tests/unictype/test-ctype_print.c: Regenerated.
17067         * tests/unictype/test-ctype_punct.c: Regenerated.
17068         * tests/unictype/test-ctype_upper.c: Regenerated.
17069         * tests/unictype/test-decdigit.h: Regenerated.
17070         * tests/unictype/test-digit.h: Regenerated.
17071         * tests/unictype/test-numeric.h: Regenerated.
17072         * tests/unictype/test-pr_alphabetic.c: Regenerated.
17073         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
17074         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
17075         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
17076         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
17077         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
17078         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
17079         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
17080         * tests/unictype/test-pr_combining.c: Regenerated.
17081         * tests/unictype/test-pr_dash.c: Regenerated.
17082         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
17083         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
17084         * tests/unictype/test-pr_deprecated.c: Regenerated.
17085         * tests/unictype/test-pr_diacritic.c: Regenerated.
17086         * tests/unictype/test-pr_extender.c: Regenerated.
17087         * tests/unictype/test-pr_format_control.c: Regenerated.
17088         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
17089         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
17090         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
17091         * tests/unictype/test-pr_id_continue.c: Regenerated.
17092         * tests/unictype/test-pr_id_start.c: Regenerated.
17093         * tests/unictype/test-pr_ideographic.c: Regenerated.
17094         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
17095         * tests/unictype/test-pr_lowercase.c: Regenerated.
17096         * tests/unictype/test-pr_math.c: Regenerated.
17097         * tests/unictype/test-pr_numeric.c: Regenerated.
17098         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
17099         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
17100         Regenerated.
17101         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
17102         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
17103         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
17104         * tests/unictype/test-pr_other_math.c: Regenerated.
17105         * tests/unictype/test-pr_punctuation.c: Regenerated.
17106         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
17107         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
17108         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
17109         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
17110         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
17111         * tests/unictype/test-pr_uppercase.c: Regenerated.
17112         * tests/unictype/test-pr_xid_continue.c: Regenerated.
17113         * tests/unictype/test-pr_xid_start.c: Regenerated.
17114         * tests/unictype/test-pr_zero_width.c: Regenerated.
17115
17116         Update to Unicode 5.1.0.
17117         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
17118         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
17119         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
17120         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
17121         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
17122         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
17123         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
17124         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
17125         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
17126         (nonspacing_table_ind): Update.
17127         * tests/uniwidth/test-uc_width2.sh: Update expected result.
17128
17129         Update to Unicode 5.1.0.
17130         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
17131         code transform.
17132         * lib/uniname/uniname.c (unicode_character_name,
17133         unicode_name_character): Add the range 0x1Fxxx to the code transform.
17134         * lib/uniname/uninames.h: Regenerated.
17135         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
17136
17137 2009-02-07  Bruno Haible  <bruno@clisp.org>
17138
17139         Merge gen-ctype and gen-lbrk into a single program.
17140         * lib/gen-uni-tables.c: New file, incorporating
17141         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
17142         Add directory prefixes to the names of the generated files.
17143         * lib/unictype/gen-ctype.c: Remove file.
17144         * lib/unilbrk/gen-lbrk.c: Remove file.
17145         * modules/gen-uni-tables: New file.
17146         * modules/unictype/gen-ctype: Remove file.
17147         * modules/unilbrk/gen-lbrk: Remove file.
17148
17149 2009-02-07  Bruno Haible  <bruno@clisp.org>
17150
17151         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
17152
17153         New module 'unistr/u32-strcoll'.
17154         * modules/unistr/u32-strcoll: New file.
17155         * lib/unistr/u32-strcoll.c: New file.
17156
17157         New module 'unistr/u16-strcoll'.
17158         * modules/unistr/u16-strcoll: New file.
17159         * lib/unistr/u16-strcoll.c: New file.
17160
17161         New module 'unistr/u8-strcoll'.
17162         * modules/unistr/u8-strcoll: New file.
17163         * lib/unistr/u8-strcoll.c: New file.
17164         * lib/unistr/u-strcoll.h: New file.
17165
17166 2009-02-07  Bruno Haible  <bruno@clisp.org>
17167
17168         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
17169         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
17170         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
17171         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
17172         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
17173         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
17174
17175 2009-02-07  Bruno Haible  <bruno@clisp.org>
17176
17177         Make 64-bit clean.
17178         * lib/unictype/gen-ctype.c (output_predicate, output_category,
17179         output_combclass, output_bidi_category, output_decimal_digit,
17180         output_digit, output_numeric, output_mirror, output_scripts,
17181         output_ident_category): Use proper width specifier in format strings.
17182
17183 2009-02-07  Bruno Haible  <bruno@clisp.org>
17184
17185         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
17186         failure behaviour.
17187
17188 2009-02-07  Jim Meyering  <meyering@redhat.com>
17189
17190         regex: avoid compilation failure with upcoming gcc-4.4
17191         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
17192         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
17193         "... error: integer overflow in preprocessor expression".
17194
17195 2009-02-05  Ben Pfaff  <blp@gnu.org>
17196
17197         Fix link errors on Windows when close module is used.
17198         * modules/close: Add $(LIB_CLOSE) to Link section.
17199         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
17200         $(LIB_CLOSE) on Windows.
17201
17202 2009-02-05  Jim Meyering  <meyering@redhat.com>
17203
17204         still avoid unused-parameter warnings, but do it cleanly
17205         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
17206         (get_fs_usage): Cast to void instead.
17207         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
17208         (dev_from_mount_options, read_file_system_list): Cast to void.
17209         Prompted by Bruno Haible.
17210
17211 2009-02-04  Jim Meyering  <meyering@redhat.com>
17212
17213         fsusage.c: correct copyright year
17214         * lib/fsusage.c: Reflect year in which the change is pushed into
17215
17216         avoid misc. warnings
17217         * lib/fsusage.c (UNUSED_PARAM): Define.
17218         (get_fs_usage): Mark parameter "disk" as unused.
17219         * lib/getugroups.c (getgrent): Use "void" in prototype.
17220         * lib/mountlist.c: Mark unused parameters.
17221         (read_file_system_list): Declare a local with "const".
17222         * lib/nanosleep.c (getnow): Declare static.
17223         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
17224
17225         dirfd: set errno upon failure
17226         * lib/dirfd.c: Include <errno.h>.
17227         Set errno to ENOTSUP when returning -1.
17228         * modules/dirfd (Depends-on): Add errno.
17229         Suggested by John Kodis <kodis@comcast.net>.
17230
17231 2009-02-01  Bruno Haible  <bruno@clisp.org>
17232
17233         Don't assume sizeof (long) >= sizeof (void *).
17234         * lib/memcmp.c: Include stdint.h.
17235         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
17236         srcp2 to 'const byte *'.
17237         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
17238         types to uintptr_t.
17239         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
17240         * modules/memcmp (Depends-on): Add stdint.
17241         Reported by Ozkan Sezer <sezeroz@gmail.com>.
17242
17243 2009-01-30  Eric Blake  <ebb9@byu.net>
17244
17245         fix more require-before-expand issues
17246         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
17247         expand, AC_PROG_AWK.
17248         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
17249
17250 2009-01-28  Eric Blake  <ebb9@byu.net>
17251
17252         version-etc: use consistent URL formatting
17253         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
17254         Improve formatting.  Use fputs for string without %.
17255
17256 2009-01-28  Jim Meyering  <meyering@redhat.com>
17257
17258         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
17259         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
17260         "underquoted definition of NAME" from autoconf-2.59.
17261
17262 2009-01-28  Bruno Haible  <bruno@clisp.org>
17263
17264         * doc/gnulib.texi: Add "Obsolete modules" to index.
17265
17266 2009-01-28  Jim Meyering  <meyering@redhat.com>
17267
17268         useless-if-before-free: recognize more variants
17269         * build-aux/useless-if-before-free: Also recognize e.g.,
17270         if (NULL != p) free (p);
17271
17272 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
17273
17274         test-getaddrinfo: skip (don't fail) this test when there's no network
17275         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
17276         on the presumption that it means you lack network access.
17277
17278 2009-01-26  Jim Meyering  <meyering@redhat.com>
17279
17280         fflush: avoid warnings on modern systems
17281         * lib/fflush.c (rpl_fflush): Move declarations of locals,
17282         pos and result, into scopes where they're used.
17283
17284 2009-01-26  Eric Blake  <ebb9@byu.net>
17285
17286         Silence warning reintroduced by recent extensions patch.
17287         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
17288         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
17289         autoconf.
17290
17291         Backport improved autoconf semantics of AC_DEFUN_ONCE.
17292         * m4/00gnulib.m4: New file.
17293         * gnulib-tool (func_get_filelist): Always use it.
17294         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
17295         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
17296
17297 2009-01-25  Bruno Haible  <bruno@clisp.org>
17298
17299         Make test-quotearg work on MacOS X and AIX.
17300         * tests/test-quotearg.sh: New file.
17301         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
17302         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
17303         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
17304         include <libintl.h>.
17305         (fake_locale): Remove variable.
17306         (gettext, dgettext, dcgettext): Remove functions.
17307         (main): Instead of setting a fake locale, set a real locale. Call
17308         textdomain and bindtextdomain.
17309         * modules/quotearg-tests (Files): Add the new files.
17310         (Depends-on): Add gettext, setenv, unsetenv.
17311         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
17312         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
17313         Augment TESTS_ENVIRONMENT.
17314
17315 2009-01-25  Bruno Haible  <bruno@clisp.org>
17316
17317         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
17318         fr_FR.ISO8859-1 locale on MacOS X.
17319         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
17320         ja_JP.eucJP locale on MacOS X.
17321         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
17322         zh_CN.GB18030 locale on MacOS X.
17323
17324 2009-01-25  Bruno Haible  <bruno@clisp.org>
17325
17326         Avoid link errors on MacOS X 10.3.
17327         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
17328         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
17329
17330 2009-01-25  Bruno Haible  <bruno@clisp.org>
17331
17332         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
17333         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
17334         * modules/pipe (Files): Remove m4/posix_spawn.m4.
17335         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
17336         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
17337         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
17338         posix_spawnattr_init, posix_spawnattr_setsigmask,
17339         posix_spawnattr_setflags, posix_spawnattr_destroy.
17340
17341         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
17342         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
17343         * modules/execute (Files): Remove m4/posix_spawn.m4.
17344         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
17345         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
17346         posix_spawnattr_init, posix_spawnattr_setsigmask,
17347         posix_spawnattr_setflags, posix_spawnattr_destroy.
17348
17349 2009-01-25  Bruno Haible  <bruno@clisp.org>
17350
17351         * lib/glthread/threadlib.c: Include <stdlib.h>.
17352
17353 2009-01-25  Bruno Haible  <bruno@clisp.org>
17354
17355         * lib/glthread/threadlib.c (dummy): New declaration.
17356
17357 2009-01-25  Bruno Haible  <bruno@clisp.org>
17358
17359         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
17360         multibyte characters also for the GB18030 encoding. Don't crash when
17361         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
17362
17363 2009-01-25  Bruno Haible  <bruno@clisp.org>
17364
17365         Avoid redefining 'struct random_data' on OSF/1 5.1.
17366         * lib/stdlib.in.h: Include <random.h> if it exists.
17367         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
17368         HAVE_RANDOM_H. Include <random.h> when testing whether
17369         'struct random_data' exists.
17370         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
17371
17372 2009-01-25  Bruno Haible  <bruno@clisp.org>
17373
17374         Don't install charset.alias on MacOS X >= 10.3.
17375         * lib/localcharset.c (DARWIN7): New macro.
17376         (get_charset_aliases): Hardcode the result for Darwin7.
17377         * modules/localcharset (install-exec-local): Don't install
17378         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
17379
17380 2009-01-25  Bruno Haible  <bruno@clisp.org>
17381
17382         Don't install charset.alias on mingw and Cygwin.
17383         * modules/localcharset (install-exec-local): Don't install
17384         charset.alias on mingw and Cygwin, if the file does not yet exist.
17385         The result for these platforms is hardcoded in localcharset.c.
17386
17387 2009-01-25  Bruno Haible  <bruno@clisp.org>
17388
17389         Make it possible again to use AC_GNU_SOURCE together with gnulib.
17390         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
17391         before requiring AC_USE_SYSTEM_EXTENSIONS.
17392
17393 2009-01-25  Jim Meyering  <meyering@redhat.com>
17394
17395         c-strtod: avoid warnings
17396         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
17397         "assignment discards qualifiers from pointer target type" warnings.
17398
17399 2009-01-24  Bruno Haible  <bruno@clisp.org>
17400
17401         Add support for non-UTF-8 locales on MacOS X.
17402         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
17403         canonical encodings. For Darwin 7 and newer, don't map traditional
17404         encodings to UTF-8.
17405         Reported by Vincent Lefevre <vincent@vinc17.org>
17406         at <http://savannah.gnu.org/bugs/?25235>.
17407
17408 2009-01-24  Bruno Haible  <bruno@clisp.org>
17409
17410         * doc/gnulib.texi (Obsolete modules): New section.
17411         Reported by Mike Frysinger <vapier@gentoo.org>.
17412
17413 2009-01-24  Bruno Haible  <bruno@clisp.org>
17414
17415         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
17416         (%.dvi): New rule.
17417
17418 2009-01-24  Bruno Haible  <bruno@clisp.org>
17419
17420         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
17421         Reported by Eric Blake.
17422
17423 2009-01-24  Bruno Haible  <bruno@clisp.org>
17424
17425         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
17426         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
17427         Reported by Gary V. Vaughan <gary@gnu.org>.
17428
17429 2009-01-24  Bruno Haible  <bruno@clisp.org>
17430
17431         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
17432
17433 2009-01-23  Bruno Haible  <bruno@clisp.org>
17434
17435         Make c-strtod, c-strtold usable in libraries.
17436         * lib/c-strtod.c: Include string.h instead of xalloc.h.
17437         (C_STRTOD): Call strdup instead of xstrdup.
17438         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
17439         * modules/c-strtold (Depends-on): Likewise.
17440         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
17441         * NEWS: Mention the change.
17442         Reported by Michael Gold <mgold@ncf.ca>.
17443
17444 2009-01-23  Jim Meyering  <meyering@redhat.com>
17445
17446         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
17447         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
17448         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
17449
17450 2009-01-23  Simon Josefsson  <simon@josefsson.org>
17451
17452         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
17453         GNU CoreUtils.
17454         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
17455         * modules/version-etc (Description): Update.
17456
17457 2009-01-22  Bruno Haible  <bruno@clisp.org>
17458
17459         Cache the C locale object.
17460         * lib/c-strtod.c (c_locale_cache): New variable.
17461         (c_locale): New function.
17462         (C_STRTOD): Use it, and don't call freelocale.
17463         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
17464         Suggested by Paolo Bonzini.
17465
17466 2009-01-21  Bruno Haible  <bruno@clisp.org>
17467
17468         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
17469         conditions other than overflow.
17470
17471 2009-01-21  Bruno Haible  <bruno@clisp.org>
17472
17473         * lib/c-strtod.c: Include errno.h.
17474         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
17475         value from STRTOD_L and STRTOD.
17476
17477 2009-01-21  Bruno Haible  <bruno@clisp.org>
17478         and Jim Meyering  <meyering@redhat.com>
17479
17480         nanosleep: skip configure test (fail it) for apple universal builds
17481         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
17482         universal builds, assume that nanosleep does not work.
17483         * modules/nanosleep (Depends-on): Add multiarch.
17484
17485         mktime: skip configure test (fail it) for apple universal builds
17486         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
17487         universal builds, assume that mktime does not work.
17488         * modules/mktime (Depends-on): Add multiarch.
17489
17490 2009-01-21  Eric Blake  <ebb9@byu.net>
17491
17492         multiarch: avoid expand-before-require warning
17493         * modules/multiarch (configure.ac): Require, rather than expand,
17494         gl_MULTIARCH.
17495         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
17496         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
17497         enforce that all clients require it.  Partial reversion of
17498         2008-12-29 patch.
17499
17500         error: avoid expand-before-require warning
17501         * modules/errno (configure.ac): Require, rather than expand,
17502         gl_HEADER_ERRNO_H.
17503         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
17504         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
17505         enforce that all clients require it.
17506
17507         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
17508         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
17509         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
17510         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
17511
17512 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
17513
17514         Revert:
17515         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
17516
17517         regex: do not depend on obsolete modules.
17518         * modules/regex: Remove memcmp and memmove.
17519
17520 2009-01-20  Bruno Haible  <bruno@clisp.org>
17521
17522         Make the 'link' module link on Windows NT 4.
17523         * lib/link.c (_WIN32_WINNT): Don't define.
17524         (CreateHardLinkFuncType): New type.
17525         (CreateHardLinkFunc, initialized): New variables.
17526         (initialize): New function.
17527         (link): Invoke CreateHardLink indirectly through the function pointer.
17528
17529 2009-01-20  Bruno Haible  <bruno@clisp.org>
17530
17531         Fix compilation failure on mingw.
17532         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
17533
17534 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
17535
17536         * doc/c-strtod.texi: Mention a couple of restrictions.
17537
17538 2009-01-20  Jim Meyering  <meyering@redhat.com>
17539
17540         gettimeofday: move more declarations out of functions
17541         * lib/gettimeofday.c: Move extern declarations of tzset and
17542         gmtime out of containing functions.  Prompted by Bruno Haible.
17543
17544 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
17545
17546         regex: do not depend on obsolete modules.
17547         * modules/regex: Remove memcmp and memmove.
17548
17549 2009-01-19  Bruno Haible  <bruno@clisp.org>
17550
17551         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
17552         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
17553         gl_BIGENDIAN, not AC_C_BIGENDIAN.
17554         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
17555         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
17556
17557 2009-01-19  Bruno Haible  <bruno@clisp.org>
17558
17559         * tests/test-link.c: Include <errno.h>.
17560         (main): Exit with code 77 when a hard link cannot be created due to
17561         the file system.
17562         * tests/test-link.sh: Skip test when a hard link cannot be created due
17563         to the file system.
17564         Suggested by Eric Blake.
17565
17566 2009-01-19  Martin Lambers  <marlam@marlam.de>
17567
17568         * modules/link-tests: New file.
17569         * tests/test-link.sh: New file.
17570         * tests/test-link.c: New file.
17571
17572 2009-01-19  Eric Blake  <ebb9@byu.net>
17573
17574         doc: mention another function added in cygwin 1.7.0
17575         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
17576         Another new function in cygwin 1.7.
17577
17578 2009-01-19  Bruno Haible  <bruno@clisp.org>
17579
17580         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
17581         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
17582         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
17583         gl_BIGENDIAN, not AC_C_BIGENDIAN.
17584         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
17585         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
17586         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
17587         * m4/md4.m4 (gl_MD4): Likewise.
17588         * m4/md5.m4 (gl_MD5): Likewise.
17589         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
17590         * m4/sha1.m4 (gl_SHA1): Likewise.
17591         * m4/sha256.m4 (gl_SHA256): Likewise.
17592         * m4/sha512.m4 (gl_SHA512): Likewise.
17593
17594 2009-01-19  Bruno Haible  <bruno@clisp.org>
17595
17596         * modules/uniname/uniname-tests (Depends-on): Add progname.
17597         * tests/uniname/test-uninames.c: Include progname.h.
17598         (main): Call set_program_name.
17599
17600         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
17601         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
17602         (main): Call set_program_name.
17603
17604         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
17605         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
17606         (main): Call set_program_name.
17607
17608         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
17609         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
17610         (main): Call set_program_name.
17611
17612         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
17613         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
17614         (main): Call set_program_name.
17615
17616         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
17617         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
17618         (main): Call set_program_name.
17619
17620         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
17621         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
17622         (main): Call set_program_name.
17623
17624         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
17625         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
17626         (main): Call set_program_name.
17627
17628         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
17629         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
17630         (main): Call set_program_name.
17631
17632 2009-01-19  Eric Blake  <ebb9@byu.net>
17633
17634         test-unistd: test previous patch
17635         * tests/test-unistd.c: Test *_FILENO macros.
17636
17637         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
17638         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
17639         Guarantee a definition.
17640         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
17641         * modules/unistd-safer (Depends-on): Add dependency on unistd.
17642         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
17643         * lib/dup-safer.c (STDERR_FILENO): Likewise.
17644         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
17645         Likewise.
17646         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
17647         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
17648         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
17649         Likewise.
17650         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
17651         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
17652         (STDERR_FILENO): Likewise.
17653         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
17654         (STDERR_FILENO): Likewise.
17655         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
17656         (STDERR_FILENO): Likewise.
17657         Reported by Elbert Pol.
17658
17659 2009-01-19  Eric Blake  <ebb9@byu.net>
17660
17661         doc: mention more functions added in cygwin 1.7.0
17662         * doc/posix-functions/abort.texi (abort): Update wording related
17663         to cygwin.
17664         * doc/posix-functions/daylight.texi (daylight): Likewise.
17665         * doc/posix-functions/optarg.texi (optarg): Likewise.
17666         * doc/posix-functions/optarg.texi (opterr): Likewise.
17667         * doc/posix-functions/optarg.texi (optind): Likewise.
17668         * doc/posix-functions/optarg.texi (optopt): Likewise.
17669         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
17670         worked in 1.5.x, and was withdrawn in 1.7.
17671         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
17672         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
17673         cygwin versions.
17674         * doc/posix-functions/perror.texi (perror): Likewise.
17675         * doc/posix-functions/printf.texi (printf): Likewise.
17676         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
17677         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
17678         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
17679         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
17680         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17681         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
17682         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
17683         Likewise.
17684         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
17685         Likewise.
17686         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
17687         this function.
17688         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
17689         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
17690         Likewise.
17691         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
17692         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
17693         * doc/posix-functions/confstr.texi (confstr): Likewise.
17694         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
17695         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
17696         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
17697         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
17698         * doc/posix-functions/fputws.texi (fputws): Likewise.
17699         * doc/posix-functions/fwide.texi (fwide): Likewise.
17700         * doc/posix-functions/getwc.texi (getwc): Likewise.
17701         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
17702         * doc/posix-functions/putwc.texi (putwc): Likewise.
17703         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
17704         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
17705         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
17706         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
17707         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
17708         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
17709         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
17710         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
17711         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
17712         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
17713         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
17714
17715 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
17716
17717         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
17718         * lib/ioctl.c: Include <sys/ioctl.h>.
17719
17720 2009-01-19  Simon Josefsson  <simon@josefsson.org>
17721
17722         * modules/getdate-tests (Depends-on): Add progname.
17723         * tests/test-getdate.c: Use progname module, to avoid link errors
17724         on non-glibc systems.
17725
17726 2009-01-18  Simon Josefsson  <simon@josefsson.org>
17727
17728         * modules/filenamecat-tests (Depends-on): Add progname.
17729         * modules/fstrcmp-tests (Depends-on): Likewise.
17730
17731         * tests/test-filenamecat.c: Use progname module, to avoid link
17732         errors on non-glibc systems.
17733         * tests/test-fstrcmp.c: Likewise.
17734
17735 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
17736
17737         gettimeofday: avoid warning: nested extern declaration of 'localtime'
17738         * lib/gettimeofday.c: Move extern declaration out of function.
17739
17740 2009-01-18  Bruno Haible  <bruno@clisp.org>
17741
17742         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
17743         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
17744         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
17745
17746 2009-01-18  Bruno Haible  <bruno@clisp.org>
17747
17748         * lib/strftime.c (MEMPCPY): Remove unused macro.
17749         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
17750
17751 2009-01-18  Martin Lambers  <marlam@marlam.de>
17752
17753         New module 'link'.
17754         * lib/unistd.in.h (link): New declaration.
17755         * lib/link.c: New file.
17756         * m4/link.m4: New file.
17757         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
17758         HAVE_LINK.
17759         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
17760         * modules/link: New file.
17761         * doc/posix-functions/link.texi: Mention the new module.
17762
17763 2009-01-18  Bruno Haible  <bruno@clisp.org>
17764
17765         * tests/test-avltree_list.c (main): Call set_program_name.
17766         * tests/test-avltree_oset.c (main): Likewise.
17767         * tests/test-obstack-printf.c: Include progname.h.
17768         (main): Call set_program_name.
17769         * tests/test-quotearg.c: Include progname.h.
17770         (main): Call set_program_name.
17771         * tests/test-xmemdup0.c: Include progname.h.
17772         (main): Call set_program_name.
17773
17774 2009-01-18  Bruno Haible  <bruno@clisp.org>
17775
17776         New module 'alphasort'.
17777         * lib/dirent.in.h (alphasort): New declaration.
17778         * lib/alphasort.c: New file, from glibc with modifications.
17779         * m4/alphasort.m4: New file.
17780         * modules/alphasort: New file.
17781         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
17782         HAVE_ALPHASORT.
17783         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
17784         HAVE_ALPHASORT.
17785         * doc/posix-functions/alphasort.texi: Mention the new module and the
17786         portability problems.
17787
17788 2009-01-18  Bruno Haible  <bruno@clisp.org>
17789
17790         New module 'scandir'.
17791         * lib/dirent.in.h (scandir): New declaration.
17792         * lib/scandir.c: New file, from glibc with modifications.
17793         * m4/scandir.m4: New file.
17794         * modules/scandir: New file.
17795         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
17796         HAVE_SCANDIR.
17797         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
17798         HAVE_SCANDIR.
17799         * doc/posix-functions/scandir.texi: Mention the new module and the
17800         portability problems.
17801
17802 2009-01-17  Bruno Haible  <bruno@clisp.org>
17803
17804         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
17805         Update documentation.
17806         (func_remove_suffix): Escape all dots in the suffix. Update
17807         documentation.
17808         (func_filter_filelist): Update documentation.
17809         Reported by Ralf Wildenhues.
17810
17811 2009-01-17  Bruno Haible  <bruno@clisp.org>
17812
17813         * modules/dprintf-posix-tests: New file.
17814         * tests/test-dprintf-posix.sh: New file.
17815         * tests/test-dprintf-posix.c: New file.
17816
17817         New modules 'dprintf', 'dprintf-posix'.
17818         * lib/stdio.in.h (dprintf): New declaration.
17819         * lib/dprintf.c: New file.
17820         * m4/dprintf.m4: New file.
17821         * m4/dprintf-posix.m4: New file.
17822         * modules/dprintf: New file.
17823         * modules/dprintf-posix: New file.
17824         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
17825         HAVE_DPRINTF, REPLACE_DPRINTF.
17826         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
17827         HAVE_DPRINTF, REPLACE_DPRINTF.
17828         * doc/posix-functions/dprintf.texi: Mention the new modules.
17829
17830 2009-01-17  Bruno Haible  <bruno@clisp.org>
17831
17832         * modules/vdprintf-posix-tests: New file.
17833         * tests/test-vdprintf-posix.sh: New file.
17834         * tests/test-vdprintf-posix.c: New file.
17835
17836         New modules 'vdprintf', 'vdprintf-posix'.
17837         * lib/stdio.in.h (vdprintf): New declaration.
17838         * lib/vdprintf.c: New file.
17839         * m4/vdprintf.m4: New file.
17840         * m4/vdprintf-posix.m4: New file.
17841         * modules/vdprintf: New file.
17842         * modules/vdprintf-posix: New file.
17843         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
17844         HAVE_VDPRINTF, REPLACE_VDPRINTF.
17845         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
17846         HAVE_VDPRINTF, REPLACE_VDPRINTF.
17847         * doc/posix-functions/vdprintf.texi: Mention the new modules.
17848
17849 2009-01-17  Bruno Haible  <bruno@clisp.org>
17850
17851         Fix replacement of fopen on mingw.
17852         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
17853         mingw.
17854
17855 2009-01-17  Bruno Haible  <bruno@clisp.org>
17856
17857         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
17858         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
17859
17860 2009-01-17  Bruno Haible  <bruno@clisp.org>
17861
17862         Avoid test-fflush2.sh failure on mingw.
17863         * tests/test-fflush2.c: Include binary-io.h.
17864         (main): Put standard input into binary mode.
17865         * modules/fflush-tests (Depends-on): Add binary-io.
17866
17867 2009-01-17  Bruno Haible  <bruno@clisp.org>
17868
17869         * lib/wchar.in.h: In another particular situation, include only the
17870         system's <wchar.h> file.
17871         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
17872         Reported by Albert Chin-A-Young <china@thewrittenword.com>
17873         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
17874
17875 2009-01-17  Bruno Haible  <bruno@clisp.org>
17876
17877         Support for stripping executables in --enable-relocatable.
17878         * build-aux/install-reloc: Expect one more argument, or an environment
17879         variable RELOC_STRIP_PROG. If set, strip the destination program and
17880         its wrapper.
17881         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
17882         RELOC_STRIP_PROG.
17883         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
17884         to set RELOCATABLE_STRIP.
17885         * NEWS: Mention the new Makefile requirement.
17886
17887 2009-01-17  Bruno Haible  <bruno@clisp.org>
17888
17889         * build-aux/install-reloc: Remove debugging information left over by
17890         C compiler on MacOS X.
17891
17892 2009-01-17  Bruno Haible  <bruno@clisp.org>
17893
17894         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
17895         * lib/progreloc.c (find_executable): Fix type of pointer passed to
17896         _NSGetExecutablePath.
17897
17898 2009-01-16  Jim Meyering  <meyering@redhat.com>
17899
17900         strerror: avoid warnings about discarding "const"
17901         * lib/strerror.c (rpl_strerror): Instead of returning a const
17902         string from each and every "case", use a variable, and add a single
17903         cast after the switch.
17904
17905 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
17906
17907         * lib/arpa_inet.in.h: Add extern "C" block for C++.
17908
17909 2009-01-16  Bruno Haible  <bruno@clisp.org>
17910
17911         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
17912         array initializer syntax that also works in C++ mode.
17913         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17914
17915 2009-01-16  Jim Meyering  <meyering@redhat.com>
17916
17917         poll: suppress a warning
17918         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
17919         to ignore "...unsigned expression < 0 is always false" warnings.
17920
17921 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
17922
17923         poll: remove declarations of unused variables
17924         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
17925         sockbuf and optlen.
17926
17927 2009-01-15  Bruno Haible  <bruno@clisp.org>
17928
17929         Make fflush-after-ungetc POSIX compliant on BSD systems.
17930         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
17931         (clear_ungetc_buffer): Implement also for other systems.
17932         (rpl_fflush): On glibc systems, invoke
17933         clear_ungetc_buffer_preserving_position. Otherwise, invoke
17934         clear_ungetc_buffer after fetching the stream's position, not before.
17935
17936 2009-01-15  Bruno Haible  <bruno@clisp.org>
17937
17938         Make fflush-after-ungetc POSIX compliant on glibc systems.
17939         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
17940         after ungetc.
17941         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
17942         (rpl_fflush): On glibc systems, simply call the system's fflush
17943         function after clearing the ungetc buffer.
17944         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
17945         Instead, lseek only to the end of file, then use the system's fseeko
17946         for the rest. On glibc systems, reset the EOF indicator bit.
17947
17948 2009-01-15  Jim Meyering  <meyering@redhat.com>
17949
17950         openmp.m4: revert quote-adding change, for portability to older autoconf
17951         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
17952         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
17953         Simon Josefsson noticed the problem when using autoconf-2.61.
17954
17955 2009-01-15  Bruno Haible  <bruno@clisp.org>
17956
17957         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
17958         * tests/test-fflush2.c (ASSERT): Always fail.
17959         (main): Add two tests for fflush() after ungetc(), taking into account
17960         the Austin Group's clarification.
17961         Suggested by Eric Blake.
17962
17963 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
17964
17965         mktime.m4: remove K&R-style function prototypes
17966         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
17967         for the Sun C++ compiler.
17968
17969 2009-01-14  Bruno Haible  <bruno@clisp.org>
17970
17971         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
17972         while including <wchar.h>.
17973         * lib/wchar.in.h: In two particular situations on HP-UX, include only
17974         the system's <wchar.h> file.
17975         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17976
17977 2009-01-14  Bruno Haible  <bruno@clisp.org>
17978
17979         * m4/csharp.m4: Don't mention gettext on the serial number line.
17980         * m4/csharpexec.m4: Likewise.
17981         * m4/eaccess.m4: Likewise.
17982         * m4/javaexec.m4: Likewise.
17983         * m4/sig_atomic_t.m4: Likewise.
17984         * m4/tmpdir.m4: Likewise.
17985         * m4/intldir.m4: Bump gettext version.
17986         * m4/lib-ld.m4: Likewise.
17987
17988 2009-01-14  Bruno Haible  <bruno@clisp.org>
17989
17990         * lib/progname.c (set_program_name): Add more comments.
17991         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
17992
17993 2009-01-14  Simon Josefsson  <simon@josefsson.org>
17994
17995         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
17996         were sys/stat.h does not define it.
17997
17998 2009-01-14  Jim Meyering  <meyering@redhat.com>
17999
18000         many *.m4 files: improve m4 quoting
18001         99% of this change was performed by running the following commands:
18002         git ls-files | grep '\.m4$' | xargs perl -pi \
18003           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
18004           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
18005           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
18006           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
18007         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
18008         The remainder were to add Copyright dates, increment serial numbers,
18009         undo some changes in comments, exclude m4/intl.m4, and add quotes
18010         around the "1" in ",1" where the unusual spacing prohibited the
18011         above regexps from doing the job.  For more details, see
18012         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
18013         * m4/acl.m4: Modified.
18014         * m4/afs.m4: Likewise.
18015         * m4/alloca.m4: Likewise.
18016         * m4/argp.m4: Likewise.
18017         * m4/argz.m4: Likewise.
18018         * m4/atexit.m4: Likewise.
18019         * m4/bison-i18n.m4: Likewise.
18020         * m4/bison.m4: Likewise.
18021         * m4/byteswap.m4: Likewise.
18022         * m4/c-stack.m4: Likewise.
18023         * m4/c-strtod.m4: Likewise.
18024         * m4/calloc.m4: Likewise.
18025         * m4/canonicalize-lgpl.m4: Likewise.
18026         * m4/chown.m4: Likewise.
18027         * m4/clock_time.m4: Likewise.
18028         * m4/codeset.m4: Likewise.
18029         * m4/copy-file.m4: Likewise.
18030         * m4/csharp.m4: Likewise.
18031         * m4/csharpcomp.m4: Likewise.
18032         * m4/csharpexec.m4: Likewise.
18033         * m4/d-ino.m4: Likewise.
18034         * m4/d-type.m4: Likewise.
18035         * m4/dirfd.m4: Likewise.
18036         * m4/double-slash-root.m4: Likewise.
18037         * m4/eaccess.m4: Likewise.
18038         * m4/eealloc.m4: Likewise.
18039         * m4/environ.m4: Likewise.
18040         * m4/errno_h.m4: Likewise.
18041         * m4/euidaccess.m4: Likewise.
18042         * m4/execute.m4: Likewise.
18043         * m4/fatal-signal.m4: Likewise.
18044         * m4/fchdir.m4: Likewise.
18045         * m4/fcntl_h.m4: Likewise.
18046         * m4/fileblocks.m4: Likewise.
18047         * m4/filenamecat.m4: Likewise.
18048         * m4/findprog.m4: Likewise.
18049         * m4/flexmember.m4: Likewise.
18050         * m4/fnmatch.m4: Likewise.
18051         * m4/fopen.m4: Likewise.
18052         * m4/fpending.m4: Likewise.
18053         * m4/fprintf-posix.m4: Likewise.
18054         * m4/free.m4: Likewise.
18055         * m4/frexp.m4: Likewise.
18056         * m4/frexpl.m4: Likewise.
18057         * m4/fsusage.m4: Likewise.
18058         * m4/ftruncate.m4: Likewise.
18059         * m4/gc-camellia.m4: Likewise.
18060         * m4/gc-random.m4: Likewise.
18061         * m4/gc.m4: Likewise.
18062         * m4/getaddrinfo.m4: Likewise.
18063         * m4/getcwd-abort-bug.m4: Likewise.
18064         * m4/getcwd-path-max.m4: Likewise.
18065         * m4/getdate.m4: Likewise.
18066         * m4/getdomainname.m4: Likewise.
18067         * m4/getgroups.m4: Likewise.
18068         * m4/gethostname.m4: Likewise.
18069         * m4/gethrxtime.m4: Likewise.
18070         * m4/getline.m4: Likewise.
18071         * m4/getloadavg.m4: Likewise.
18072         * m4/getndelim2.m4: Likewise.
18073         * m4/getpass.m4: Likewise.
18074         * m4/gettext.m4: Likewise.
18075         * m4/gettime.m4: Likewise.
18076         * m4/gettimeofday.m4: Likewise.
18077         * m4/gnulib-common.m4: Likewise.
18078         * m4/group-member.m4: Likewise.
18079         * m4/host-os.m4: Likewise.
18080         * m4/iconv.m4: Likewise.
18081         * m4/iconv_open.m4: Likewise.
18082         * m4/inet_ntop.m4: Likewise.
18083         * m4/inet_pton.m4: Likewise.
18084         * m4/inline.m4: Likewise.
18085         * m4/intldir.m4: Likewise.
18086         * m4/intlmacosx.m4: Likewise.
18087         * m4/intmax.m4: Likewise.
18088         * m4/intmax_t.m4: Likewise.
18089         * m4/inttypes.m4: Likewise.
18090         * m4/inttypes_h.m4: Likewise.
18091         * m4/inttypes-pri.m4: Likewise.
18092         * m4/isapipe.m4: Likewise.
18093         * m4/isnand.m4: Likewise.
18094         * m4/isnanf.m4: Likewise.
18095         * m4/isnanl.m4: Likewise.
18096         * m4/javacomp.m4: Likewise.
18097         * m4/javaexec.m4: Likewise.
18098         * m4/jm-winsz1.m4: Likewise.
18099         * m4/jm-winsz2.m4: Likewise.
18100         * m4/lchown.m4: Likewise.
18101         * m4/lcmessage.m4: Likewise.
18102         * m4/ldexpl.m4: Likewise.
18103         * m4/lib-ld.m4: Likewise.
18104         * m4/lib-link.m4: Likewise.
18105         * m4/libsigsegv.m4: Likewise.
18106         * m4/link-follow.m4: Likewise.
18107         * m4/localcharset.m4: Likewise.
18108         * m4/locale-fr.m4: Likewise.
18109         * m4/locale-ja.m4: Likewise.
18110         * m4/locale-tr.m4: Likewise.
18111         * m4/locale-zh.m4: Likewise.
18112         * m4/lock.m4: Likewise.
18113         * m4/longlong.m4: Likewise.
18114         * m4/ls-mntd-fs.m4: Likewise.
18115         * m4/lstat.m4: Likewise.
18116         * m4/malloc.m4: Likewise.
18117         * m4/mathl.m4: Likewise.
18118         * m4/mbrtowc.m4: Likewise.
18119         * m4/mbstate_t.m4: Likewise.
18120         * m4/mbswidth.m4: Likewise.
18121         * m4/memchr.m4: Likewise.
18122         * m4/memcmp.m4: Likewise.
18123         * m4/memcpy.m4: Likewise.
18124         * m4/memmem.m4: Likewise.
18125         * m4/memmove.m4: Likewise.
18126         * m4/mempcpy.m4: Likewise.
18127         * m4/memrchr.m4: Likewise.
18128         * m4/memset.m4: Likewise.
18129         * m4/minmax.m4: Likewise.
18130         * m4/mkdir-slash.m4: Likewise.
18131         * m4/mkdtemp.m4: Likewise.
18132         * m4/mktime.m4: Likewise.
18133         * m4/mmap-anon.m4: Likewise.
18134         * m4/mountlist.m4: Likewise.
18135         * m4/nanosleep.m4: Likewise.
18136         * m4/nls.m4: Likewise.
18137         * m4/nocrash.m4: Likewise.
18138         * m4/open.m4: Likewise.
18139         * m4/openat.m4: Likewise.
18140         * m4/openmp.m4: Likewise.
18141         * m4/pathmax.m4: Likewise.
18142         * m4/perl.m4: Likewise.
18143         * m4/physmem.m4: Likewise.
18144         * m4/pipe.m4: Likewise.
18145         * m4/po.m4: Likewise.
18146         * m4/poll.m4: Likewise.
18147         * m4/posixtm.m4: Likewise.
18148         * m4/posixver.m4: Likewise.
18149         * m4/printf-frexp.m4: Likewise.
18150         * m4/printf-frexpl.m4: Likewise.
18151         * m4/printf-posix.m4: Likewise.
18152         * m4/printf-posix-rpl.m4: Likewise.
18153         * m4/printf.m4: Likewise.
18154         * m4/progtest.m4: Likewise.
18155         * m4/putenv.m4: Likewise.
18156         * m4/readline.m4: Likewise.
18157         * m4/readlink.m4: Likewise.
18158         * m4/readutmp.m4: Likewise.
18159         * m4/realloc.m4: Likewise.
18160         * m4/regex.m4: Likewise.
18161         * m4/relocatable.m4: Likewise.
18162         * m4/relocatable-lib.m4: Likewise.
18163         * m4/rename-dest-slash.m4: Likewise.
18164         * m4/rename.m4: Likewise.
18165         * m4/rmdir-errno.m4: Likewise.
18166         * m4/rmdir.m4: Likewise.
18167         * m4/roundf.m4: Likewise.
18168         * m4/roundl.m4: Likewise.
18169         * m4/rpmatch.m4: Likewise.
18170         * m4/save-cwd.m4: Likewise.
18171         * m4/selinux-selinux-h.m4: Likewise.
18172         * m4/setenv.m4: Likewise.
18173         * m4/settime.m4: Likewise.
18174         * m4/sig2str.m4: Likewise.
18175         * m4/sig_atomic_t.m4: Likewise.
18176         * m4/signalblocking.m4: Likewise.
18177         * m4/signbit.m4: Likewise.
18178         * m4/sigpipe.m4: Likewise.
18179         * m4/sockets.m4: Likewise.
18180         * m4/sockpfaf.m4: Likewise.
18181         * m4/st_dm_mode.m4: Likewise.
18182         * m4/stat-time.m4: Likewise.
18183         * m4/stdbool.m4: Likewise.
18184         * m4/stdint.m4: Likewise.
18185         * m4/stdint_h.m4: Likewise.
18186         * m4/stpcpy.m4: Likewise.
18187         * m4/stpncpy.m4: Likewise.
18188         * m4/strcase.m4: Likewise.
18189         * m4/strchrnul.m4: Likewise.
18190         * m4/strcspn.m4: Likewise.
18191         * m4/strdup.m4: Likewise.
18192         * m4/strftime.m4: Likewise.
18193         * m4/strndup.m4: Likewise.
18194         * m4/strnlen.m4: Likewise.
18195         * m4/strpbrk.m4: Likewise.
18196         * m4/strptime.m4: Likewise.
18197         * m4/strsep.m4: Likewise.
18198         * m4/strtod.m4: Likewise.
18199         * m4/strtoimax.m4: Likewise.
18200         * m4/strtok_r.m4: Likewise.
18201         * m4/strtol.m4: Likewise.
18202         * m4/strtoll.m4: Likewise.
18203         * m4/strtoul.m4: Likewise.
18204         * m4/strtoull.m4: Likewise.
18205         * m4/strtoumax.m4: Likewise.
18206         * m4/strverscmp.m4: Likewise.
18207         * m4/threadlib.m4: Likewise.
18208         * m4/timegm.m4: Likewise.
18209         * m4/tm_gmtoff.m4: Likewise.
18210         * m4/tmpdir.m4: Likewise.
18211         * m4/tmpfile.m4: Likewise.
18212         * m4/tzset.m4: Likewise.
18213         * m4/uintmax_t.m4: Likewise.
18214         * m4/unlinkdir.m4: Likewise.
18215         * m4/unlocked-io.m4: Likewise.
18216         * m4/uptime.m4: Likewise.
18217         * m4/userspec.m4: Likewise.
18218         * m4/utimbuf.m4: Likewise.
18219         * m4/utime.m4: Likewise.
18220         * m4/utimes-null.m4: Likewise.
18221         * m4/utimes.m4: Likewise.
18222         * m4/vararrays.m4: Likewise.
18223         * m4/vasnprintf.m4: Likewise.
18224         * m4/vfprintf-posix.m4: Likewise.
18225         * m4/vprintf-posix.m4: Likewise.
18226         * m4/wait-process.m4: Likewise.
18227         * m4/wchar_t.m4: Likewise.
18228         * m4/wint_t.m4: Likewise.
18229         * m4/write-any-file.m4: Likewise.
18230         * m4/yield.m4: Likewise.
18231
18232 2009-01-13  Bruno Haible  <bruno@clisp.org>
18233
18234         Avoid test-copy-file.sh failures when ACL support insufficient.
18235         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
18236         TESTS_ENVIRONMENT.
18237         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
18238         Reported by Jim Meyering.
18239
18240 2009-01-13  Bruno Haible  <bruno@clisp.org>
18241
18242         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
18243         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
18244         * modules/unistdio/u8-printf-parse (Files): Likewise.
18245         * modules/unistdio/u32-printf-parse (Files): Likewise.
18246         * modules/unistdio/ulc-printf-parse (Files): Likewise.
18247
18248 2009-01-13  Simon Josefsson  <simon@josefsson.org>
18249
18250         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
18251         and m4/inttypes_h.m4 too.
18252
18253 2009-01-12  Eric Blake  <ebb9@byu.net>
18254
18255         tests: IRIX 6.2 cc can't compile -0.0 into .data
18256         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
18257         rather than at compile-time.
18258         * tests/test-floorl.c (minus_zero): Likewise.
18259         * tests/test-frexpl.c (minus_zero): Likewise.
18260         * tests/test-isnan.c (minus_zerol): Likewise.
18261         * tests/test-isnanl.h (minus_zero): Likewise.
18262         * tests/test-ldexpl.c (minus_zero): Likewise.
18263         * tests/test-roundl.c (minus_zero): Likewise.
18264         * tests/test-signbit.c (minus_zerol): Likewise.
18265         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
18266         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
18267         * tests/test-truncl.c (minus_zero): Likewise.
18268         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
18269         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
18270         Reported by Tom G. Christensen and Nelson H. F. Beebe.
18271
18272 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
18273
18274         regex: fix glibc bug 9697
18275         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
18276         handling.
18277
18278 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
18279
18280         regex: fix glibc bug 697
18281         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
18282         being NULL also if there are no backreferences.
18283
18284 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
18285
18286         regex: merge glibc changes
18287         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
18288         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
18289         re_string_skip_chars, re_string_reconstruct): Likewise.
18290         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
18291
18292 2009-01-07  Jim Meyering  <meyering@redhat.com>
18293
18294         poll: filter through cppi
18295         * lib/poll.c: Indent cpp directives to reflect nesting.
18296
18297 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
18298
18299         poll: don't return uninitialized
18300         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
18301
18302 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
18303
18304         avoid compile failure on AIX 6.1
18305         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
18306         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
18307
18308 2009-01-04  Jim Meyering  <meyering@redhat.com>
18309
18310         remove duplicate inclusion of <stdio.h>
18311         * tests/test-fprintf-posix.c: Likewise.
18312         * tests/test-printf-posix.c: Likewise.
18313         * tests/test-snprintf-posix.c: Likewise.
18314         * tests/test-sprintf-posix.c: Likewise.
18315         * tests/test-vasprintf-posix.c: Likewise.
18316         * tests/test-vfprintf-posix.c: Likewise.
18317         * tests/test-vprintf-posix.c: Likewise.
18318         * tests/test-vsnprintf-posix.c: Likewise.
18319         * tests/test-vsprintf-posix.c: Likewise.
18320
18321 2009-01-03  Jim Meyering  <meyering@redhat.com>
18322
18323         gnulib-tool: fix sed-based filtering
18324         * gnulib-tool (func_filter_filelist): Remove extra backslash
18325         in sed_fff_filter definition.
18326
18327 2009-01-02  Jim Meyering  <meyering@redhat.com>
18328
18329         strftime: avoid compilation failure on Solaris 2.6
18330         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
18331         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
18332         Don't #define mbrlen or mbsinit, since now they're guaranteed to
18333         be available.  Reported by Tom G. Christensen.  Details in
18334         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
18335
18336 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18337             Bruno Haible  <bruno@clisp.org>
18338
18339         Speed up gnulib-tool by doing more string processing through shell
18340         built-ins.
18341         * gnulib-tool (fast_func_append): New variable.
18342         (func_remove_prefix, func_remove_suffix): New functions.
18343         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
18344         (func_filter_filelist): New function.
18345         (func_get_dependencies): Use func_remove_suffix instead of sed.
18346         (func_get_automake_snippet): Use func_filter_filelist instead of a
18347         subshell and sed invocation.
18348
18349 2009-01-01  Bruno Haible  <bruno@clisp.org>
18350
18351         Fix a security bug.
18352         * gnulib-tool (func_import, import, update): Don't allow the characters
18353         '"', '$', '`', '\' in macro arguments that become part of commands that
18354         are evaluated.
18355
18356 2009-01-01  Bruno Haible  <bruno@clisp.org>
18357
18358         * gnulib-tool (func_reset_sigpipe): Add more comments.
18359
18360 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18361
18362         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
18363         func_emit_tests_Makefile_am, func_import): Abort loops early if we
18364         already know the answer.
18365
18366 2009-01-01  Jim Meyering  <meyering@redhat.com>
18367
18368         * lib/version-etc.c (version_etc_va): Update copyright year.
18369
18370 2008-12-30  Bruno Haible  <bruno@clisp.org>
18371
18372         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
18373         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
18374         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
18375
18376 2008-12-29  Eric Blake  <ebb9@byu.net>
18377
18378         multiarch: avoid autoconf AC_REQUIRE bug
18379         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
18380         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
18381         2.63 and older.
18382         Reported by Bruno Haible, and analyzed in
18383         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
18384
18385 2008-12-29  Bruno Haible  <bruno@clisp.org>
18386
18387         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
18388         files in subdirectories correctly.
18389         Reported by Ralf Wildenhues.
18390
18391 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18392
18393         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
18394         rather than 'join FILE -', for Solaris join.
18395
18396 2008-12-29  Bruno Haible  <bruno@clisp.org>
18397
18398         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
18399         quoting.
18400         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
18401         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
18402         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
18403         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
18404         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
18405         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
18406         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
18407         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
18408         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
18409         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
18410         * m4/nls.m4 (AM_NLS): Likewise.
18411         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
18412         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
18413         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
18414         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
18415         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
18416         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
18417         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
18418         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
18419         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
18420         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
18421         * m4/xsize.m4 (gl_XSIZE): Likewise.
18422         Suggested by Jim Meyering.
18423
18424 2008-11-17  Bruce Korb  <bkorb@gnu.org>
18425
18426         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
18427         * lib/parse-duration.c: use a switch instead of cascading if's.
18428
18429 2008-12-29  Eric Blake  <ebb9@byu.net>
18430
18431         wchar.h: supply WEOF on Irix 5.3
18432         * lib/wchar.in.h (wint_t): Also supply WEOF.
18433         * lib/wctype.in.h (wint_t): Likewise.
18434         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
18435         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
18436         Reported by Tom G. Christensen.
18437
18438 2008-12-26  Bruno Haible  <bruno@clisp.org>
18439
18440         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
18441         i486, i586, i686.
18442
18443 2008-12-26  Bruno Haible  <bruno@clisp.org>
18444
18445         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
18446
18447 2008-12-26  Bruno Haible  <bruno@clisp.org>
18448
18449         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
18450         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
18451         not __STDC_CONSTANT_MACROS.
18452         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
18453
18454 2008-12-25  Bruno Haible  <bruno@clisp.org>
18455
18456         Add support for universal builds to vasnprintf.
18457         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
18458         universal builds, guess no.
18459         * modules/vasnprintf-posix (Depends-on): Add multiarch.
18460         * modules/vasprintf-posix (Depends-on): Likewise.
18461         * modules/fprintf-posix (Depends-on): Likewise.
18462         * modules/vfprintf-posix (Depends-on): Likewise.
18463         * modules/snprintf-posix (Depends-on): Likewise.
18464         * modules/vsnprintf-posix (Depends-on): Likewise.
18465         * modules/sprintf-posix (Depends-on): Likewise.
18466         * modules/vsprintf-posix (Depends-on): Likewise.
18467         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
18468         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18469         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18470         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18471         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18472         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18473         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18474
18475         Add support for universal builds to <inttypes.h>.
18476         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
18477         _SCNu64_PREFIX): In Apple
18478         universal builds, define directly, using _LP64.
18479         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
18480         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
18481         * modules/inttypes (Depends-on): Add multiarch.
18482         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
18483
18484         Add support for universal builds to <stdint.h>.
18485         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
18486         universal builds, define directly, using _LP64.
18487         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
18488         Apple universal builds, don't test for the size and suffix of ptrdiff_t
18489         and size_t.
18490         * modules/stdint (Depends-on): Add multiarch.
18491         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
18492
18493         New module 'multiarch'.
18494         * modules/multiarch: New file.
18495         * m4/multiarch.m4: New file.
18496
18497 2008-12-25  Bruno Haible  <bruno@clisp.org>
18498
18499         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
18500
18501 2008-12-25  Bruno Haible  <bruno@clisp.org>
18502
18503         * modules/btowc (License): Relicense under LGPLv2+.
18504         * modules/mbsinit (License): Likewise.
18505         * modules/mbrtowc (License): Likewise.
18506         * modules/wcrtomb (License): Likewise.
18507         * modules/streq (License): Likewise.
18508         Reported by David Lutterkort <lutter@redhat.com>.
18509
18510 2008-12-23  Bruno Haible  <bruno@clisp.org>
18511
18512         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
18513
18514 2008-12-23  Bruno Haible  <bruno@clisp.org>
18515
18516         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
18517         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
18518         GETADDRINFO_LIB, not in LIBS.
18519         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
18520         * modules/canon-host (Link): Likewise.
18521         * NEWS: Mention the change.
18522         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
18523         GETADDRINFO_LIB.
18524
18525 2008-12-22  Bruno Haible  <bruno@clisp.org>
18526
18527         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
18528         * doc/posix-functions/iswalpha_l.texi: Likewise.
18529         * doc/posix-functions/iswblank_l.texi: Likewise.
18530         * doc/posix-functions/iswcntrl_l.texi: Likewise.
18531         * doc/posix-functions/iswctype_l.texi: Likewise.
18532         * doc/posix-functions/iswdigit_l.texi: Likewise.
18533         * doc/posix-functions/iswgraph_l.texi: Likewise.
18534         * doc/posix-functions/iswlower_l.texi: Likewise.
18535         * doc/posix-functions/iswprint_l.texi: Likewise.
18536         * doc/posix-functions/iswpunct_l.texi: Likewise.
18537         * doc/posix-functions/iswspace_l.texi: Likewise.
18538         * doc/posix-functions/iswupper_l.texi: Likewise.
18539         * doc/posix-functions/iswxdigit_l.texi: Likewise.
18540         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
18541         * doc/posix-functions/open_wmemstream.texi: Likewise.
18542         * doc/posix-functions/swscanf.texi: Likewise.
18543         * doc/posix-functions/towctrans_l.texi: Likewise.
18544         * doc/posix-functions/towlower.texi: Likewise.
18545         * doc/posix-functions/towlower_l.texi: Likewise.
18546         * doc/posix-functions/towupper.texi: Likewise.
18547         * doc/posix-functions/towupper_l.texi: Likewise.
18548         * doc/posix-functions/vfwprintf.texi: Likewise.
18549         * doc/posix-functions/vfwscanf.texi: Likewise.
18550         * doc/posix-functions/vswscanf.texi: Likewise.
18551         * doc/posix-functions/vwprintf.texi: Likewise.
18552         * doc/posix-functions/vwscanf.texi: Likewise.
18553         * doc/posix-functions/wcpcpy.texi: Likewise.
18554         * doc/posix-functions/wcpncpy.texi: Likewise.
18555         * doc/posix-functions/wcscasecmp.texi: Likewise.
18556         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
18557         * doc/posix-functions/wcscoll_l.texi: Likewise.
18558         * doc/posix-functions/wcsdup.texi: Likewise.
18559         * doc/posix-functions/wcsncasecmp.texi: Likewise.
18560         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
18561         * doc/posix-functions/wcsnlen.texi: Likewise.
18562         * doc/posix-functions/wcsnrtombs.texi: Likewise.
18563         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
18564         * doc/posix-functions/wctrans_l.texi: Likewise.
18565         * doc/posix-functions/wctype_l.texi: Likewise.
18566         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
18567         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
18568         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
18569         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
18570         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
18571         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
18572         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
18573         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
18574         * doc/glibc-functions/wcschrnul.texi: Likewise.
18575         * doc/glibc-functions/wcsftime_l.texi: Likewise.
18576         * doc/glibc-functions/wcstod_l.texi: Likewise.
18577         * doc/glibc-functions/wcstof_l.texi: Likewise.
18578         * doc/glibc-functions/wcstol_l.texi: Likewise.
18579         * doc/glibc-functions/wcstold_l.texi: Likewise.
18580         * doc/glibc-functions/wcstoll_l.texi: Likewise.
18581         * doc/glibc-functions/wcstoq.texi: Likewise.
18582         * doc/glibc-functions/wcstoul_l.texi: Likewise.
18583         * doc/glibc-functions/wcstoull_l.texi: Likewise.
18584         * doc/glibc-functions/wcstouq.texi: Likewise.
18585         * doc/glibc-functions/wmempcpy.texi: Likewise.
18586
18587 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
18588             Eric Blake  <ebb9@byu.net>
18589             Paolo Bonzini  <bonzini@gnu.org>
18590             Bruno Haible  <bruno@clisp.org>
18591
18592         Make c-stack work on Haiku.
18593         * lib/c-stack.c (SA_ONSTACK): Define fallback.
18594         (c_stack_action): Use SA_ONSTACK flag.
18595
18596 2008-12-22  Bruno Haible  <bruno@clisp.org>
18597
18598         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
18599
18600 2008-12-22  Bruno Haible  <bruno@clisp.org>
18601
18602         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
18603         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
18604         being overridden.
18605         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
18606         New macros.
18607         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
18608         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
18609         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
18610         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
18611
18612 2008-12-22  Bruno Haible  <bruno@clisp.org>
18613
18614         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
18615         from test code.
18616
18617 2008-12-22  Eric Blake  <ebb9@byu.net>
18618
18619         Avoid gcc warnings on cygwin.
18620         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
18621         Avoid unused variable.
18622         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
18623         Likewise.
18624
18625 2008-12-22  Bruno Haible  <bruno@clisp.org>
18626
18627         Remove HAVE_MBRTOWC conditionals.
18628         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
18629         (mbscasecmp): Assume mbrtowc function.
18630         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
18631         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
18632         * lib/mbschr.c: Include mbuiter.h unconditionally.
18633         (mbschr): Assume mbrtowc function.
18634         * lib/mbscspn.c: Include mbuiter.h unconditionally.
18635         (mbscspn): Assume mbrtowc function.
18636         * lib/mbslen.c: Include mbuiter.h unconditionally.
18637         (mbslen): Assume mbrtowc function.
18638         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
18639         (mbsncasecmp): Assume mbrtowc function.
18640         * lib/mbsnlen.c: Include mbiter.h unconditionally.
18641         (mbsnlen): Assume mbrtowc function.
18642         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
18643         (mbspbrk): Assume mbrtowc function.
18644         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
18645         (mbspcasecmp): Assume mbrtowc function.
18646         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
18647         (mbsrchr): Assume mbrtowc function.
18648         * lib/mbssep.c: Include mbuiter.h unconditionally.
18649         (mbssep): Assume mbrtowc function.
18650         * lib/mbsspn.c: Include mbuiter.h unconditionally.
18651         (mbsspn): Assume mbrtowc function.
18652         * lib/mbsstr.c: Include mbuiter.h unconditionally.
18653         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
18654         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
18655         (mbstok_r): Assume mbrtowc function.
18656         * lib/propername.c: Include mbuiter.h unconditionally.
18657         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
18658         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
18659         (trim2): Assume mbrtowc function.
18660         * lib/mbswidth.c (mbsinit): Remove fallback definition.
18661         (mbsnwidth): Assume mbrtowc function.
18662         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
18663         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
18664         fallback definitions.
18665         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
18666
18667 2008-12-22  Bruno Haible  <bruno@clisp.org>
18668
18669         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
18670
18671 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
18672
18673         * modules/regex: Request emulations for the mb*/wc* functions we need.
18674         * m4/regex.m4: Don't look for those functions here.
18675         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
18676
18677 2008-12-22  Bruno Haible  <bruno@clisp.org>
18678
18679         * modules/fnmatch (Depends-on): Remove duplicated dependency.
18680
18681 2008-12-21  Bruno Haible  <bruno@clisp.org>
18682
18683         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
18684         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
18685         (Include): Remove conditionalization.
18686         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
18687         (Include): Remove conditionalization.
18688         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
18689         (Include): Remove conditionalization.
18690         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
18691         * m4/mbfile.m4 (gl_MBFILE): Likewise.
18692         * NEWS: Mention the change.
18693         Reported by Alan Hourihane <alanh@fairlite.co.uk>
18694         via Sergey Poznyakoff <gray@gnu.org.ua>.
18695
18696 2008-12-21  Bruno Haible  <bruno@clisp.org>
18697
18698         * MODULES.html.sh (Extended multibyte and wide character utilities
18699         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
18700         wcrtomb, wcsrtombs.
18701         (Support for systems lacking POSIX:2008): Add accept, bind, close,
18702         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
18703         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
18704         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
18705
18706 2008-12-21  Bruno Haible  <bruno@clisp.org>
18707
18708         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
18709
18710 2008-12-21  Bruno Haible  <bruno@clisp.org>
18711
18712         * modules/wcsnrtombs-tests: New file.
18713         * tests/test-wcsnrtombs1.sh: New file.
18714         * tests/test-wcsnrtombs2.sh: New file.
18715         * tests/test-wcsnrtombs3.sh: New file.
18716         * tests/test-wcsnrtombs4.sh: New file.
18717         * tests/test-wcsnrtombs.c: New file.
18718
18719         New module 'wcsnrtombs'.
18720         * lib/wchar.in.h (wcsnrtombs): New declaration.
18721         * lib/wcsnrtombs.c: New file.
18722         * lib/wcsrtombs-state.c: New file.
18723         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
18724         (internal_state): Remove variable.
18725         * m4/wcsnrtombs.m4: New file.
18726         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
18727         compilation units.
18728         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
18729         HAVE_WCSNRTOMBS.
18730         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
18731         HAVE_WCSNRTOMBS.
18732         * modules/wcsnrtombs: New file.
18733         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
18734         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
18735
18736 2008-12-21  Bruno Haible  <bruno@clisp.org>
18737
18738         * modules/wcsrtombs-tests: New file.
18739         * tests/test-wcsrtombs1.sh: New file.
18740         * tests/test-wcsrtombs2.sh: New file.
18741         * tests/test-wcsrtombs3.sh: New file.
18742         * tests/test-wcsrtombs4.sh: New file.
18743         * tests/test-wcsrtombs.c: New file.
18744
18745         New module 'wcsrtombs'.
18746         * lib/wchar.in.h (wcsrtombs): New declaration.
18747         * lib/wcsrtombs.c: New file.
18748         * m4/wcsrtombs.m4: New file.
18749         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
18750         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
18751         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
18752         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
18753         * modules/wcsrtombs: New file.
18754         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
18755         bugs.
18756
18757 2008-12-21  Bruno Haible  <bruno@clisp.org>
18758
18759         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
18760         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
18761         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
18762         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
18763         if not correct.
18764         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
18765         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
18766         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
18767         m4/locale-zh.m4, m4/codeset.m4.
18768         * doc/posix-functions/wcrtomb.texi: Document the bug.
18769
18770 2008-12-21  Bruno Haible  <bruno@clisp.org>
18771
18772         Work around a btowc() bug on IRIX 6.5.
18773         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
18774         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
18775         REPLACE_WTOBC if not.
18776         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
18777         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
18778         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
18779
18780 2008-12-21  Bruno Haible  <bruno@clisp.org>
18781
18782         * modules/wcrtomb-tests: New file.
18783         * tests/test-wcrtomb.sh: New file.
18784         * tests/test-wcrtomb.c: New file.
18785
18786         New module 'wcrtomb'.
18787         * lib/wchar.in.h (wcrtomb): New declaration.
18788         * lib/wcrtomb.c: New file.
18789         * m4/wcrtomb.m4: New file.
18790         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
18791         HAVE_WCRTOMB.
18792         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
18793         HAVE_WCRTOMB.
18794         * modules/wcrtomb: New file.
18795         * doc/posix-functions/wcrtomb.texi: Mention the new module.
18796
18797 2008-12-21  Bruno Haible  <bruno@clisp.org>
18798
18799         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
18800         * modules/mbsrtowcs (Files): Likewise.
18801         * modules/wctob (Files): Likewise.
18802         * modules/c-strcase-tests (Files): Likewise.
18803         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
18804         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
18805         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
18806         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
18807         * modules/vasnprintf-posix-tests (Files): Likewise.
18808
18809 2008-12-21  William Pursell  <bill.pursell@gmail.com>
18810
18811         gitlog-to-changelog: pass all command-line arguments to git-log
18812         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
18813         it is sometimes convenient to filter the commits in various ways.
18814         gitlog-to-changelog only allows --since to specify a start date,
18815         but git-log itself supports many other filtering mechanisms.
18816         At the moment, I want to filter by branch name.  Rather than
18817         adding a --branch option to gitlog-to-changelog, it seems more
18818         flexible to simply pass all options directly to git-log and let
18819         git do the work.  Notice that this effectively makes --since a
18820         redundant option for gitlog-to-changelog, but removing it would
18821         require current usage to change since calls would then require
18822         an additional '--'.
18823
18824 2008-12-21  Bruno Haible  <bruno@clisp.org>
18825
18826         * modules/mbsnrtowcs-tests: New file.
18827         * tests/test-mbsnrtowcs1.sh: New file.
18828         * tests/test-mbsnrtowcs2.sh: New file.
18829         * tests/test-mbsnrtowcs3.sh: New file.
18830         * tests/test-mbsnrtowcs4.sh: New file.
18831         * tests/test-mbsnrtowcs.c: New file.
18832
18833         New module 'mbsnrtowcs'.
18834         * lib/wchar.in.h (mbsnrtowcs): New declaration.
18835         * lib/mbsnrtowcs.c: New file.
18836         * lib/mbsrtowcs-state.c: New file.
18837         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
18838         (internal_state): Remove variable.
18839         * m4/mbsnrtowcs.m4: New file.
18840         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
18841         compilation units.
18842         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
18843         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
18844         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
18845         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
18846         * modules/mbsnrtowcs: New file.
18847         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
18848         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
18849         portability problem.
18850
18851 2008-12-21  Bruno Haible  <bruno@clisp.org>
18852
18853         Work around mbsrtowcs bug.
18854         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
18855         (gl_FUNC_MBSRTOWCS): Invoke it.
18856         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
18857         m4/locale-zh.m4.
18858         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
18859
18860 2008-12-21  Bruno Haible  <bruno@clisp.org>
18861
18862         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
18863
18864 2008-12-21  Bruno Haible  <bruno@clisp.org>
18865
18866         Update doc for AIX.
18867         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
18868         16-bit wchar_t type.
18869         * doc/posix-functions/btowc.texi: Likewise.
18870         * doc/posix-functions/fgetwc.texi: Likewise.
18871         * doc/posix-functions/fgetws.texi: Likewise.
18872         * doc/posix-functions/fputwc.texi: Likewise.
18873         * doc/posix-functions/fputws.texi: Likewise.
18874         * doc/posix-functions/fwide.texi: Likewise.
18875         * doc/posix-functions/fwprintf.texi: Likewise.
18876         * doc/posix-functions/fwscanf.texi: Likewise.
18877         * doc/posix-functions/getwchar.texi: Likewise.
18878         * doc/posix-functions/getwc.texi: Likewise.
18879         * doc/posix-functions/iswalnum.texi: Likewise.
18880         * doc/posix-functions/iswalpha.texi: Likewise.
18881         * doc/posix-functions/iswblank.texi: Likewise.
18882         * doc/posix-functions/iswcntrl.texi: Likewise.
18883         * doc/posix-functions/iswctype.texi: Likewise.
18884         * doc/posix-functions/iswdigit.texi: Likewise.
18885         * doc/posix-functions/iswgraph.texi: Likewise.
18886         * doc/posix-functions/iswlower.texi: Likewise.
18887         * doc/posix-functions/iswprint.texi: Likewise.
18888         * doc/posix-functions/iswpunct.texi: Likewise.
18889         * doc/posix-functions/iswspace.texi: Likewise.
18890         * doc/posix-functions/iswupper.texi: Likewise.
18891         * doc/posix-functions/iswxdigit.texi: Likewise.
18892         * doc/posix-functions/mbrtowc.texi: Likewise.
18893         * doc/posix-functions/mbsrtowcs.texi: Likewise.
18894         * doc/posix-functions/mbstowcs.texi: Likewise.
18895         * doc/posix-functions/mbtowc.texi: Likewise.
18896         * doc/posix-functions/putwchar.texi: Likewise.
18897         * doc/posix-functions/putwc.texi: Likewise.
18898         * doc/posix-functions/swprintf.texi: Likewise.
18899         * doc/posix-functions/tolower.texi: Likewise.
18900         * doc/posix-functions/toupper.texi: Likewise.
18901         * doc/posix-functions/towctrans.texi: Likewise.
18902         * doc/posix-functions/ungetwc.texi: Likewise.
18903         * doc/posix-functions/vswprintf.texi: Likewise.
18904         * doc/posix-functions/wcrtomb.texi: Likewise.
18905         * doc/posix-functions/wcscat.texi: Likewise.
18906         * doc/posix-functions/wcschr.texi: Likewise.
18907         * doc/posix-functions/wcscmp.texi: Likewise.
18908         * doc/posix-functions/wcscoll.texi: Likewise.
18909         * doc/posix-functions/wcscpy.texi: Likewise.
18910         * doc/posix-functions/wcscspn.texi: Likewise.
18911         * doc/posix-functions/wcsftime.texi: Likewise.
18912         * doc/posix-functions/wcslen.texi: Likewise.
18913         * doc/posix-functions/wcsncat.texi: Likewise.
18914         * doc/posix-functions/wcsncmp.texi: Likewise.
18915         * doc/posix-functions/wcsncpy.texi: Likewise.
18916         * doc/posix-functions/wcspbrk.texi: Likewise.
18917         * doc/posix-functions/wcsrchr.texi: Likewise.
18918         * doc/posix-functions/wcsrtombs.texi: Likewise.
18919         * doc/posix-functions/wcsspn.texi: Likewise.
18920         * doc/posix-functions/wcsstr.texi: Likewise.
18921         * doc/posix-functions/wcstod.texi: Likewise.
18922         * doc/posix-functions/wcstof.texi: Likewise.
18923         * doc/posix-functions/wcstoimax.texi: Likewise.
18924         * doc/posix-functions/wcstok.texi: Likewise.
18925         * doc/posix-functions/wcstold.texi: Likewise.
18926         * doc/posix-functions/wcstoll.texi: Likewise.
18927         * doc/posix-functions/wcstol.texi: Likewise.
18928         * doc/posix-functions/wcstombs.texi: Likewise.
18929         * doc/posix-functions/wcstoull.texi: Likewise.
18930         * doc/posix-functions/wcstoul.texi: Likewise.
18931         * doc/posix-functions/wcstoumax.texi: Likewise.
18932         * doc/posix-functions/wcswidth.texi: Likewise.
18933         * doc/posix-functions/wcsxfrm.texi: Likewise.
18934         * doc/posix-functions/wctob.texi: Likewise.
18935         * doc/posix-functions/wctomb.texi: Likewise.
18936         * doc/posix-functions/wctrans.texi: Likewise.
18937         * doc/posix-functions/wctype.texi: Likewise.
18938         * doc/posix-functions/wcwidth.texi: Likewise.
18939         * doc/posix-functions/wmemchr.texi: Likewise.
18940         * doc/posix-functions/wmemcmp.texi: Likewise.
18941         * doc/posix-functions/wmemcpy.texi: Likewise.
18942         * doc/posix-functions/wmemmove.texi: Likewise.
18943         * doc/posix-functions/wmemset.texi: Likewise.
18944         * doc/posix-functions/wprintf.texi: Likewise.
18945         * doc/posix-functions/wscanf.texi: Likewise.
18946
18947 2008-12-21  Bruno Haible  <bruno@clisp.org>
18948
18949         Update doc for HP-UX 11.11.
18950         * doc/posix-functions/btowc.texi: Clarify that the function is missing
18951         in HP-UX version 11.00, not in all versions of HP-UX 11.
18952         * doc/posix-functions/fwide.texi: Likewise.
18953         * doc/posix-functions/fwprintf.texi: Likewise.
18954         * doc/posix-functions/fwscanf.texi: Likewise.
18955         * doc/posix-functions/inet_ntop.texi: Likewise.
18956         * doc/posix-functions/inet_pton.texi: Likewise.
18957         * doc/posix-functions/mbrlen.texi: Likewise.
18958         * doc/posix-functions/mbrtowc.texi: Likewise.
18959         * doc/posix-functions/mbsinit.texi: Likewise.
18960         * doc/posix-functions/mbsrtowcs.texi: Likewise.
18961         * doc/posix-functions/swprintf.texi: Likewise.
18962         * doc/posix-functions/swscanf.texi: Likewise.
18963         * doc/posix-functions/towctrans.texi: Likewise.
18964         * doc/posix-functions/vfwprintf.texi: Likewise.
18965         * doc/posix-functions/vswprintf.texi: Likewise.
18966         * doc/posix-functions/vwprintf.texi: Likewise.
18967         * doc/posix-functions/wcrtomb.texi: Likewise.
18968         * doc/posix-functions/wcsrtombs.texi: Likewise.
18969         * doc/posix-functions/wcsstr.texi: Likewise.
18970         * doc/posix-functions/wctob.texi: Likewise.
18971         * doc/posix-functions/wctrans.texi: Likewise.
18972         * doc/posix-functions/wmemchr.texi: Likewise.
18973         * doc/posix-functions/wmemcmp.texi: Likewise.
18974         * doc/posix-functions/wmemcpy.texi: Likewise.
18975         * doc/posix-functions/wmemmove.texi: Likewise.
18976         * doc/posix-functions/wmemset.texi: Likewise.
18977         * doc/posix-functions/wprintf.texi: Likewise.
18978         * doc/posix-functions/wscanf.texi: Likewise.
18979
18980 2008-12-21  Bruno Haible  <bruno@clisp.org>
18981
18982         Work around a portability problem.
18983         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
18984         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
18985
18986 2008-12-20  Bruno Haible  <bruno@clisp.org>
18987
18988         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
18989         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
18990         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
18991         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
18992         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
18993
18994         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
18995         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
18996         set.
18997         (GNULIB_defined_mbstate_t): New macro.
18998         (mbsinit): Redefine if REPLACE_MBSINIT is set.
18999         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
19000         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
19001         reuses the system's mbrtowc function but works around the bugs.
19002         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
19003         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
19004         macros.
19005         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
19006         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
19007         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
19008         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
19009         REPLACE_MBSINIT if mbsinit needs to be overridden.
19010         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
19011         REPLACE_MBSINIT, REPLACE_MBRTOWC.
19012         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
19013         REPLACE_MBSINIT, REPLACE_MBRTOWC.
19014         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
19015         m4/locale-zh.m4.
19016         (Depends): Add mbsinit.
19017         * modules/mbsinit (Depends): Add mbrtowc.
19018         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
19019
19020 2008-12-20  Bruno Haible  <bruno@clisp.org>
19021
19022         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
19023         so that there are no conversion errors on AIX.
19024         * tests/test-mbsrtowcs.c (main): LIkewise.
19025
19026 2008-12-20  Bruno Haible  <bruno@clisp.org>
19027
19028         Work around wctob bug on Solaris <= 9.
19029         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
19030         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
19031         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
19032         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
19033         * modules/wctob (Files): Add m4/locale-fr.m4.
19034         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
19035
19036 2008-12-20  Bruno Haible  <bruno@clisp.org>
19037
19038         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
19039         /dev/null.
19040         * tests/test-select-in.sh: Likewise.
19041         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19042
19043 2008-12-20  Bruno Haible  <bruno@clisp.org>
19044
19045         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
19046         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
19047         Cygwin 1.5.x.
19048
19049 2008-12-20  Bruno Haible  <bruno@clisp.org>
19050
19051         Ensure mbstate_t is defined on HP-UX 11.11.
19052         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
19053         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
19054         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
19055         AC_USE_SYSTEM_EXTENSIONS.
19056         * modules/fnmatch (Depends-on): Add extensions.
19057         * modules/mbrlen (Depends-on): Likewise.
19058         * modules/mbrtowc (Depends-on): Likewise.
19059         * modules/mbsinit (Depends-on): Likewise.
19060         * modules/mbsrtowcs (Depends-on): Likewise.
19061         * modules/mbswidth (Depends-on): Likewise.
19062         * modules/quotearg (Depends-on): Likewise.
19063         * modules/strftime (Depends-on): Likewise.
19064
19065 2008-12-20  Bruno Haible  <bruno@clisp.org>
19066
19067         Ensure wctob is declared on IRIX 6.5.
19068         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
19069         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
19070         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
19071         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
19072         of HAVE_WCTOB.
19073         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
19074         HAVE_WCTOB.
19075         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
19076
19077 2008-12-19  Bruno Haible  <bruno@clisp.org>
19078
19079         * modules/mbsrtowcs-tests: New file.
19080         * tests/test-mbsrtowcs1.sh: New file.
19081         * tests/test-mbsrtowcs2.sh: New file.
19082         * tests/test-mbsrtowcs3.sh: New file.
19083         * tests/test-mbsrtowcs4.sh: New file.
19084         * tests/test-mbsrtowcs.c: New file.
19085
19086         New module 'mbsrtowcs'.
19087         * lib/wchar.in.h (mbsrtowcs): New declaration.
19088         * lib/mbsrtowcs.c: New file.
19089         * m4/mbsrtowcs.m4: New file.
19090         * modules/mbsrtowcs: New file.
19091         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
19092         HAVE_MBSRTOWCS.
19093         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
19094         HAVE_MBSRTOWCS.
19095         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
19096
19097 2008-12-19  Bruno Haible  <bruno@clisp.org>
19098
19099         New module 'mbrlen'.
19100         * lib/wchar.in.h (mbrlen): New declaration.
19101         * lib/mbrlen.c: New file.
19102         * m4/mbrlen.m4: New file.
19103         * modules/mbrlen: New file.
19104         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
19105         HAVE_MBRLEN.
19106         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
19107         HAVE_MBRLEN.
19108         * doc/posix-functions/mbrlen.texi: Document the new module.
19109
19110 2008-12-19  Bruno Haible  <bruno@clisp.org>
19111
19112         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
19113         * modules/mbrtowc (Depends-on): Add verify.
19114         Suggested by Paul Eggert.
19115
19116 2008-12-18  Bruno Haible  <bruno@clisp.org>
19117
19118         * modules/mbsinit-tests: New file.
19119         * tests/test-mbsinit.sh: New file.
19120         * tests/test-mbsinit.c: New file.
19121
19122 2008-12-18  Bruno Haible  <bruno@clisp.org>
19123
19124         * modules/mbrtowc-tests: New file.
19125         * tests/test-mbrtowc1.sh: New file.
19126         * tests/test-mbrtowc2.sh: New file.
19127         * tests/test-mbrtowc3.sh: New file.
19128         * tests/test-mbrtowc4.sh: New file.
19129         * tests/test-mbrtowc.c: New file.
19130
19131         New module 'mbrtowc'.
19132         * lib/wchar.in.h (mbstate_t): Override when the system does not have
19133         mbsinit and mbrtowc.
19134         (mbrtowc): New declaration.
19135         * lib/mbrtowc.c: New file.
19136         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
19137         * modules/mbrtowc: New file.
19138         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
19139         HAVE_MBRTOWC.
19140         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
19141         HAVE_MBRTOWC.
19142         * doc/posix-functions/mbrtowc.texi: Document the new module.
19143
19144 2008-12-18  Bruno Haible  <bruno@clisp.org>
19145
19146         New module 'wctob'.
19147         * lib/wchar.in.h (wctob): New declaration.
19148         * lib/wctob.c: New file.
19149         * m4/wctob.m4: New file.
19150         * modules/wctob: New file.
19151         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
19152         HAVE_WCTOB.
19153         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
19154         * doc/posix-functions/wctob.texi: Document the new module.
19155
19156 2008-12-18  Bruno Haible  <bruno@clisp.org>
19157
19158         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
19159         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
19160
19161 2008-12-18  Simon Josefsson  <simon@josefsson.org>
19162
19163         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
19164         G. Christensen" <tgc@jupiterrise.com>.
19165
19166         * lib/flock.c: Need to include errno.h.  Reported by "Tom
19167         G. Christensen" <tgc@jupiterrise.com>.
19168
19169         * lib/flock.c: Need to include string.h.  Reported by "Tom
19170         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
19171         <ebb9@byu.net>.
19172
19173 2008-12-18  Bruno Haible  <bruno@clisp.org>
19174
19175         * m4/locale-ja.m4: New file, from GNU gettext.
19176
19177 2008-12-17  Bruno Haible  <bruno@clisp.org>
19178
19179         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
19180         Suggested by Eric Blake.
19181
19182 2008-12-17  Bruno Haible  <bruno@clisp.org>
19183
19184         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
19185
19186 2008-12-17  Bruno Haible  <bruno@clisp.org>
19187
19188         * lib/mbsinit.c: Include verify.h. Verify an assumption.
19189         * modules/mbsinit (Depends-on): Add verify.
19190         Suggested by Paul Eggert.
19191
19192 2008-12-17  Bruno Haible  <bruno@clisp.org>
19193
19194         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
19195         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
19196         gl_FUNC_MBRTOWC.
19197         * m4/mbiter.m4 (gl_MBITER): LIkewise.
19198         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
19199         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
19200         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
19201         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
19202         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
19203         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
19204         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
19205         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
19206         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
19207         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
19208         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
19209         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
19210         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
19211         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
19212         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
19213         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
19214         * modules/trim (configure.ac): Likewise.
19215
19216 2008-12-17  Bruno Haible  <bruno@clisp.org>
19217
19218         * modules/btowc-tests: New file.
19219         * tests/test-btowc1.sh: New file.
19220         * tests/test-btowc2.sh: New file.
19221         * tests/test-btowc.c: New file.
19222
19223         New module 'btowc'.
19224         * lib/wchar.in.h (btowc): New declaration.
19225         * lib/btowc.c: New file.
19226         * m4/btowc.m4: New file.
19227         * modules/btowc: New file.
19228         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
19229         HAVE_BTOWC.
19230         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
19231         * doc/posix-functions/btowc.texi: Document the new module.
19232
19233 2008-12-17  Bruno Haible  <bruno@clisp.org>
19234
19235         New module 'mbsinit'.
19236         * lib/wchar.in.h (mbsinit): New declaration.
19237         * lib/mbsinit.c: New file.
19238         * m4/mbsinit.m4: New file.
19239         * modules/mbsinit: New file.
19240         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
19241         HAVE_MBSINIT.
19242         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
19243         HAVE_MBSINIT.
19244         * doc/posix-functions/mbsinit.texi: Document the new module.
19245
19246 2008-12-16  Bruno Haible  <bruno@clisp.org>
19247
19248         * lib/unistd.in.h: Add comment.
19249         * tests/test-environ.c: Don't include <stdlib.h>.
19250
19251 2008-12-16  Bruno Haible  <bruno@clisp.org>
19252
19253         * lib/parse-duration.h (parse_duration): Document return value
19254         convention.
19255         * lib/parse-duration.c: Include specification header first. Add
19256         comments.
19257         (_): Remove macro.
19258         (parse_year_month_day, parse_hour_minute_second): Move side effects
19259         outside of strchr call.
19260         (parse_non_iso8601): Move side effects outside of isspace call.
19261         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
19262         call.
19263
19264 2008-12-16  Bruno Haible  <bruno@clisp.org>
19265
19266         * tests/test-parse-duration.sh: Produce no output when the test
19267         succeeds.
19268
19269 2008-12-16  Bruno Haible  <bruno@clisp.org>
19270
19271         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
19272         expressions.
19273
19274 2008-12-15  Bruno Haible  <bruno@clisp.org>
19275
19276         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
19277         * doc/glibc-functions/flistxattr.texi: Likewise.
19278         * doc/glibc-functions/fopencookie.texi: Likewise.
19279         * doc/glibc-functions/fremovexattr.texi: Likewise.
19280         * doc/glibc-functions/fsetxattr.texi: Likewise.
19281         * doc/glibc-functions/getxattr.texi: Likewise.
19282         * doc/glibc-functions/lgetxattr.texi: Likewise.
19283         * doc/glibc-functions/listxattr.texi: Likewise.
19284         * doc/glibc-functions/llistxattr.texi: Likewise.
19285         * doc/glibc-functions/lremovexattr.texi: Likewise.
19286         * doc/glibc-functions/lsetxattr.texi: Likewise.
19287         * doc/glibc-functions/removexattr.texi: Likewise.
19288         * doc/glibc-functions/setxattr.texi: Likewise.
19289         * doc/posix-functions/open_memstream.texi: Likewise.
19290
19291 2008-12-15  Eric Blake  <ebb9@byu.net>
19292
19293         Update doc for cygwin 1.7.
19294         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
19295         functions.
19296         * doc/posix-functions/fchmodat.texi: Likewise.
19297         * doc/posix-functions/fchownat.texi: Likewise.
19298         * doc/posix-functions/fdopendir.texi: Likewise.
19299         * doc/posix-functions/fmemopen.texi: Likewise.
19300         * doc/posix-functions/freeaddrinfo.texi: Likewise.
19301         * doc/posix-functions/fstatat.texi: Likewise.
19302         * doc/posix-functions/futimens.texi: Likewise.
19303         * doc/posix-functions/gai_strerror.texi: Likewise.
19304         * doc/posix-functions/getaddrinfo.texi: Likewise.
19305         * doc/posix-functions/getnameinfo.texi: Likewise.
19306         * doc/posix-functions/if_freenameindex.texi: Likewise.
19307         * doc/posix-functions/if_indextoname.texi: Likewise.
19308         * doc/posix-functions/if_nameindex.texi: Likewise.
19309         * doc/posix-functions/if_nametoindex.texi: Likewise.
19310         * doc/posix-functions/insque.texi: Likewise.
19311         * doc/posix-functions/linkat.texi: Likewise.
19312         * doc/posix-functions/llrint.texi: Likewise.
19313         * doc/posix-functions/llrintf.texi: Likewise.
19314         * doc/posix-functions/llrintl.texi: Likewise.
19315         * doc/posix-functions/lockf.texi: Likewise.
19316         * doc/posix-functions/lrintl.texi: Likewise.
19317         * doc/posix-functions/mkdirat.texi: Likewise.
19318         * doc/posix-functions/mkfifoat.texi: Likewise.
19319         * doc/posix-functions/mknodat.texi: Likewise.
19320         * doc/posix-functions/mq_close.texi: Likewise.
19321         * doc/posix-functions/mq_getattr.texi: Likewise.
19322         * doc/posix-functions/mq_notify.texi: Likewise.
19323         * doc/posix-functions/mq_open.texi: Likewise.
19324         * doc/posix-functions/mq_receive.texi: Likewise.
19325         * doc/posix-functions/mq_send.texi: Likewise.
19326         * doc/posix-functions/mq_setattr.texi: Likewise.
19327         * doc/posix-functions/mq_timedreceive.texi: Likewise.
19328         * doc/posix-functions/mq_timedsend.texi: Likewise.
19329         * doc/posix-functions/mq_unlink.texi: Likewise.
19330         * doc/posix-functions/open_memstream.texi: Likewise.
19331         * doc/posix-functions/openat.texi: Likewise.
19332         * doc/posix-functions/posix_fadvise.texi: Likewise.
19333         * doc/posix-functions/posix_fallocate.texi: Likewise.
19334         * doc/posix-functions/posix_madvise.texi: Likewise.
19335         * doc/posix-functions/posix_memalign.texi: Likewise.
19336         * doc/posix-functions/posix_openpt.texi: Likewise.
19337         * doc/posix-functions/readlinkat.texi: Likewise.
19338         * doc/posix-functions/remque.texi: Likewise.
19339         * doc/posix-functions/renameat.texi: Likewise.
19340         * doc/posix-functions/rintl.texi: Likewise.
19341         * doc/posix-functions/sem_unlink.texi: Likewise.
19342         * doc/posix-functions/shm_open.texi: Likewise.
19343         * doc/posix-functions/shm_unlink.texi: Likewise.
19344         * doc/posix-functions/signgam.texi: Likewise.
19345         * doc/posix-functions/sigset.texi: Likewise.
19346         * doc/posix-functions/stpcpy.texi: Likewise.
19347         * doc/posix-functions/stpncpy.texi: Likewise.
19348         * doc/posix-functions/strerror.texi: Likewise.
19349         * doc/posix-functions/strtod.texi: Likewise.
19350         * doc/posix-functions/symlinkat.texi: Likewise.
19351         * doc/posix-functions/unlinkat.texi: Likewise.
19352         * doc/posix-functions/utimensat.texi: Likewise.
19353         * doc/glibc-functions/bindresvport.texi: Likewise.
19354         * doc/glibc-functions/dn_expand.texi: Likewise.
19355         * doc/glibc-functions/exp10.texi: Likewise.
19356         * doc/glibc-functions/exp10f.texi: Likewise.
19357         * doc/glibc-functions/fgetxattr.texi: Likewise.
19358         * doc/glibc-functions/flistxattr.texi: Likewise.
19359         * doc/glibc-functions/fopencookie.texi: Likewise.
19360         * doc/glibc-functions/freeifaddrs.texi: Likewise.
19361         * doc/glibc-functions/fremovexattr.texi: Likewise.
19362         * doc/glibc-functions/fsetxattr.texi: Likewise.
19363         * doc/glibc-functions/getifaddrs.texi: Likewise.
19364         * doc/glibc-functions/getxattr.texi: Likewise.
19365         * doc/glibc-functions/lgetxattr.texi: Likewise.
19366         * doc/glibc-functions/listxattr.texi: Likewise.
19367         * doc/glibc-functions/llistxattr.texi: Likewise.
19368         * doc/glibc-functions/lremovexattr.texi: Likewise.
19369         * doc/glibc-functions/lsetxattr.texi: Likewise.
19370         * doc/glibc-functions/pow10.texi: Likewise.
19371         * doc/glibc-functions/pow10f.texi: Likewise.
19372         * doc/glibc-functions/rcmd_af.texi: Likewise.
19373         * doc/glibc-functions/removexattr.texi: Likewise.
19374         * doc/glibc-functions/res_init.texi: Likewise.
19375         * doc/glibc-functions/res_mkquery.texi: Likewise.
19376         * doc/glibc-functions/res_query.texi: Likewise.
19377         * doc/glibc-functions/res_querydomain.texi: Likewise.
19378         * doc/glibc-functions/res_send.texi: Likewise.
19379         * doc/glibc-functions/rresvport_af.texi: Likewise.
19380         * doc/glibc-functions/setxattr.texi: Likewise.
19381         * doc/glibc-functions/strcasestr.texi: Likewise.
19382
19383 2008-12-15  Bruno Haible  <bruno@clisp.org>
19384
19385         Fix compilation error on OSF/1 4.0.
19386         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
19387         <sys/time.h>, simply delegate to the system header.
19388         Reported by Daniel Richard G. <oss@teragram.com>.
19389
19390 2008-12-15  Bruno Haible  <bruno@clisp.org>
19391
19392         * doc/posix-functions/openat.texi: Mention the 'openat' module.
19393         * doc/posix-functions/fchmodat.texi: Likewise.
19394         * doc/posix-functions/fchownat.texi: Likewise.
19395         * doc/posix-functions/fdopendir.texi: Likewise.
19396         * doc/posix-functions/fstatat.texi: Likewise.
19397         * doc/posix-functions/mkdirat.texi: Likewise.
19398         * doc/posix-functions/unlinkat.texi: Likewise.
19399
19400 2008-12-14  Bruno Haible  <bruno@clisp.org>
19401
19402         Update doc for POSIX:2008.
19403         * doc/posix-functions/faccessat.texi: New file.
19404         * doc/posix-functions/fchmodat.texi: New file.
19405         * doc/posix-functions/fchownat.texi: New file.
19406         * doc/posix-functions/fdopendir.texi: New file.
19407         * doc/posix-functions/fstatat.texi: New file.
19408         * doc/posix-functions/futimens.texi: New file.
19409         * doc/posix-functions/linkat.texi: New file.
19410         * doc/posix-functions/mkdirat.texi: New file.
19411         * doc/posix-functions/mkfifoat.texi: New file.
19412         * doc/posix-functions/mknodat.texi: New file.
19413         * doc/posix-functions/open_wmemstream.texi: New file.
19414         * doc/posix-functions/openat.texi: New file.
19415         * doc/posix-functions/psiginfo.texi: New file.
19416         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
19417         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
19418         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
19419         * doc/posix-functions/readlinkat.texi: New file.
19420         * doc/posix-functions/renameat.texi: New file.
19421         * doc/posix-functions/strerror_l.texi: New file.
19422         * doc/posix-functions/symlinkat.texi: New file.
19423         * doc/posix-functions/unlinkat.texi: New file.
19424         * doc/posix-functions/utimensat.texi: New file.
19425         * doc/gnulib.texi (Function Substitutes): Add these subsections.
19426
19427 2008-12-14  Bruno Haible  <bruno@clisp.org>
19428
19429         Update doc for POSIX:2008.
19430         * doc/posix-functions/alphasort.texi: Renamed from
19431         doc/glibc-functions/alphasort.texi.
19432         * doc/posix-functions/dirfd.texi: Renamed from
19433         doc/glibc-functions/dirfd.texi.
19434         * doc/posix-functions/dprintf.texi: Renamed from
19435         doc/glibc-functions/dprintf.texi.
19436         * doc/posix-functions/duplocale.texi: Renamed from
19437         doc/glibc-functions/duplocale.texi.
19438         * doc/posix-functions/fexecve.texi: Renamed from
19439         doc/glibc-functions/fexecve.texi.
19440         * doc/posix-functions/fmemopen.texi: Renamed from
19441         doc/glibc-functions/fmemopen.texi.
19442         * doc/posix-functions/freelocale.texi: Renamed from
19443         doc/glibc-functions/freelocale.texi.
19444         * doc/posix-functions/getdate_err.texi: Renamed from
19445         doc/glibc-functions/getdate_err.texi.
19446         * doc/posix-functions/isalnum_l.texi: Renamed from
19447         doc/glibc-functions/isalnum_l.texi.
19448         * doc/posix-functions/isalpha_l.texi: Renamed from
19449         doc/glibc-functions/isalpha_l.texi.
19450         * doc/posix-functions/isblank_l.texi: Renamed from
19451         doc/glibc-functions/isblank_l.texi.
19452         * doc/posix-functions/iscntrl_l.texi: Renamed from
19453         doc/glibc-functions/iscntrl_l.texi.
19454         * doc/posix-functions/isdigit_l.texi: Renamed from
19455         doc/glibc-functions/isdigit_l.texi.
19456         * doc/posix-functions/isgraph_l.texi: Renamed from
19457         doc/glibc-functions/isgraph_l.texi.
19458         * doc/posix-functions/islower_l.texi: Renamed from
19459         doc/glibc-functions/islower_l.texi.
19460         * doc/posix-functions/isprint_l.texi: Renamed from
19461         doc/glibc-functions/isprint_l.texi.
19462         * doc/posix-functions/ispunct_l.texi: Renamed from
19463         doc/glibc-functions/ispunct_l.texi.
19464         * doc/posix-functions/isspace_l.texi: Renamed from
19465         doc/glibc-functions/isspace_l.texi.
19466         * doc/posix-functions/isupper_l.texi: Renamed from
19467         doc/glibc-functions/isupper_l.texi.
19468         * doc/posix-functions/iswalnum_l.texi: Renamed from
19469         doc/glibc-functions/iswalnum_l.texi.
19470         * doc/posix-functions/iswalpha_l.texi: Renamed from
19471         doc/glibc-functions/iswalpha_l.texi.
19472         * doc/posix-functions/iswblank_l.texi: Renamed from
19473         doc/glibc-functions/iswblank_l.texi.
19474         * doc/posix-functions/iswcntrl_l.texi: Renamed from
19475         doc/glibc-functions/iswcntrl_l.texi.
19476         * doc/posix-functions/iswctype_l.texi: Renamed from
19477         doc/glibc-functions/iswctype_l.texi.
19478         * doc/posix-functions/iswdigit_l.texi: Renamed from
19479         doc/glibc-functions/iswdigit_l.texi.
19480         * doc/posix-functions/iswgraph_l.texi: Renamed from
19481         doc/glibc-functions/iswgraph_l.texi.
19482         * doc/posix-functions/iswlower_l.texi: Renamed from
19483         doc/glibc-functions/iswlower_l.texi.
19484         * doc/posix-functions/iswprint_l.texi: Renamed from
19485         doc/glibc-functions/iswprint_l.texi.
19486         * doc/posix-functions/iswpunct_l.texi: Renamed from
19487         doc/glibc-functions/iswpunct_l.texi.
19488         * doc/posix-functions/iswspace_l.texi: Renamed from
19489         doc/glibc-functions/iswspace_l.texi.
19490         * doc/posix-functions/iswupper_l.texi: Renamed from
19491         doc/glibc-functions/iswupper_l.texi.
19492         * doc/posix-functions/iswxdigit_l.texi: Renamed from
19493         doc/glibc-functions/iswxdigit_l.texi.
19494         * doc/posix-functions/isxdigit_l.texi: Renamed from
19495         doc/glibc-functions/isxdigit_l.texi.
19496         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
19497         doc/glibc-functions/mbsnrtowcs.texi.
19498         * doc/posix-functions/mkdtemp.texi: Renamed from
19499         doc/glibc-functions/mkdtemp.texi.
19500         * doc/posix-functions/newlocale.texi: Renamed from
19501         doc/glibc-functions/newlocale.texi.
19502         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
19503         doc/glibc-functions/nl_langinfo_l.texi.
19504         * doc/posix-functions/open_memstream.texi: Renamed from
19505         doc/glibc-functions/open_memstream.texi.
19506         * doc/posix-functions/opterr.texi: Renamed from
19507         doc/glibc-functions/opterr.texi.
19508         * doc/posix-functions/optind.texi: Renamed from
19509         doc/glibc-functions/optind.texi.
19510         * doc/posix-functions/optopt.texi: Renamed from
19511         doc/glibc-functions/optopt.texi.
19512         * doc/posix-functions/psignal.texi: Renamed from
19513         doc/glibc-functions/psignal.texi.
19514         * doc/posix-functions/scandir.texi: Renamed from
19515         doc/glibc-functions/scandir.texi.
19516         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
19517         doc/glibc-functions/sched_get_priority_min.texi.
19518         * doc/posix-functions/signgam.texi: Renamed from
19519         doc/glibc-functions/signgam.texi.
19520         * doc/posix-functions/stpcpy.texi: Renamed from
19521         doc/glibc-functions/stpcpy.texi.
19522         * doc/posix-functions/stpncpy.texi: Renamed from
19523         doc/glibc-functions/stpncpy.texi.
19524         * doc/posix-functions/strcasecmp_l.texi: Renamed from
19525         doc/glibc-functions/strcasecmp_l.texi.
19526         * doc/posix-functions/strcoll_l.texi: Renamed from
19527         doc/glibc-functions/strcoll_l.texi.
19528         * doc/posix-functions/strfmon_l.texi: Renamed from
19529         doc/glibc-functions/strfmon_l.texi.
19530         * doc/posix-functions/strftime_l.texi: Renamed from
19531         doc/glibc-functions/strftime_l.texi.
19532         * doc/posix-functions/strncasecmp_l.texi: Renamed from
19533         doc/glibc-functions/strncasecmp_l.texi.
19534         * doc/posix-functions/strndup.texi: Renamed from
19535         doc/glibc-functions/strndup.texi.
19536         * doc/posix-functions/strnlen.texi: Renamed from
19537         doc/glibc-functions/strnlen.texi.
19538         * doc/posix-functions/strsignal.texi: Renamed from
19539         doc/glibc-functions/strsignal.texi.
19540         * doc/posix-functions/strxfrm_l.texi: Renamed from
19541         doc/glibc-functions/strxfrm_l.texi.
19542         * doc/posix-functions/timer_gettime.texi: Renamed from
19543         doc/glibc-functions/timer_gettime.texi.
19544         * doc/posix-functions/tolower_l.texi: Renamed from
19545         doc/glibc-functions/tolower_l.texi.
19546         * doc/posix-functions/toupper_l.texi: Renamed from
19547         doc/glibc-functions/toupper_l.texi.
19548         * doc/posix-functions/towctrans_l.texi: Renamed from
19549         doc/glibc-functions/towctrans_l.texi.
19550         * doc/posix-functions/towlower_l.texi: Renamed from
19551         doc/glibc-functions/towlower_l.texi.
19552         * doc/posix-functions/towupper_l.texi: Renamed from
19553         doc/glibc-functions/towupper_l.texi.
19554         * doc/posix-functions/uselocale.texi: Renamed from
19555         doc/glibc-functions/uselocale.texi.
19556         * doc/posix-functions/vdprintf.texi: Renamed from
19557         doc/glibc-functions/vdprintf.texi.
19558         * doc/posix-functions/wcpcpy.texi:
19559         Renamed from doc/glibc-functions/wcpcpy.texi.
19560         * doc/posix-functions/wcpncpy.texi: Renamed from
19561         doc/glibc-functions/wcpncpy.texi.
19562         * doc/posix-functions/wcscasecmp.texi: Renamed from
19563         doc/glibc-functions/wcscasecmp.texi.
19564         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
19565         doc/glibc-functions/wcscasecmp_l.texi.
19566         * doc/posix-functions/wcscoll_l.texi: Renamed from
19567         doc/glibc-functions/wcscoll_l.texi.
19568         * doc/posix-functions/wcsdup.texi: Renamed from
19569         doc/glibc-functions/wcsdup.texi.
19570         * doc/posix-functions/wcsncasecmp.texi: Renamed from
19571         doc/glibc-functions/wcsncasecmp.texi.
19572         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
19573         doc/glibc-functions/wcsncasecmp_l.texi.
19574         * doc/posix-functions/wcsnlen.texi: Renamed from
19575         doc/glibc-functions/wcsnlen.texi.
19576         * doc/posix-functions/wcsnrtombs.texi: Renamed from
19577         doc/glibc-functions/wcsnrtombs.texi.
19578         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
19579         doc/glibc-functions/wcsxfrm_l.texi.
19580         * doc/posix-functions/wctrans_l.texi: Renamed from
19581         doc/glibc-functions/wctrans_l.texi.
19582         * doc/posix-functions/wctype_l.texi: Renamed from
19583         doc/glibc-functions/wctype_l.texi.
19584         * doc/gnulib.texi (Function Substitutes): Add these subsections.
19585         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
19586         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
19587         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
19588         these subsections.
19589         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
19590         Remove sections.
19591
19592 2008-12-14  Bruno Haible  <bruno@clisp.org>
19593
19594         Update doc for POSIX:2008.
19595         * doc/posix-functions/*.texi: Update URL of POSIX specification.
19596
19597 2008-12-14  Bruno Haible  <bruno@clisp.org>
19598
19599         Update doc for POSIX:2008.
19600         * doc/pastposix-functions/bcmp.texi: Renamed from
19601         doc/posix-functions/bcmp.texi.
19602         * doc/pastposix-functions/bcopy.texi: Renamed from
19603         doc/posix-functions/bcopy.texi.
19604         * doc/pastposix-functions/bsd_signal.texi: Renamed from
19605         doc/posix-functions/bsd_signal.texi.
19606         * doc/pastposix-functions/bzero.texi: Renamed from
19607         doc/posix-functions/bzero.texi.
19608         * doc/pastposix-functions/ecvt.texi: Renamed from
19609         doc/posix-functions/ecvt.texi.
19610         * doc/pastposix-functions/fcvt.texi: Renamed from
19611         doc/posix-functions/fcvt.texi.
19612         * doc/pastposix-functions/ftime.texi: Renamed from
19613         doc/posix-functions/ftime.texi.
19614         * doc/pastposix-functions/gcvt.texi: Renamed from
19615         doc/posix-functions/gcvt.texi.
19616         * doc/pastposix-functions/getcontext.texi: Renamed from
19617         doc/posix-functions/getcontext.texi.
19618         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
19619         doc/posix-functions/gethostbyaddr.texi.
19620         * doc/pastposix-functions/gethostbyname.texi: Renamed from
19621         doc/posix-functions/gethostbyname.texi.
19622         * doc/pastposix-functions/getwd.texi: Renamed from
19623         doc/posix-functions/getwd.texi.
19624         * doc/pastposix-functions/h_errno.texi: Renamed from
19625         doc/posix-functions/h_errno.texi.
19626         * doc/pastposix-functions/index.texi: Renamed from
19627         doc/posix-functions/index.texi.
19628         * doc/pastposix-functions/makecontext.texi: Renamed from
19629         doc/posix-functions/makecontext.texi.
19630         * doc/pastposix-functions/mktemp.texi: Renamed from
19631         doc/posix-functions/mktemp.texi.
19632         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
19633         doc/posix-functions/pthread_attr_getstackaddr.texi.
19634         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
19635         doc/posix-functions/pthread_attr_setstackaddr.texi.
19636         * doc/pastposix-functions/rindex.texi: Renamed from
19637         doc/posix-functions/rindex.texi.
19638         * doc/pastposix-functions/scalb.texi: Renamed from
19639         doc/posix-functions/scalb.texi.
19640         * doc/pastposix-functions/setcontext.texi: Renamed from
19641         doc/posix-functions/setcontext.texi.
19642         * doc/pastposix-functions/swapcontext.texi: Renamed from
19643         doc/posix-functions/swapcontext.texi.
19644         * doc/pastposix-functions/ualarm.texi: Renamed from
19645         doc/posix-functions/ualarm.texi.
19646         * doc/pastposix-functions/usleep.texi: Renamed from
19647         doc/posix-functions/usleep.texi.
19648         * doc/pastposix-functions/vfork.texi: Renamed from
19649         doc/posix-functions/vfork.texi.
19650         * doc/pastposix-functions/wcswcs.texi: Renamed from
19651         doc/posix-functions/wcswcs.texi.
19652         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
19653         (Function Substitutes): Update.
19654
19655 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19656
19657         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
19658         m4/strerror.m4.
19659
19660 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19661             Bruno Haible  <bruno@clisp.org>
19662
19663         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
19664
19665 2008-12-13  Bruno Haible  <bruno@clisp.org>
19666
19667         * modules/strtoull (Depends-on): Remove unistd.
19668
19669 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19670
19671         * modules/strtoull (Depends-on): Add stdlib.
19672
19673 2008-12-11  Simon Josefsson  <simon@josefsson.org>
19674
19675         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
19676
19677 2008-12-10  Jim Meyering  <meyering@redhat.com>
19678
19679         gl_ASSERT: don't say assertions are disabled when they're not
19680         * m4/assert.m4 (gl_ASSERT): Do not make configure report
19681         "checking whether to enable assertions... no", when they are in
19682         fact enabled.  This is solely a bug in the output of configure.
19683         In spite of saying "no", NDEBUG was not defined in that case.
19684         Also, as noted by Eric Blake, leave assertions enabled upon
19685         --enable-assert=INVALID.
19686
19687 2008-12-10  Bruno Haible  <bruno@clisp.org>
19688
19689         Change MODULES.html to refer to POSIX:2008 where possible.
19690         * MODULES.html.sh (POSIX2008_URL): New variable.
19691         (posix_headers): Remove sys/timeb, ucontext.
19692         (posix2001_headers): New variable.
19693         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
19694         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
19695         index, makecontext, mktemp, pthread_attr_getstackaddr,
19696         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
19697         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
19698         (posix2001_functions): New variable.
19699         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
19700         otherwise.
19701
19702 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19703
19704         add missing include to parse-duration.c
19705         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
19706         * modules/parse-duration (Depends-on): Add xalloc.
19707
19708         fix sed script reading maint.mk
19709         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
19710         (syntax-check-rules): Use it.
19711
19712 2008-12-09  Bruno Haible  <bruno@clisp.org>
19713
19714         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
19715         MacOS X 10.4/PowerPC.
19716         Reported by Simon Josefsson.
19717
19718 2008-12-08  Jim Meyering  <meyering@redhat.com>
19719
19720         work around mingw's lack of some S_IF definitions
19721         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
19722         Reported by Simon Josefsson.
19723
19724 2008-12-08  Bruno Haible  <bruno@clisp.org>
19725
19726         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
19727         applied to variables. Needed on MacOS X 10.4/PowerPC.
19728         Reported by Simon Josefsson.
19729
19730 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
19731         and Eric Blake  <ebb9@byu.net>
19732
19733         assert: honor --enable-assert
19734         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
19735         order to honor --enable-assert, rather than treating it as a
19736         synonym for --disable-assert.
19737
19738 2008-12-08  Jim Meyering  <meyering@redhat.com>
19739
19740         * lib/posixtm.c: Remove now-useless declaration of mktime.
19741
19742         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
19743
19744 2008-12-07  Bruno Haible  <bruno@clisp.org>
19745
19746         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
19747         test_once): Mark functions as static.
19748         * tests/test-tls.c (test_tls): Likewise.
19749
19750 2008-12-07  Bruno Haible  <bruno@clisp.org>
19751
19752         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
19753         iconv_register_autodetect.
19754
19755 2008-12-07  Jim Meyering  <meyering@redhat.com>
19756
19757         posixtm.c: avoid a warning
19758         * lib/posixtm.c (posixtime): Don't initialize tm0.
19759         It's no longer needed to placate gcc4's -Wuninitialized,
19760         and the attempt to placate would elicit a new warning.
19761
19762         unicodeio.c: mark unused parameters
19763         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
19764         (fallback_failure_callback): Likewise.
19765
19766 2008-12-07  Bruno Haible  <bruno@clisp.org>
19767
19768         * gnulib-tool (func_create_testdir): When building the tests
19769         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
19770         Reported by Simon Josefsson.
19771
19772 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19773
19774         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
19775
19776 2008-12-06  Bruno Haible  <bruno@clisp.org>
19777
19778         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
19779         Suggested by Eric Blake.
19780
19781 2008-12-06  Bruno Haible  <bruno@clisp.org>
19782
19783         Fix a c-stack test failure on MacOS X.
19784         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
19785         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
19786         handler for SIGBUS as well.
19787         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
19788         install a signal handler for SIGBUS as well.
19789         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
19790
19791 2008-12-06  Bruno Haible  <bruno@clisp.org>
19792
19793         Advocacy documentation.
19794         * doc/gnulib-intro.texi (Benefits): New section.
19795         * doc/gnulib.texi: Update.
19796
19797 2008-12-06  Bruno Haible  <bruno@clisp.org>
19798
19799         Document the 'manywarnings' module.
19800         * doc/manywarnings.texi: New file.
19801         * doc/gnulib.texi: Include it.
19802
19803 2008-12-05  Eric Blake  <ebb9@byu.net>
19804
19805         tests: silence some gcc warnings
19806         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
19807         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
19808         type mismatches.
19809
19810 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19811             Bruno Haible  <bruno@clisp.org>
19812
19813         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
19814
19815 2008-11-29  Jim Meyering  <meyering@redhat.com>
19816
19817         unicodeio.c: mark unused parameters
19818         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
19819         (fallback_failure_callback): Likewise.
19820
19821         fts: fix a thinko
19822         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
19823         (set_stat_type): Return S_IF*-valued "type" directly.
19824         Prompted by James Youngman's spotting a related bug.
19825         Confirmed by further testing through find.
19826
19827         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
19828         * lib/fts.c (D_TYPE): Define.
19829         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
19830         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
19831         (s_ifmt_shift_bits): New function.
19832         (set_stat_type): New function.
19833         (fts_build): When not calling fts_stat, call set_stat_type
19834         to propagate dirent.d_type info to fts_read caller.
19835         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
19836         fts_statp->st_mode type information may be valid.
19837
19838 2008-11-28  Simon Josefsson  <simon@josefsson.org>
19839
19840         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
19841         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
19842         <sds@gnu.org>.
19843
19844 2008-11-20  Bruno Haible  <bruno@clisp.org>
19845
19846         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
19847         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
19848         INCLUDE_NEXT.
19849         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
19850         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
19851         * modules/math (Makefile.am): Substitute
19852         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
19853         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19854
19855 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
19856             Bruno Haible  <bruno@clisp.org>
19857
19858         * lib/stdint.in.h: Define all type macros so that their expansion is
19859         a single typedef'ed token. Fixes a compilation failure in Boost which
19860         does "using ::int8_t;".
19861
19862 2008-11-18  Simon Josefsson  <simon@josefsson.org>
19863
19864         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
19865         gl_MANYWARN_ALL_GCC.
19866         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
19867         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
19868         * modules/manywarnings: New file.
19869         * MODULES.html.sh: Mention manywarnings module.
19870
19871 2008-11-18  Bruno Haible  <bruno@clisp.org>
19872
19873         * doc/gnulib-tool.texi (Unit tests): New section.
19874
19875 2008-11-18  Simon Josefsson  <simon@josefsson.org>
19876
19877         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
19878         paths like 'lib/po/foo.po'.
19879
19880 2008-11-17  Simon Josefsson  <simon@josefsson.org>
19881
19882         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
19883         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
19884
19885 2008-11-17  Simon Josefsson  <simon@josefsson.org>
19886
19887         * m4/warnings.m4: Use CPPFLAGS to really check whether the
19888         parameter works.
19889
19890 2008-11-17  Simon Josefsson  <simon@josefsson.org>
19891
19892         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
19893
19894 2008-11-17  Bruce Korb  <bkorb@gnu.org>
19895
19896         * modules/parse-duration-tests: New file.
19897         * tests/test-parse-duration.sh: New file.
19898         * tests/test-parse-duration.c: New file.
19899
19900         New module 'parse-duration'.
19901         * lib/parse-duration.h: New file.
19902         * lib/parse-duration.c: New file.
19903         * modules/parse-duration: New file.
19904
19905 2008-11-17  Bruno Haible  <bruno@clisp.org>
19906
19907         * tests/test-select-out.sh: Comment out the first pipe test.
19908         Reported by Simon Josefsson.
19909
19910 2008-11-17  Bruno Haible  <bruno@clisp.org>
19911
19912         * modules/getaddrinfo (Depends-on): Add servent, hostent.
19913         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
19914         gl_HOSTENT.
19915
19916 2008-11-17  Bruno Haible  <bruno@clisp.org>
19917
19918         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
19919         -lnetwork and -lnet. Needed for Haiku and BeOS.
19920
19921 2008-11-16  Bruno Haible  <bruno@clisp.org>
19922
19923         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
19924
19925 2008-11-16  Bruno Haible  <bruno@clisp.org>
19926
19927         Avoid test failure on Haiku.
19928         * tests/test-fsync.c: Include <errno.h>.
19929         (main): Don't require that fsync (0) fails.
19930
19931 2008-11-15  Bruno Haible  <bruno@clisp.org>
19932
19933         New module 'hostent'.
19934         * modules/hostent: New file.
19935         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
19936
19937 2008-11-15  Bruno Haible  <bruno@clisp.org>
19938
19939         New module 'servent'.
19940         * modules/servent: New file.
19941         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
19942
19943 2008-11-15  Bruno Haible  <bruno@clisp.org>
19944
19945         Avoid generating same test program with two different rules.
19946         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
19947         test-frexp to test-frexp-nolibm.
19948         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
19949         test-frexpl to test-frexpl-nolibm.
19950
19951 2008-11-15  Bruno Haible  <bruno@clisp.org>
19952
19953         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
19954         $(FREXPL_LIBM).
19955
19956 2008-11-15  Bruno Haible  <bruno@clisp.org>
19957
19958         * lib/netdb.in.h: Activate the definitions also when the system's
19959         <netdb.h> has 'struct addrinfo'.
19960         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
19961         EAI_OVERFLOW or AI_NUMERICSERV.
19962         * doc/posix-headers/netdb.texi: Document the problem.
19963
19964 2008-11-15  Bruno Haible  <bruno@clisp.org>
19965
19966         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
19967
19968         Make the 'sched' module work on platforms where <sched.h> exists but
19969         is incomplete (such as Haiku).
19970         * lib/sched.in.h; Include the system's <sched.h> if it exists.
19971         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
19972         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
19973         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
19974         HAVE_STRUCT_SCHED_PARAM.
19975         * modules/sched (Depends-on): Add include_next.
19976         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
19977         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
19978         * doc/posix-headers/sched.texi: Document the issue.
19979
19980 2008-11-13  Jim Meyering  <meyering@redhat.com>
19981
19982         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
19983         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
19984         test would fail due to the difference in the Report bugs to ...
19985         line.  The expected address is empty, "<>", while the actual
19986         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
19987
19988 2008-11-12  Bruno Haible  <bruno@clisp.org>
19989
19990         lstat: don't compile lstat.c on systems lacking lstat
19991         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
19992         which don't have lstat; this is handled by lib/sys_stat.in.h already.
19993         Reported by Daniel P. Berrange via Jim Meyering.
19994
19995 2008-11-12  Jim Meyering  <meyering@redhat.com>
19996
19997         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
19998
19999 2008-11-12  Simon Josefsson  <simon@josefsson.org>
20000
20001         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
20002         instead.
20003
20004 2008-11-12  Bruno Haible  <bruno@clisp.org>
20005
20006         * lib/unicodeio.c: Include unistr.h.
20007         (utf8_wctomb): Remove function.
20008         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
20009
20010 2008-11-12  Simon Josefsson  <simon@josefsson.org>
20011
20012         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
20013         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
20014         <bruno@clisp.org>.
20015         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
20016
20017 2008-11-12  Simon Josefsson  <simon@josefsson.org>
20018
20019         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
20020         * doc/gnulib.texi: Add section for warnings.
20021
20022 2008-11-11  Bruno Haible  <bruno@clisp.org>
20023
20024         * lib/sockets.h: Add a comment.
20025
20026 2008-11-11  Karl Berry  <karl@gnu.org>
20027
20028         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
20029
20030 2008-11-11  Eric Blake  <ebb9@byu.net>
20031
20032         fdl.texi: avoid git symlinks
20033         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
20034
20035 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
20036
20037         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
20038
20039 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
20040
20041         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
20042         (gl_WARN_ADD): Substitute $2 if literal.
20043
20044 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
20045
20046         * m4/warning.m4: Remove.
20047
20048 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
20049
20050         * m4/warnings.m4: Almost complete rewrite. :-)
20051
20052 2008-11-10  Simon Josefsson  <simon@josefsson.org>
20053
20054         * modules/warnings: New module.
20055         * m4/warnings.m4: New file.
20056         * MODULES.html.sh: Mention warnings module.
20057         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
20058         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20059
20060 2008-11-10  Eric Blake  <ebb9@byu.net>
20061
20062         fdl.texi: make a symlink to the latest version
20063         * doc/standards.texi: Revert today's earlier change.
20064         * doc/fdl-1.2.texi: Rename from old fdl.texi...
20065         * doc/fdl.texi: ...and replace this with a symlink to the newer
20066         fdl-1.3.texi.
20067
20068 2008-11-10  Bruno Haible  <bruno@clisp.org>
20069
20070         * tests/test-select-fd.c (main): Accept the result file name as fourth
20071         argument.
20072         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
20073         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
20074
20075 2008-11-10  Bruno Haible  <bruno@clisp.org>
20076
20077         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
20078         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
20079         as autoconf-substituted macros.
20080         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
20081         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
20082         gl_NETDB_H_DEFAULTS. Set these variables.
20083         * modules/netdb (Makefile.am): Substitute these variables.
20084
20085 2008-11-10  Eric Blake  <ebb9@byu.net>
20086
20087         standards.texi: include correct file for FDL 1.3
20088         * doc/standards.texi (GNU Free Documentation License): Change
20089         include file to pull in FDL 1.3, not 1.2.
20090
20091         fdl.texi: revert accidental change to license
20092         * doc/fdl.texi: This is FDL 1.2, not 1.3.
20093
20094 2008-11-10  Bruno Haible  <bruno@clisp.org>
20095
20096         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
20097         cross-compiling guesses also when the native compile gives no result.
20098
20099 2008-11-10  Bruno Haible  <bruno@clisp.org>
20100
20101         * lib/spawni.c (__spawni): Force variable into the stack.
20102
20103 2008-11-10  Bruno Haible  <bruno@clisp.org>
20104
20105         Add support for Haiku.
20106         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
20107         glibc and BeOS, but also on Haiku.
20108         * lib/fpurge.c (fpurge): Likewise.
20109         * lib/freadable.c (freadable): Likewise.
20110         * lib/freadahead.c (freadahead): Likewise.
20111         * lib/freading.c (freading): Likewise.
20112         * lib/freadptr.c (freadptr): Likewise.
20113         * lib/freadseek.c (freadptrinc): Likewise.
20114         * lib/fseeko.c (rpl_fseeko): Likewise.
20115         * lib/fseterr.c (fseterr): Likewise.
20116         * lib/fwritable.c (fwritable): Likewise.
20117         * lib/fwriting.c (fwriting): Likewise.
20118         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
20119
20120 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
20121
20122         * lib/config.charset: Treat Haiku like BeOS.
20123
20124 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
20125
20126         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
20127         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
20128
20129 2008-11-08  Bruno Haible  <bruno@clisp.org>
20130
20131         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
20132         AC_CACHE_CHECK.
20133
20134 2008-11-08  Bruno Haible  <bruno@clisp.org>
20135
20136         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
20137
20138 2008-11-08  Bruno Haible  <bruno@clisp.org>
20139
20140         * tests/test-select-fd.c: New file.
20141         * tests/test-select-in.sh: New file.
20142         * tests/test-select-out.sh: New file.
20143         * tests/test-select-stdin.c: New file.
20144         * modules/select-tests (Files): Add the new files.
20145         (Depends-on): Add gettimeofday.
20146         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
20147         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
20148         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
20149
20150 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
20151             Bruno Haible  <bruno@clisp.org>
20152
20153         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
20154
20155 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
20156
20157         * build-aux/pmccabe2html: Added support for C++ source files.
20158
20159 2008-11-05  Ben Pfaff  <blp@gnu.org>
20160
20161         Fix lib/close.c build on Windows.
20162         * modules/close (Files): Add lib/w32sock.h.
20163
20164 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
20165
20166         Accept Bison's NEWS format.
20167         * build-aux/announce-gen (print_news_deltas): Tweak
20168         $re_prefix.
20169
20170 2008-11-04  Bruno Haible  <bruno@clisp.org>
20171
20172         * modules/random_r (Maintainer): Add glibc.
20173
20174 2008-11-04  Simon Josefsson  <simon@josefsson.org>
20175
20176         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
20177         by karl@freefriends.org (Karl Berry).
20178         * doc/alloca.texi: Likewise.
20179         * doc/c-ctype.texi: Likewise.
20180         * doc/c-strcase.texi: Likewise.
20181         * doc/c-strcaseeq.texi: Likewise.
20182         * doc/c-strcasestr.texi: Likewise.
20183         * doc/c-strstr.texi: Likewise.
20184         * doc/c-strtod.texi: Likewise.
20185         * doc/c-strtold.texi: Likewise.
20186         * doc/ctime.texi: Likewise.
20187         * doc/error.texi: Likewise.
20188         * doc/fdl.texi: Likewise.
20189         * doc/gcd.texi: Likewise.
20190         * doc/getdate.texi: Likewise.
20191         * doc/gnulib-intro.texi: Likewise.
20192         * doc/gnulib-tool.texi: Likewise.
20193         * doc/gnulib.texi: Likewise.
20194         * doc/inet_ntoa.texi: Likewise.
20195         * doc/maintain.texi: Likewise.
20196         * doc/make-stds.texi: Likewise.
20197         * doc/quote.texi: Likewise.
20198         * doc/regexprops-generic.texi: Likewise.
20199         * doc/standards.texi: Likewise.
20200         * doc/verify.texi: Likewise.
20201         * doc/visibility.texi: Likewise.
20202         * doc/gnulib.texi (GNU Free Documentation License): Include
20203         fdl-1.3.texi instead of fdl.texi.
20204
20205 2008-11-04  Simon Josefsson  <simon@josefsson.org>
20206
20207         * doc/fdl-1.3.texi: New file, from
20208         <http://www.gnu.org/licenses/fdl-1.3.texi>.
20209         * modules/fdl-1.3: Add.
20210         * MODULES.html.sh: Add fdl-1.3.
20211
20212 2008-11-03  Bruno Haible  <bruno@clisp.org>
20213
20214         Make determination of absolute name of header file work with AIX xlc.
20215         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
20216         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
20217         preprocessing.
20218         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
20219         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
20220
20221 2008-11-03  Simon Josefsson  <simon@josefsson.org>
20222
20223         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
20224         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
20225         <ludo@gnu.org>.
20226
20227 2008-11-02  Bruno Haible  <bruno@clisp.org>
20228
20229         Mark 'strpbrk' obsolete.
20230         * modules/strpbrk (Status, Notice): New sections.
20231         * modules/strtok_r (Depends-on): Add strpbrk.
20232
20233 2008-11-02  Bruno Haible  <bruno@clisp.org>
20234
20235         Mark 'strdup' obsolete.
20236         * modules/strdup (Status, Notice): New sections.
20237         * modules/findprog (Depends-on): Add strdup.
20238         * modules/getaddrinfo (Depends-on): Likewise.
20239         * modules/localename (Depends-on): Likewise.
20240         * modules/relocatable-lib (Depends-on): Likewise.
20241         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
20242         * modules/relocatable-prog (Depends-on): Likewise.
20243         * modules/trim (Depends-on): Likewise.
20244         * modules/unictype/gen-ctype (Depends-on): Likewise.
20245         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
20246
20247 2008-11-02  Bruno Haible  <bruno@clisp.org>
20248
20249         Mark 'strcspn' obsolete.
20250         * modules/strcspn (Status, Notice): New sections.
20251
20252 2008-11-02  Bruno Haible  <bruno@clisp.org>
20253
20254         Mark 'rmdir' obsolete.
20255         * modules/rmdir (Status, Notice): New sections.
20256         * modules/clean-temp (Depends-on): Add rmdir.
20257         * modules/openat (Depends-on): Likewise.
20258
20259 2008-11-02  Bruno Haible  <bruno@clisp.org>
20260
20261         Mark 'raise' obsolete.
20262         * modules/raise (Status, Notice): New sections.
20263         (Include): Specify <signal.h>.
20264         * modules/stdio (Depends-on): Add raise.
20265         * modules/write (Depends-on): Likewise.
20266
20267 2008-11-02  Bruno Haible  <bruno@clisp.org>
20268
20269         Mark 'memset' obsolete.
20270         * modules/memset (Status, Notice): New sections.
20271
20272 2008-11-02  Bruno Haible  <bruno@clisp.org>
20273
20274         Mark 'memmove' obsolete.
20275         * modules/memmove (Status, Notice): New sections.
20276         * modules/argp (Depends-on): Add memmove.
20277         * modules/argz (Depends-on): Likewise.
20278         * modules/canonicalize (Depends-on): Likewise.
20279         * modules/canonicalize-lgpl (Depends-on): Likewise.
20280         * modules/fts (Depends-on): Likewise.
20281         * modules/getcwd (Depends-on): Likewise.
20282         * modules/human (Depends-on): Likewise.
20283         * modules/regex (Depends-on): Likewise.
20284         * modules/striconveh (Depends-on): Likewise.
20285         * modules/trim (Depends-on): Likewise.
20286         * modules/unistr/u8-move (Depends-on): Likewise.
20287         * modules/unistr/u16-move (Depends-on): Likewise.
20288         * modules/unistr/u32-move (Depends-on): Likewise.
20289
20290 2008-11-02  Bruno Haible  <bruno@clisp.org>
20291
20292         Mark 'memcpy' obsolete.
20293         * modules/memcpy (Status, Notice): New sections.
20294
20295 2008-11-02  Bruno Haible  <bruno@clisp.org>
20296
20297         Mark 'memcmp' obsolete.
20298         * modules/memcmp (Status, Notice): New sections.
20299         * modules/argmatch (Depends-on): Add memchr.
20300         * modules/backupfile (Depends-on): Likewise.
20301         * modules/c-strcasestr (Depends-on): Likewise.
20302         * modules/crypto/des (Depends-on): Likewise.
20303         * modules/csharpcomp (Depends-on): Likewise.
20304         * modules/fnmatch (Depends-on): Likewise.
20305         * modules/git-merge-changelog (Depends-on): Likewise.
20306         * modules/isnand (Depends-on): Likewise.
20307         * modules/isnand-nolibm (Depends-on): Likewise.
20308         * modules/isnanf (Depends-on): Likewise.
20309         * modules/isnanf-nolibm (Depends-on): Likewise.
20310         * modules/isnanl (Depends-on): Likewise.
20311         * modules/isnanl-nolibm (Depends-on): Likewise.
20312         * modules/mbchar (Depends-on): Likewise.
20313         * modules/memcoll (Depends-on): Likewise.
20314         * modules/quotearg (Depends-on): Likewise.
20315         * modules/regex (Depends-on): Likewise.
20316         * modules/relocatable-prog (Depends-on): Likewise.
20317         * modules/same (Depends-on): Likewise.
20318         * modules/signbit (Depends-on): Likewise.
20319         * modules/strcasestr-simple (Depends-on): Likewise.
20320         * modules/unictype/gen-ctype (Depends-on): Likewise.
20321         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
20322         * modules/uniname/uniname (Depends-on): Likewise.
20323         * modules/unistr/u8-cmp (Depends-on): Likewise.
20324
20325 2008-11-02  Bruno Haible  <bruno@clisp.org>
20326
20327         Mark 'memchr' obsolete.
20328         * modules/memchr (Status, Notice): New sections.
20329         * modules/argp (Depends-on): Add memchr.
20330         * modules/base64 (Depends-on): Likewise.
20331         * modules/c-strcasestr (Depends-on): Likewise.
20332         * modules/chdir-long (Depends-on): Likewise.
20333         * modules/fnmatch (Depends-on): Likewise.
20334         * modules/getsubopt (Depends-on): Likewise.
20335         * modules/git-merge-changelog (Depends-on): Likewise.
20336         * modules/glob (Depends-on): Likewise.
20337         * modules/strcasestr-simple (Depends-on): Likewise.
20338         * modules/strnlen (Depends-on): Likewise.
20339
20340 2008-11-02  Bruno Haible  <bruno@clisp.org>
20341
20342         Mark 'atexit' obsolete.
20343         * modules/atexit (Status, Notice): New sections.
20344         * modules/chdir-long (Depends-on): Add atexit.
20345         * modules/wait-process (Depends-on): Likewise.
20346
20347 2008-11-02  Bruno Haible  <bruno@clisp.org>
20348
20349         * gnulib-tool: New option --with-obsolete.
20350         (func_usage): Document it.
20351         (func_modules_transitive_closure): Drop obsolete dependencies if
20352         incobsolete is not true.
20353         (func_import): Read and save the incobsolete variable to the cache.
20354
20355 2008-11-02  Bruno Haible  <bruno@clisp.org>
20356
20357         * modules/TEMPLATE-EXTENDED: New field 'Status'.
20358         * gnulib-tool: New option --extract-status.
20359         (func_usage): Document it.
20360         (sed_extract_prog): Recognize it.
20361         (func_get_status): New function.
20362
20363 2008-10-30  Simon Josefsson  <simon@josefsson.org>
20364
20365         * modules/sockets (License): Change from LGPL to LGPLv2+.
20366
20367 2008-10-28  Simon Josefsson  <simon@josefsson.org>
20368
20369         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
20370
20371 2008-10-28  Simon Josefsson  <simon@josefsson.org>
20372
20373         * MODULES.html.sh (Support for systems lacking POSIX:2001):
20374         Mention times and sys_times.
20375         * modules/sys_times, modules/sys_times-tests: New modules.
20376         * modules/times, modules/times-tests: Likewise
20377         * m4/sys_times_h.m4: New file.
20378         * lib/sys_times.in.h: Likewise
20379         * lib/times.c: Likewise.
20380         * tests/test-sys_times.c: Likewise.
20381         * tests/test-times.c: Likewise.
20382         * doc/posix-headers/sys_times.texi: Update.
20383         * doc/posix-functions/times.texi: Update.
20384
20385 2008-10-28  Jim Meyering  <meyering@redhat.com>
20386
20387         * modules/tempname (Depends-on): Add lstat.
20388
20389         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
20390
20391 2008-10-28  Simon Josefsson  <simon@josefsson.org>
20392
20393         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
20394         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
20395         using idiom used elsewhere in gnulib.
20396
20397 2008-10-27  Jim Meyering  <meyering@redhat.com>
20398
20399         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
20400
20401 2008-10-27  Simon Josefsson  <simon@josefsson.org>
20402
20403         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
20404         TESTS_ENVIRONMENT, for shell scripts that needs to call built
20405         programs.
20406         * tests/test-argp-2.sh: Use $EXEEXT when needed.
20407
20408 2008-10-27  Simon Josefsson  <simon@josefsson.org>
20409
20410         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
20411
20412 2008-10-27  Bruno Haible  <bruno@clisp.org>
20413
20414         * tests/test-lstat.c: Include <stdio.h>.
20415
20416 2008-10-27  Simon Josefsson  <simon@josefsson.org>
20417
20418         * modules/lstat-tests: New module.
20419         * tests/test-lstat.c: New file.
20420
20421 2008-10-26  Jim Meyering  <meyering@redhat.com>
20422
20423         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
20424
20425 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20426             Bruno Haible  <bruno@clisp.org>
20427
20428         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
20429         * modules/configmake (Include): Add a note that the include must come
20430         after all system headers.
20431         * lib/javaversion.c: Include configmake.h after all other includes.
20432
20433 2008-10-26  Bruno Haible  <bruno@clisp.org>
20434
20435         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
20436         HAVE_STRUCT_RANDOM_DATA to 1.
20437         (gl_STDLIB_H): Simplify.
20438
20439 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20440
20441         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
20442         substitute HAVE_STRUCT_RANDOM_DATA.
20443         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
20444         random_data.
20445         * modules/stdlib (Makefile.am): Substitute
20446         HAVE_STRUCT_RANDOM_DATA.
20447
20448 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20449
20450         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
20451         * doc/gnulib-intro.texi (Copyright): Likewise.
20452
20453 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20454
20455         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
20456         findings.
20457
20458 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
20459             Bruno Haible  <bruno@clisp.org>
20460
20461         * lib/unistd.in.h: Include <winsock2.h>.
20462         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
20463         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
20464         Provide dummy declarations.
20465         (gethostname): Override.
20466         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
20467         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
20468         gl_PREREQ_SYS_H_WINSOCK2.
20469         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
20470         * doc/posix-functions/gethostname.texi: More details.
20471
20472 2008-10-25  Bruno Haible  <bruno@clisp.org>
20473
20474         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
20475         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
20476         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
20477
20478         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
20479         here ...
20480         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
20481         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
20482         gl_UNISTD_H_DEFAULTS.
20483
20484 2008-10-25  Eric Blake  <ebb9@byu.net>
20485
20486         signbit: avoid spurious compiler failure
20487         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
20488         declarations inside function.
20489
20490 2008-10-24  Simon Josefsson  <simon@josefsson.org>
20491             Bruno Haible  <bruno@clisp.org>
20492
20493         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
20494         * modules/random_r (Depends-on): Add stdint.
20495
20496 2008-10-24  Bruno Haible  <bruno@clisp.org>
20497
20498         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
20499         Eggert.
20500         * modules/strerror (License): Likewise.
20501
20502 2008-10-24  Jim Meyering  <meyering@redhat.com>
20503
20504         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
20505         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
20506
20507 2008-10-24  Eric Blake  <ebb9@byu.net>
20508
20509         getgroups: fix compilation when getgroups is available
20510         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
20511         but with <config.h> override of getgroups disabled.
20512
20513 2008-10-24  Simon Josefsson  <simon@josefsson.org>
20514
20515         * doc/gnulib.texi (Header files): Add note about C++ problems.
20516         Explained by Bruno Haible <bruno@clisp.org>.
20517
20518 2008-10-23  Bruno Haible  <bruno@clisp.org>
20519
20520         Define a dummy SA_NODEFER macro on Interix.
20521         * lib/signal.in.h (SA_NODEFER): Define fallback.
20522         Reported by Aleksey Cheusov <cheusov@tut.by> via
20523         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
20524
20525 2008-10-23  Bruno Haible  <bruno@clisp.org>
20526
20527         * modules/freadahead (License): Change to LGPLv2+.
20528         Suggested by Simon Josefsson.
20529
20530 2008-10-23  Jim Meyering  <meyering@redhat.com>
20531
20532         random_r: new module
20533         * modules/random_r: New file.
20534         * m4/random_r.m4: New file.
20535         * lib/random_r.c: New file, from glibc.
20536         * modules/random_r-tests: New file.
20537         * tests/test-random_r.c: New file.
20538         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
20539          Declare.
20540         (RAND_MAX): Define.
20541         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
20542         * modules/stdlib: Substitute them, too.
20543         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
20544         * doc/glibc-functions/initstate_r.texi: Mention the new module.
20545         * doc/glibc-functions/random_r.texi: Likewise.
20546         * doc/glibc-functions/setstate_r.texi: Likewise.
20547         * doc/glibc-functions/srandom_r.texi: Likewise.
20548         * config/srclist.txt: Mention it.
20549
20550 2008-10-23  David Lutterkort  <lutter@redhat.com>
20551
20552         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
20553         link requirement
20554
20555 2008-10-23  Jim Meyering  <meyering@redhat.com>
20556
20557         selinux-h: mark parameters of stub functions as intentionally unused
20558         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
20559         * lib/se-context.in.h: Likewise.
20560
20561 2008-10-22  Simon Josefsson  <simon@josefsson.org>
20562
20563         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
20564
20565 2008-10-22  Simon Josefsson  <simon@josefsson.org>
20566
20567         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
20568
20569 2008-10-22  Eric Blake  <ebb9@byu.net>
20570
20571         glthread/thread: avoid compiler warning
20572         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
20573         Add unreachable abort to silence compiler.
20574
20575 2008-10-22  Eric Blake  <ebb9@byu.net>
20576
20577         netdb: also supply struct addrinfo for cygwin 1.5.x
20578         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
20579         older cygwin.
20580         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
20581         cygwin.
20582         * doc/posix-headers/netdb.texi (netdb.h): Document this.
20583
20584 2008-10-22  Bruno Haible  <bruno@clisp.org>
20585
20586         * users.txt: Update entry about pspp.
20587
20588 2008-10-21  Bruno Haible  <bruno@clisp.org>
20589
20590         Simplification.
20591         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
20592         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
20593
20594         Simplification.
20595         * lib/ioctl.c (ioctl): Don't undefine.
20596         * lib/socket.c (socket): Don't undefine.
20597
20598         Remove unused module indicator macros.
20599         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
20600         GNULIB_$1 as a C macro.
20601
20602         * doc/posix-functions/close.texi: Undo last change.
20603         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
20604         Windows platforms.
20605
20606 2008-10-21  Bruno Haible  <bruno@clisp.org>
20607
20608         Add gethostname() declaration to <unistd.h>.
20609         * lib/unistd.in.h (gethostname): New declaration.
20610         * lib/gethostname.c: Include <unistd.h>.
20611         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
20612         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
20613         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
20614         and HAVE_GETHOSTNAME.
20615         * modules/gethostname (Depends-on): Add unistd.
20616         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20617         (Include): Specify <unistd.h>.
20618         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
20619         HAVE_GETHOSTNAME.
20620         * tests/test-gethostname.c: Include <unistd.h> first.
20621
20622 2008-10-21  Bruno Haible  <bruno@clisp.org>
20623
20624         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
20625         * modules/select-tests (Depends-on): Likewise.
20626         Reported by Simon Josefsson.
20627
20628 2008-10-21  Simon Josefsson  <simon@josefsson.org>
20629
20630         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
20631         * lib/accept.c: New file, based on winsock.c.
20632         * lib/bind.c: New file, based on winsock.c.
20633         * lib/connect.c: New file, based on winsock.c.
20634         * lib/getpeername.c: New file, based on winsock.c.
20635         * lib/getsockname.c: New file, based on winsock.c.
20636         * lib/getsockopt.c: New file, based on winsock.c.
20637         * lib/ioctl.c: New file, based on winsock.c.
20638         * lib/listen.c: New file, based on winsock.c.
20639         * lib/recv.c: New file, based on winsock.c.
20640         * lib/recvfrom.c: New file, based on winsock.c.
20641         * lib/send.c: New file, based on winsock.c.
20642         * lib/sendto.c: New file, based on winsock.c.
20643         * lib/setsockopt.c: New file, based on winsock.c.
20644         * lib/shutdown.c: New file, based on winsock.c.
20645         * lib/socket.c: New file, based on winsock.c.
20646         * lib/w32sock.h: New file, based on winsock.c.
20647         * lib/winsock.c: Remove file.
20648         * modules/accept: Likewise.
20649         * modules/bind: Likewise.
20650         * modules/connect: Likewise.
20651         * modules/getpeername: Likewise.
20652         * modules/getsockname: Likewise.
20653         * modules/getsockopt: Likewise.
20654         * modules/ioctl: Likewise.
20655         * modules/listen: Likewise.
20656         * modules/recv: Likewise.
20657         * modules/recvfrom: Likewise.
20658         * modules/send: Likewise.
20659         * modules/sendto: Likewise.
20660         * modules/setsockopt: Likewise.
20661         * modules/shutdown: Likewise.
20662         * modules/socket: Use socket.c instead of winsock.c.
20663         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
20664         * doc/posix-functions/accept.texi: Doc fix.
20665         * doc/posix-functions/bind.texi: Doc fix.
20666         * doc/posix-functions/close.texi: Doc fix.
20667         * doc/posix-functions/connect.texi: Doc fix.
20668         * doc/posix-functions/getpeername.texi: Doc fix.
20669         * doc/posix-functions/getsockname.texi: Doc fix.
20670         * doc/posix-functions/getsockopt.texi: Doc fix.
20671         * doc/posix-functions/ioctl.texi: Doc fix.
20672         * doc/posix-functions/listen.texi: Doc fix.
20673         * doc/posix-functions/recv.texi: Doc fix.
20674         * doc/posix-functions/recvfrom.texi: Doc fix.
20675         * doc/posix-functions/send.texi: Doc fix.
20676         * doc/posix-functions/sendto.texi: Doc fix.
20677         * doc/posix-functions/setsockopt.texi: Doc fix.
20678         * doc/posix-functions/shutdown.texi: Doc fix.
20679         * doc/posix-functions/socket.texi: Doc fix.
20680
20681 2008-10-20  Bruno Haible  <bruno@clisp.org>
20682
20683         Take into account the role of SIGABRT_COMPAT on Windows 2008.
20684         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
20685         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
20686         as an alias for SIGABRT.
20687         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
20688         (sigaction): Map it to SIGABRT.
20689         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
20690
20691 2008-10-20  Bruno Haible  <bruno@clisp.org>
20692
20693         * lib/fts.c: Don't include lstat.h.
20694         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
20695
20696         Move the lstat() declaration to <sys/stat.h>.
20697         * lib/lstat.h: Remove file.
20698         * lib/sys_stat.in.h: Add special invocation convention.
20699         (lstat): New declaration.
20700         * lib/lstat.c (orig_lstat): New function.
20701         (rpl_lstat): Use orig_lstat instead of lstat.
20702         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
20703         AC_C_INLINE. Set REPLACE_LSTAT.
20704         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
20705         and REPLACE_LSTAT.
20706         * modules/lstat (Files): Remove lib/lstat.h.
20707         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
20708         (Include): Specify <sys/stat.h> instead of lstat.h.
20709         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
20710         REPLACE_LSTAT.
20711         * NEWS: Mention the change.
20712
20713 2008-10-20  Bruno Haible  <bruno@clisp.org>
20714
20715         * modules/posix_spawn-tests: New file.
20716         * tests/test-posix_spawn3.c: New file.
20717
20718 2008-10-20  Bruno Haible  <bruno@clisp.org>
20719
20720         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
20721         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
20722         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
20723         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
20724         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
20725
20726 2008-10-20  Bruno Haible  <bruno@clisp.org>
20727
20728         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
20729         of posix_spawn on AIX 5.3.
20730
20731 2008-10-20  Bruno Haible  <bruno@clisp.org>
20732
20733         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
20734
20735 2008-10-20  Bruno Haible  <bruno@clisp.org>
20736
20737         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
20738         of AC_LANG_PROGRAM.
20739
20740 2008-10-20  Simon Josefsson  <simon@josefsson.org>
20741
20742         * lib/netdb.in.h: Don't define GNU specific constants until they
20743         are supported or needed.  Reported by Bruno Haible
20744         <bruno@clisp.org>.
20745
20746 2008-10-20  Simon Josefsson  <simon@josefsson.org>
20747
20748         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
20749
20750 2008-10-20  Simon Josefsson  <simon@josefsson.org>
20751
20752         * lib/getaddrinfo.h: Remove file.
20753         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
20754         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
20755         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
20756         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
20757         * modules/netdb: Substitute GNULIB_GETADDRINFO.
20758         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
20759         * tests/test-getaddrinfo.c: Likewise.
20760         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
20761         * NEWS: Mention change.
20762
20763 2008-10-19  Bruno Haible  <bruno@clisp.org>
20764
20765         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
20766
20767 2008-10-19  Bruno Haible  <bruno@clisp.org>
20768
20769         * lib/wait-process.c: Include simply <sys/wait.h>.
20770         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
20771         WIFSTOPPED): Remove fallback definitions.
20772         * modules/wait-process (Depends-on): Add sys_wait.
20773
20774         New module 'sys_wait'.
20775         * modules/sys_wait: New file.
20776         * lib/sys_wait.in.h: New file, partially copied from
20777         lib/wait-process.c.
20778         * m4/sys_wait_h.m4: New file.
20779         * doc/posix-headers/sys_wait.texi: Mention the new module.
20780
20781 2008-10-19  Bruno Haible  <bruno@clisp.org>
20782
20783         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
20784
20785 2008-10-19  Bruno Haible  <bruno@clisp.org>
20786
20787         Assume that waitpid() fills an 'int' status, not a 'union wait'.
20788         * lib/wait-process.c (WAIT_T): Remove type.
20789         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
20790         (wait_subprocess): Update.
20791
20792 2008-10-19  Bruno Haible  <bruno@clisp.org>
20793
20794         New module 'atoll'.
20795         * modules/atoll: New file.
20796         * lib/stdlib.in.h (atoll): New declaration.
20797         * lib/atoll.c: New file, from glibc with modifications.
20798         * m4/atoll.m4: New file.
20799         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
20800         HAVE_ATOLL.
20801         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
20802         * doc/posix-functions/atoll.texi: Mention the new module.
20803
20804 2008-10-19  Bruno Haible  <bruno@clisp.org>
20805
20806         Add strtoull() declaration to <stdlib.h>.
20807         * lib/stdlib.in.h (strtoull): New declaration.
20808         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
20809         Set HAVE_STRTOULL.
20810         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
20811         HAVE_STRTOULL.
20812         * modules/strtoull (Depends-on): Add stdlib.
20813         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20814         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
20815         HAVE_STRTOULL.
20816
20817 2008-10-19  Bruno Haible  <bruno@clisp.org>
20818
20819         Add strtoll() declaration to <stdlib.h>.
20820         * lib/stdlib.in.h (strtoll): New declaration.
20821         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
20822         Set HAVE_STRTOLL.
20823         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
20824         HAVE_STRTOLL.
20825         * modules/strtoll (Depends-on): Add stdlib.
20826         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20827         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
20828
20829 2008-10-19  Bruno Haible  <bruno@clisp.org>
20830
20831         * modules/bcopy (Depends-on): Add strings.
20832         (Include): Specify <strings.h>.
20833
20834 2008-10-19  Bruno Haible  <bruno@clisp.org>
20835
20836         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
20837
20838 2008-10-19  Bruno Haible  <bruno@clisp.org>
20839
20840         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
20841         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
20842         mingw.
20843
20844 2008-10-19  Bruno Haible  <bruno@clisp.org>
20845
20846         * lib/atanl.c: Don't include isnanl.h.
20847         * lib/cosl.c: Likewise.
20848         * lib/ldexpl.c: Likewise.
20849         * lib/logl.c: Likewise.
20850         * lib/sinl.c: Likewise.
20851         * lib/sqrtl.c: Likewise.
20852         * lib/tanl.c: Likewise.
20853
20854         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
20855         * lib/isnanf.h: Remove file.
20856         * lib/isnand.h: Remove file.
20857         * lib/isnanl.h: Remove file.
20858         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
20859         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
20860         macros.
20861         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
20862         HAVE_ISNANF, don't define it as a C macro.
20863         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
20864         HAVE_ISNAND, don't define it as a C macro.
20865         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
20866         HAVE_ISNANL, don't define it as a C macro.
20867         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
20868         HAVE_ISNAN[FDL].
20869         * modules/isnanf (Files): Remove lib/isnanf.h.
20870         (Depends-on): Add math.
20871         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20872         (Include): Specify <math.h> instead of isnanf.h.
20873         * modules/isnand (Files): Remove lib/isnand.h.
20874         (Depends-on): Add math.
20875         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20876         (Include): Specify <math.h> instead of isnand.h.
20877         * modules/isnanl (Files): Remove lib/isnanl.h.
20878         (Depends-on): Add math.
20879         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20880         (Include): Specify <math.h> instead of isnanl.h.
20881         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
20882         HAVE_ISNAN[FDL].
20883         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
20884         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
20885         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
20886         * NEWS: Mention the change.
20887
20888 2008-10-18  Bruno Haible  <bruno@clisp.org>
20889
20890         Add getusershell(), setusershell(), endusershell() declarations to
20891         <unistd.h>.
20892         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
20893         declarations.
20894         * lib/getusershell.c: Include unistd.h.
20895         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
20896         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
20897         HAVE_GETUSERSHELL.
20898         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
20899         and HAVE_GETUSERSHELL.
20900         * modules/getusershell (Depends-on): Add unistd, extensions.
20901         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20902         (Include): Specify <unistd.h>.
20903         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
20904         HAVE_GETUSERSHELL.
20905
20906 2008-10-18  Bruno Haible  <bruno@clisp.org>
20907
20908         Add a getloadavg() declaration to <stdlib.h>.
20909         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
20910         getloadavg declaration.
20911         (getloadavg): New declaration.
20912         * lib/getloadavg.c: Include <stdlib.h> first.
20913         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
20914         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
20915         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
20916         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
20917         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
20918         * modules/getloadavg (Depends-on): Add stdlib, extensions.
20919         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20920         (Include): Specify <stdlib.h>.
20921         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
20922         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
20923
20924 2008-10-18  Bruno Haible  <bruno@clisp.org>
20925
20926         * lib/dirchownmod.c: Don't include lchmod.h.
20927
20928         Move the lchmod() declaration to <sys/stat.h>.
20929         * lib/lchmod.h: Remove file.
20930         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
20931         (lchmod): New declaration, moved here from lib/lchown.h.
20932         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
20933         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
20934         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
20935         and HAVE_LCHMOD.
20936         * modules/lchmod (Files): Remove lib/lchmod.h.
20937         (Depends-on): Add sys_stat, extensions.
20938         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
20939         (Include): Specify <sys/stat.h> instead of lchmod.h.
20940         * modules/sys_stat (Depends-on): Add link-warning.
20941         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
20942         definition of GL_LINK_WARNING.
20943         * NEWS: Mention the change.
20944
20945 2008-10-18  Bruno Haible  <bruno@clisp.org>
20946
20947         * lib/fchdir.c: Don't include dirfd.h.
20948         * lib/fts.c: Likewise.
20949         * lib/getcwd.c: Likewise.
20950         * lib/glob.c: Likewise.
20951
20952         Move the dirfd() declaration to <dirent.h>.
20953         * lib/dirfd.h: Remove file.
20954         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
20955         (dirfd): New declaration.
20956         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
20957         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
20958         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
20959         HAVE_DECL_DIRFD.
20960         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
20961         HAVE_DECL_DIRFD.
20962         * modules/dirfd (Files): Remove lib/dirfd.h.
20963         (Depends-on): Add dirent, extensions.
20964         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
20965         (Include): Specify <dirent.h> instead of dirfd.h.
20966         * modules/dirent (Depends-on): Add link-warning.
20967         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
20968         definition of GL_LINK_WARNING.
20969         * NEWS: Mention the change.
20970
20971 2008-10-18  Bruno Haible  <bruno@clisp.org>
20972
20973         Move the euidaccess() declaration to <unistd.h>.
20974         * lib/euidaccess.h: Remove file.
20975         * lib/unistd.in.h (euidaccess): New declaration.
20976         * lib/euidaccess.c: Don't include euidaccess.h.
20977         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
20978         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
20979         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
20980         and HAVE_EUIDACCESS.
20981         * modules/euidaccess (Files): Remove lib/euidaccess.h.
20982         (Depends-on): Add unistd.
20983         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20984         (Include): Specify <unistd.h> instead of euidaccess.h.
20985         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
20986         HAVE_EUIDACCESS.
20987         * NEWS: Mention the change.
20988
20989 2008-10-18  Bruno Haible  <bruno@clisp.org>
20990
20991         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
20992
20993         Move the getdomainname() declaration to <unistd.h>.
20994         * lib/getdomainname.h: Remove file.
20995         * lib/unistd.in.h (getdomainname): New declaration.
20996         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
20997         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
20998         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
20999         HAVE_GETDOMAINNAME.
21000         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21001         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
21002         * modules/getdomainname (Files): Remove lib/getdomainname.h.
21003         (Depends-on): Add unistd, extensions.
21004         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
21005         (Includes): Specify <unistd.h> instead of getdomainname.h.
21006         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
21007         HAVE_GETDOMAINNAME.
21008         * NEWS: Mention the change.
21009
21010 2008-10-18  Bruno Haible  <bruno@clisp.org>
21011
21012         * modules/dirent: New file.
21013         * m4/dirent_h.m4: New file.
21014         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
21015         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
21016         * modules/fchdir (Files): Remove lib/dirent.in.h.
21017         (Depends-on): Add dirent.
21018         (Makefile.am): Move rules to modules/dirent.
21019         * doc/posix-headers/dirent.texi: Mention the new module.
21020
21021 2008-10-18  Bruno Haible  <bruno@clisp.org>
21022
21023         Avoid -Wunused-parameter warnings in public gnulib header files.
21024         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
21025         macro.
21026         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
21027
21028 2008-10-18  Bruno Haible  <bruno@clisp.org>
21029
21030         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
21031         * doc/glibc-functions/error.texi: Mention the module 'error'.
21032         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
21033         * doc/glibc-functions/getdomainname.texi: Mention the module
21034         'getdomainname'.
21035         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
21036         * doc/glibc-functions/getpagesize.texi: Mention the module
21037         'getpagesize'.
21038         * doc/glibc-functions/getusershell.texi: Mention the module
21039         'getusershell'.
21040         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
21041         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
21042         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
21043         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
21044         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
21045         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
21046         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
21047         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
21048         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
21049         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
21050         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
21051         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
21052         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
21053         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
21054
21055 2008-10-17  Bruno Haible  <bruno@clisp.org>
21056
21057         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
21058         HP-UX and IRIX, use -0.0L.
21059         * tests/test-ceill.c (minus_zero): Likewise.
21060         * tests/test-floorl.c (minus_zero): Likewise.
21061         * tests/test-frexpl.c (minus_zero): Likewise.
21062         * tests/test-isnan.c (minus_zerol): Likewise.
21063         * tests/test-isnanl.h (minus_zero): Likewise.
21064         * tests/test-ldexpl.c (minus_zero): Likewise.
21065         * tests/test-roundl.c (minus_zero): Likewise.
21066         * tests/test-signbit.c (minus_zerol): Likewise.
21067         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
21068         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
21069         * tests/test-truncl.c (minus_zero): Likewise.
21070         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
21071         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
21072         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
21073         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
21074
21075 2008-10-17  Bruno Haible  <bruno@clisp.org>
21076
21077         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
21078         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
21079         that it gets activated only for gcc >= 3.0.
21080         * lib/dirent.in.h: Likewise.
21081         * lib/errno.in.h: Likewise.
21082         * lib/fcntl.in.h: Likewise.
21083         * lib/float.in.h: Likewise.
21084         * lib/iconv.in.h: Likewise.
21085         * lib/inttypes.in.h: Likewise.
21086         * lib/locale.in.h: Likewise.
21087         * lib/math.in.h: Likewise.
21088         * lib/netdb.in.h: Likewise.
21089         * lib/netinet_in.in.h: Likewise.
21090         * lib/search.in.h: Likewise.
21091         * lib/signal.in.h: Likewise.
21092         * lib/spawn.in.h: Likewise.
21093         * lib/stdarg.in.h: Likewise.
21094         * lib/stdint.in.h: Likewise.
21095         * lib/stdio.in.h: Likewise.
21096         * lib/stdlib.in.h: Likewise.
21097         * lib/string.in.h: Likewise.
21098         * lib/strings.in.h: Likewise.
21099         * lib/sys_file.in.h: Likewise.
21100         * lib/sys_ioctl.in.h: Likewise.
21101         * lib/sys_select.in.h: Likewise.
21102         * lib/sys_socket.in.h: Likewise.
21103         * lib/sys_stat.in.h: Likewise.
21104         * lib/sys_time.in.h: Likewise.
21105         * lib/sysexits.in.h: Likewise.
21106         * lib/time.in.h: Likewise.
21107         * lib/unistd.in.h: Likewise.
21108         * lib/wchar.in.h: Likewise.
21109         * lib/wctype.in.h: Likewise.
21110         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21111
21112 2008-10-17  Jim Meyering  <meyering@redhat.com>
21113
21114         ignore-value: don't depend on inline module
21115         * modules/ignore-value (Depends-on): Remove 'inline'.
21116         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
21117         Suggestion from Bruno Haible.
21118
21119 2008-10-17  Bruno Haible  <bruno@clisp.org>
21120
21121         New implementation of condition variables for Win32.
21122         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
21123         (gl_linked_waitqueue_t): New type.
21124         (gl_cond_t): Use it.
21125         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
21126         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
21127         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
21128         (glthread_cond_init_func, glthread_cond_wait_func,
21129         glthread_cond_timedwait_func, glthread_cond_signal_func,
21130         glthread_cond_broadcast_func, glthread_cond_destroy_func):
21131         Reimplemented on the basis of gl_linked_waitqueue_t.
21132         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
21133         gl_waitqueue_t.
21134         (gl_rwlock_t): Update.
21135         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
21136
21137 2008-10-17  Simon Josefsson  <simon@josefsson.org>
21138
21139         * modules/recvfrom (Depends-on): Add dependency on getpeername.
21140         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
21141
21142 2008-10-17  Jim Meyering  <meyering@redhat.com>
21143
21144         ignore-value: new module
21145         * modules/ignore-value: New file.
21146         * lib/ignore-value.h: New file.
21147         * MODULES.html.sh (Compiler warning management): New section,
21148         just for this module.  More to come.
21149
21150 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
21151
21152         open-safer.c: avoid 'signed and unsigned in conditional...' warning
21153         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
21154         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
21155
21156 2008-10-16  Jim Meyering  <meyering@redhat.com>
21157
21158         openat-die.c: avoid 'no previous prototype' warning
21159         * lib/openat-die.c: Include "openat.h".
21160         Reported by Reuben Thomas <rrt@sc3d.org>.
21161
21162 2008-10-16  Simon Josefsson  <simon@josefsson.org>
21163
21164         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
21165         * lib/netdb.in.h: Fix typo.
21166         Reported by Bruno Haible  <bruno@clisp.org>
21167
21168         * lib/netdb.in.h: Include sys/socket.h for platforms without
21169         netdb.h, to get structures like hostent on MinGW.
21170         * modules/netdb (Depends-on): Add sys_socket.
21171
21172 2008-10-15  Simon Josefsson  <simon@josefsson.org>
21173
21174         * modules/netdb, modules/netdb-tests: New file.
21175         * m4/netdb_h.m4: New file.
21176         * lib/netdb.in.h: Add, currently just an empty file pending
21177         definitions.
21178         * tests/test-netdb.c: New file.
21179         * doc/posix-headers/netdb.texi: Mention that we replace it if
21180         needed.
21181         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21182         netdb.
21183
21184 2008-10-15  Simon Josefsson  <simon@josefsson.org>
21185
21186         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
21187         with code.
21188
21189 2008-10-13  Bruno Haible  <bruno@clisp.org>
21190
21191         * lib/glthread/cond.c (glthread_cond_wait_func,
21192         glthread_cond_timedwait_func): Add a comment.
21193
21194 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
21195
21196         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
21197         * tests/test-select.c: Likewise,
21198
21199 2008-10-13  Bruno Haible  <bruno@clisp.org>
21200
21201         * lib/glthread/cond.c (glthread_cond_wait_func,
21202         glthread_cond_timedwait_func): Fix variable name.
21203         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
21204
21205 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
21206
21207         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
21208         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
21209         struct sockaddr.sa_len.
21210         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
21211
21212 2008-10-13  Simon Josefsson  <simon@josefsson.org>
21213
21214         * build-aux/pmccabe2html: Add css and css_url parameters.
21215
21216 2008-10-12  Bruno Haible  <bruno@clisp.org>
21217
21218         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
21219         calling aclx_get.
21220         Reported by Rainer Tammer <tammer@tammer.net>.
21221
21222 2008-10-12  Bruno Haible  <bruno@clisp.org>
21223
21224         Use msvcrt aware primitives for creation/termination of Win32 threads.
21225         * lib/glthread/thread.c: Include <process.h>.
21226         (glthread_create_func): Use _beginthreadex instead of CreateThread.
21227         (wrapper_func): Update signature.
21228         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
21229
21230 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
21231             Bruno Haible  <bruno@clisp.org>
21232
21233         Provide a Win32 implementation of the 'cond' module.
21234         * lib/glthread/cond.h [USE_WIN32]: New implementation.
21235         * lib/glthread/cond.c (glthread_cond_init_func,
21236         glthread_cond_wait_func, glthread_cond_timedwait_func,
21237         glthread_cond_signal_func, glthread_cond_broadcast_func,
21238         glthread_cond_destroy_func) [USE_WIN32]: New functions.
21239         * modules/cond (Dependencies): Add gettimeofday.
21240
21241 2008-10-11  Bruno Haible  <bruno@clisp.org>
21242
21243         Make sleep work on older versions of mingw.
21244         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
21245         only whether it exists.
21246         * doc/posix-functions/sleep.texi: Mention the problem with older
21247         versions of mingw.
21248
21249 2008-10-11  Bruno Haible  <bruno@clisp.org>
21250
21251         New module 'shutdown'.
21252         * modules/shutdown: New file.
21253         * lib/sys_socket.in.h (shutdown): New declaration.
21254         * lib/winsock.c (shutdown): New function.
21255         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
21256         GNULIB_SHUTDOWN.
21257         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
21258         * doc/posix-functions/shutdown.texi: Document the new module.
21259
21260 2008-10-11  Jim Meyering  <meyering@redhat.com>
21261
21262         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
21263
21264 2008-10-11  Bruno Haible  <bruno@clisp.org>
21265
21266         New module 'fclose'.
21267         * modules/fclose: New file.
21268         * lib/stdio.in.h (fclose): New declaration.
21269         * lib/fclose.c: New file.
21270         * m4/fclose.m4: New file.
21271         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
21272         REPLACE_FCLOSE.
21273         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
21274         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
21275         REPLACE_FCLOSE.
21276         * modules/close (Depends-on): fclose.
21277         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
21278
21279 2008-10-11  Bruno Haible  <bruno@clisp.org>
21280
21281         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
21282         set errno and don't call _close.
21283
21284 2008-10-10  Bruno Haible  <bruno@clisp.org>
21285
21286         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
21287         ACL, not afterwards. Fixes test failure on Cygwin.
21288
21289 2008-10-09  Ben Pfaff  <blp@gnu.org>
21290
21291         * build-aux/announce-gen: Fix gnulib version related part of usage
21292         message.  Die with a useful error message if no tarballs are
21293         found.
21294
21295 2008-10-10  Jim Meyering  <meyering@redhat.com>
21296
21297         bootstrap: use git's --depth=N option only if it's supported
21298         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
21299         recognize the --depth option.  Reported by Pádraig Brady.
21300
21301 2008-10-09  Bruno Haible  <bruno@clisp.org>
21302
21303         New module 'ioctl'.
21304         * modules/ioctl: New file.
21305         * lib/sys_socket.in.h (ioctl): Remove declaration.
21306         * lib/winsock.c: Include <sys/ioctl.h>.
21307         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
21308         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
21309         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
21310         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
21311         * doc/posix-functions/ioctl.texi: Mention the new module.
21312
21313 2008-10-09  Bruno Haible  <bruno@clisp.org>
21314
21315         New module 'sys_ioctl'.
21316         * lib/sys_ioctl.in.h: New file.
21317         * m4/sys_ioctl_h.m4: New file.
21318         * modules/sys_ioctl: New file.
21319         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
21320
21321 2008-10-09  Bruno Haible  <bruno@clisp.org>
21322
21323         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
21324         * lib/winsock.c: Include <stdarg.h>.
21325         (rpl_ioctl): Change to second argument 'int' and then varargs.
21326
21327 2008-10-09  Bruno Haible  <bruno@clisp.org>
21328
21329         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
21330         when the sys_socket module is present and the system has <winsock2.h>.
21331
21332 2008-10-09  Bruno Haible  <bruno@clisp.org>
21333
21334         * doc/posix-functions/close.texi: Mention module 'close' instead of
21335         module 'sys_socket'.
21336
21337 2008-10-09  Bruno Haible  <bruno@clisp.org>
21338
21339         * doc/glibc-headers/sys_ioctl.texi: New file.
21340         * doc/gnulib.texi: Include it.
21341
21342 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21343             Bruno Haible  <bruno@clisp.org>
21344
21345         Combine the two replacements of 'close'.
21346         * lib/sys_socket.in.h (close): Define to a reminder to include
21347         <unistd.h>.
21348         (_gl_close_fd_maybe_socket): New declaration.
21349         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
21350         * lib/winsock.c (close): Remove undefinition.
21351         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
21352         needed for the gnulib module 'close'.
21353         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
21354         define to an error symbol or to a warning, if suitable.
21355         * lib/close.c: Include <sys/socket.h>.
21356         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
21357         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
21358         UNISTD_H_HAVE_WINSOCK2_H.
21359         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
21360         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21361         UNISTD_H_HAVE_WINSOCK2_H.
21362         * modules/sys_socket (Files): Add m4/unistd_h.m4.
21363         (configure.ac): Set a module indicator.
21364         (Makefile.am): Substitute GNULIB_CLOSE.
21365         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
21366         * modules/poll-tests (Depends-on): Add close.
21367         * modules/select-tests (Depends-on): Likewise.
21368
21369 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21370             Bruno Haible  <bruno@clisp.org>
21371
21372         New module 'close'.
21373         * modules/close: New file.
21374         * lib/unistd.in.h (close): Move declaration out of the
21375         FCHDIR_REPLACEMENT scope.
21376         (_gl_unregister_fd): New declaration.
21377         * lib/close.c: New file.
21378         * lib/fchdir.c (rpl_close): Remove function.
21379         * m4/close.m4: New file.
21380         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
21381         close.
21382         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
21383         REPLACE_CLOSE.
21384         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
21385         REPLACE_CLOSE.
21386         * modules/fchdir (Depends-on): Add close.
21387
21388 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21389             Bruno Haible  <bruno@clisp.org>
21390
21391         * lib/fcntl.in.h (open): Simplify conditionals.
21392         (_gl_register_fd): New declaration.
21393         * lib/fchdir.c (rpl_open): Remove function.
21394         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
21395         also.
21396         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
21397         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
21398         open.
21399
21400 2008-10-09  Jim Meyering  <meyering@redhat.com>
21401
21402         GNUmakefile: use the more name-space-friendly "_version"
21403         * top/GNUmakefile (_dummy): Update.
21404         (_version): Rename from "version".
21405
21406 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21407             Bruno Haible  <bruno@clisp.org>
21408
21409         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
21410         rpl_close.
21411         (_gl_register_fd): New function, extracted from rpl_open.
21412         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
21413         (rpl_open, rpl_opendir): Use _gl_register_fd.
21414
21415 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21416
21417         Fix organization of 'open' replacement.
21418         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
21419         (gl_FUNC_OPEN): Use it.
21420         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
21421
21422 2008-10-08  Bruno Haible  <bruno@clisp.org>
21423
21424         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
21425
21426 2008-10-08  Simon Josefsson  <simon@josefsson.org>
21427
21428         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
21429         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
21430         listen).
21431
21432 2008-10-08  Eric Blake  <ebb9@byu.net>
21433
21434         GNUmakefile: add 'make version' target
21435         * top/GNUmakefile (_curr-ver): Split version update rules...
21436         (version): ...into a target.
21437
21438 2008-10-07  Bruno Haible  <bruno@clisp.org>
21439
21440         Use a more portable replacement expression for -0.0L.
21441         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
21442         instead of -0.0L. Fix m4 quotation.
21443
21444         * tests/test-signbit.c: Include <float.h>.
21445         (minus_zero): New variable.
21446         (test_signbitl): Use minus_zero instead of -zero.
21447         * modules/signbit-tests (Depends-on): Add float.
21448
21449         * tests/test-ceill.c: Include <float.h>.
21450         (zero): Remove variable.
21451         (minus_zero): New variable.
21452         (main): Use minus_zero instead of -zero.
21453         * modules/ceill-tests (Depends-on): Add float.
21454
21455         * tests/test-floorl.c: Include <float.h>.
21456         (zero): Remove variable.
21457         (minus_zero): New variable.
21458         (main): Use minus_zero instead of -zero.
21459         * modules/floorl-tests (Depends-on): Add float.
21460
21461         * tests/test-roundl.c: Include <float.h>.
21462         (zero): Remove variable.
21463         (minus_zero): New variable.
21464         (main): Use minus_zero instead of -zero.
21465         * modules/roundl-tests (Depends-on): Add float.
21466
21467         * tests/test-truncl.c: Include <float.h>.
21468         (zero): Remove variable.
21469         (minus_zero): New variable.
21470         (main): Use minus_zero instead of -zero.
21471         * modules/truncl-tests (Depends-on): Add float.
21472
21473         * tests/test-frexpl.c (zero): Remove variable.
21474         (minus_zero): New variable.
21475         (main): Use minus_zero instead of -zero.
21476         * modules/frexpl-tests (Depends-on): Add float.
21477
21478         * tests/test-isnan.c (zerol): Remove variable.
21479         (minus_zerol): New variable.
21480         (test_long_double): Use minus_zerol instead of -zerol.
21481         * modules/isnan-tests (Depends-on): Add float.
21482
21483         * tests/test-isnanl.h (zero): Remove variable.
21484         (minus_zero): New variable.
21485         (main): Use minus_zero instead of -zero.
21486         * modules/isnanl-nolibm-tests (Depends-on): Add float.
21487         * modules/isnanl-tests (Depends-on): Add float.
21488
21489         * tests/test-ldexpl.c (zero): Remove variable.
21490         (minus_zero): New variable.
21491         (main): Use minus_zero instead of -zero.
21492         * modules/ldexpl-tests (Depends-on): Add float.
21493
21494         * tests/test-snprintf-posix.h (zerol): Remove variable.
21495         (minus_zerol): New variable.
21496         (test_function): Use minus_zerol instead of -zerol.
21497         * modules/snprintf-posix-tests (Depends-on): Add float.
21498         * modules/vsnprintf-posix-tests (Depends-on): Add float.
21499
21500         * tests/test-sprintf-posix.h (zerol): Remove variable.
21501         (minus_zerol): New variable.
21502         (test_function): Use minus_zerol instead of -zerol.
21503         * modules/sprintf-posix-tests (Depends-on): Add float.
21504         * modules/vsprintf-posix-tests (Depends-on): Add float.
21505
21506         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
21507         (minus_zerol): New variable.
21508         (test_function): Use minus_zerol instead of -zerol.
21509         * modules/vasnprintf-posix-tests (Depends-on): Add float.
21510
21511         * tests/test-vasprintf-posix.c (zerol): Remove variable.
21512         (minus_zerol): New variable.
21513         (test_function): Use minus_zerol instead of -zerol.
21514         * modules/vasprintf-posix-tests (Depends-on): Add float.
21515
21516 2008-10-07  Simon Josefsson  <simon@josefsson.org>
21517
21518         * MODULES.html.sh (Support for building documentation): Mention
21519         pmccabe2html.  Sort entries.
21520
21521         Add pmccabe2html module, from gnupdf.
21522         * build-aux/pmccabe.css: New file.
21523         * build-aux/pmccabe2html: New file.
21524         * m4/pmccabe2html.m4: New file.
21525         * modules/pmccabe2html: New file.
21526
21527 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
21528
21529         flock: new module
21530         * MODULES.html.sh: Add to list of modules.
21531         * lib/flock.c: flock implementation for Windows and Unix systems
21532         which have fcntl.
21533         * doc/glibc-functions/flock.texi: Update documentation.
21534         * lib/sys_file.in.h: <sys/file.h> header file.
21535         * m4/flock.m4: M4 macros.
21536         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
21537         * modules/flock: flock module.
21538         * modules/flock-tests: flock tests module.
21539         * modules/sys_file: sys/file.h module.
21540         * tests/test-flock.c: test suite for flock.
21541
21542 2008-10-06  Jim Meyering  <meyering@redhat.com>
21543
21544         bootstrap: check for LT_INIT more portably still ;-)
21545         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
21546         Spotted by Bruno Haible.
21547
21548 2008-10-06  Eric Blake  <ebb9@byu.net>
21549
21550         test-signbit: avoid tripping Irix cc bug on -0.0L
21551         * tests/test-signbit.c (minus_zerol): Delete, and replace with
21552         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
21553         entire testsuite consistent and avoids an Irix 6.2 bug.
21554
21555 2008-10-05  Bruno Haible  <bruno@clisp.org>
21556             Jim Meyering  <jim@meyering.net>
21557
21558         Add an option for ignoring EPIPE during close_stdout.
21559         * lib/closeout.h: Include <stdbool.h>.
21560         (close_stdout_set_ignore_EPIPE): New declaration.
21561         * lib/closeout.c: Include <stdbool.h>.
21562         (ignore_EPIPE): New variable.
21563         (close_stdout_set_ignore_EPIPE): New function.
21564         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
21565         * lib/close-stream.c (close_stream): Mention the possible EPIPE
21566         failure.
21567         * modules/closeout (Depends-on): Add stdbool.
21568
21569 2008-10-05  Bruno Haible  <bruno@clisp.org>
21570
21571         * modules/accept: New file.
21572         * modules/bind: New file.
21573         * modules/connect: New file.
21574         * modules/getpeername: New file.
21575         * modules/getsockname: New file.
21576         * modules/getsockopt: New file.
21577         * modules/listen: New file.
21578         * modules/recv: New file.
21579         * modules/recvfrom: New file.
21580         * modules/send: New file.
21581         * modules/sendto: New file.
21582         * modules/setsockopt: New file.
21583         * modules/socket: New file.
21584         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
21585         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
21586         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
21587         the particular module is requested. Add a link warning when the
21588         particular module is not requested.
21589         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
21590         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
21591         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
21592         the particular module is requested.
21593         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
21594         gl_SYS_SOCKET_H_DEFAULTS): New macros.
21595         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
21596         * modules/sys_socket (Depends-on): Add link-warning.
21597         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
21598         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
21599         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
21600         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
21601         GL_LINK_WARNING.
21602         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
21603         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
21604         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
21605         * doc/posix-functions/getpeername.texi: Mention the new module
21606         'getpeername'.
21607         * doc/posix-functions/getsockname.texi: Mention the new module
21608         'getsockname'.
21609         * doc/posix-functions/getsockopt.texi: Mention the new module
21610         'getsockopt'.
21611         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
21612         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
21613         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
21614         * doc/posix-functions/send.texi: Mention the new module 'send'.
21615         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
21616         * doc/posix-functions/setsockopt.texi: Mention the new module
21617         'setsockopt'.
21618         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
21619         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
21620         listen, connect, accept.
21621         * modules/select-tests (Depends-on): Likewise.
21622
21623 2008-10-05  Bruno Haible  <bruno@clisp.org>
21624
21625         * lib/winsock.c (strerror): Remove unused #undef.
21626         (rpl_close): Remove unused local variable.
21627
21628         * modules/sys_socket (Depends-on); Add errno.
21629
21630 2008-10-05  Bruno Haible  <bruno@clisp.org>
21631
21632         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
21633         (select): Add a link warning when the 'select' module is not used.
21634         * modules/sys_select (Depends-on): Add link-warning.
21635         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
21636         Suggested by Paolo Bonzini.
21637
21638 2008-10-05  Jim Meyering  <meyering@redhat.com>
21639
21640         bootstrap: check for LT_INIT more portably
21641         * build-aux/bootstrap: Avoid using grep -E, since it's not
21642         portable enough.  Suggestion from Bruno Haible.
21643
21644 2008-10-05  Bruno Haible  <bruno@clisp.org>
21645
21646         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
21647         as being fixed by gnulib.
21648
21649 2008-10-05  Bruno Haible  <bruno@clisp.org>
21650
21651         * modules/select-tests: New file, mostly copied from
21652         modules/sys_select-tests.
21653         * tests/test-select.c: New file, mostly copied from
21654         tests/test-sys_select.c.
21655         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
21656         * modules/sys_select-tests (Depends-on): Remove all dependencies.
21657         (Makefile.am): Remove test_sys_select_LDADD.
21658
21659         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
21660         to an undefined symbol, for an error message.
21661         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
21662         (gl_SYS_SELECT_H_DEFAULTS): New macro.
21663         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
21664         winsock-select.c here.
21665         * modules/sys_select (Files): Remove lib/winsock-select.c.
21666         (Depends-on): Remove alloca.
21667         (Makefile.am): Substitute GNULIB_SELECT.
21668         * modules/select: New file.
21669         * doc/posix-functions/select.texi: Update.
21670
21671 2008-10-05  Bruno Haible  <bruno@clisp.org>
21672
21673         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
21674         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
21675         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
21676         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
21677         getdtablesize.
21678         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
21679         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
21680
21681 2008-10-05  Bruno Haible  <bruno@clisp.org>
21682
21683         * modules/getdtablesize-tests: New file.
21684         * tests/test-getdtablesize.c: New file.
21685
21686         New module 'getdtablesize'.
21687         * lib/unistd.in.h (getdtablesize): New declaration.
21688         * lib/getdtablesize.c: New file.
21689         * m4/getdtablesize.m4: New file.
21690         * modules/getdtablesize: New file.
21691         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21692         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
21693         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
21694         HAVE_GETDTABLESIZE.
21695         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
21696
21697 2008-10-05  Bruno Haible  <bruno@clisp.org>
21698
21699         * modules/sched (Makefile.am): Fix typo.
21700         Reported by Simon Josefsson.
21701
21702 2008-10-05  Jim Meyering  <meyering@redhat.com>
21703
21704         bootstrap: check for LT_INIT, too
21705         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
21706         are deprecated.  Suggestion from Ralf Wildenhues.
21707
21708 2008-10-05  Bruno Haible  <bruno@clisp.org>
21709
21710         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
21711         overriding them by ours.
21712         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
21713
21714 2008-10-05  Jim Meyering  <meyering@redhat.com>
21715
21716         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
21717         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
21718         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
21719
21720 2008-10-04  Bruno Haible  <bruno@clisp.org>
21721
21722         * modules/dup2 (License): Change to LGPLv2+.
21723         * modules/sleep (License): Likewise.
21724         * modules/perror (License): Likewise.
21725         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
21726         Blake.
21727         * modules/signal (License): Likewise.
21728         * modules/sigprocmask (License): Likewise.
21729         * modules/raise (License): Change to LGPLv2+, with approval by Jim
21730         Meyering.
21731
21732 2008-10-04  Bruno Haible  <bruno@clisp.org>
21733
21734         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
21735         Reported by Rainer Tammer <tammer@tammer.net>.
21736
21737 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
21738             Bruno Haible  <bruno@clisp.org>
21739
21740         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
21741         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
21742         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
21743
21744 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
21745
21746         filevercmp: new module
21747         * lib/filevercmp.h: New function filevercmp comparing version strings.
21748         * lib/filevercmp.c: Implementation of filevercmp function.
21749         * modules/filevercmp: Module metadata.
21750         * tests/test-filevercmp.c: Unit test for new module.
21751         * modules/filevercmp-tests: Unit test metadata.
21752         * MODULES.html.sh: Add filevercmp module.
21753
21754 2008-10-03  Bruno Haible  <bruno@clisp.org>
21755
21756         * lib/c-ctype.h: Add comment.
21757         Reported by Jim Meyering.
21758
21759 2008-10-02  Bruno Haible  <bruno@clisp.org>
21760
21761         * modules/posix_spawn-internal (Depends-on): Add 'open'.
21762
21763 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
21764
21765         * build-aux/bootstrap: Allow renaming bootstrap, and change the
21766         name of bootstrap.conf accordingly.
21767
21768 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
21769
21770         * build-aux/bootstrap: Install git-merge-changelog configuration
21771         items into .gitconfig if needed.
21772
21773 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
21774
21775         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
21776         git repository, and initialize/update it accordingly.
21777
21778 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
21779
21780         * modules/fsync-tests: New file.
21781         * tests/test-fsync.c: New file.
21782
21783         New module 'fsync'.
21784         * lib/fsync.c: New file.
21785         * m4/fsync.m4: New file.
21786         * modules/fsync: New file.
21787         * lib/unistd.in.h (fsync): New declaration.
21788         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
21789         GNULIB_FSYNC and HAVE_FSYNC.
21790         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
21791         * MODULES.html.sh (posix_functions): Add fsync.
21792         * doc/posix-functions/fsync.texi: Mention the new module.
21793
21794 2008-10-02  Jim Meyering  <meyering@redhat.com>
21795
21796         fts.c: sync with similar code from coreutils' remove.c
21797         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
21798         Guard also with "#if defined __linux__", since for now at least,
21799         this code is Linux-kernel-specific.
21800
21801 2008-10-02  Jim Meyering  <meyering@redhat.com>
21802
21803         fts: bug fixes
21804         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
21805         Include <sys/vfs.h>, not <sys/statfs.h>.
21806
21807         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
21808         Include <sys/vfs.h>, not <sys/statfs.h>.
21809
21810 2008-10-01  Bruno Haible  <bruno@clisp.org>
21811
21812         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
21813         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
21814         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
21815         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
21816         * doc/posix-functions/posix_spawnp.texi: Likewise.
21817         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
21818         whether posix_spawn actually works.
21819         * m4/pipe.m4 (gl_PIPE): Likewise.
21820         * modules/execute (Files): Add m4/posix_spawn.m4.
21821         * modules/pipe (Files): Add m4/posix_spawn.m4.
21822         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
21823
21824 2008-10-01  Jim Meyering  <meyering@redhat.com>
21825
21826         remove trailing spaces
21827         * NEWS: Likewise.
21828         * lib/poll.c (poll): Likewise.
21829         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
21830         * lib/winsock.c (rpl_close): Likewise.
21831         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
21832         * modules/yield: Likewise.
21833         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
21834         * tests/test-sys_select.c (connect_to_socket): Likewise.
21835
21836         fts.c: adjust a new interface to be more generally useful
21837         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
21838         (fts_build): Adjust caller.
21839
21840 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21841
21842         * modules/cond-tests: New file.
21843         * tests/test-cond.c: New file.
21844
21845 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21846             Bruno Haible  <bruno@clisp.org>
21847
21848         * modules/cond (Dependencies): Add errno, time.
21849         * lib/glthread/cond.h: Include <time.h>.
21850         (gl_cond_define, gl_cond_define_initialized): Use the same definition
21851         across platforms.
21852
21853 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21854             Bruno Haible  <bruno@clisp.org>
21855
21856         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
21857
21858 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21859             Bruno Haible  <bruno@clisp.org>
21860
21861         * modules/tls-tests (Depends-on): Add thread, yield.
21862         (configure.ac): Remove all checks.
21863         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
21864         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
21865         gl_thread_self): Remove definitions. Include glthread/thread.h and
21866         glthread/yield.h instead.
21867         (test_tls): Pass an additional NULL argument to gl_thread_join.
21868
21869 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21870             Bruno Haible  <bruno@clisp.org>
21871
21872         * modules/lock-tests (Depends-on): Add thread, yield.
21873         (configure.ac): Remove all checks.
21874         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
21875         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
21876         gl_thread_self): Remove definitions. Include glthread/thread.h and
21877         glthread/yield.h instead.
21878         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
21879         additional NULL argument to gl_thread_join.
21880
21881 2008-09-30  Bruno Haible  <bruno@clisp.org>
21882
21883         Fix the Win32 implementation of the 'thread' module.
21884         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
21885         pointer type.
21886         (gl_thread_self): Invoke gl_thread_self_func.
21887         (gl_thread_self_func): New declaration.
21888         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
21889         (do_init_self_key, init_self_key): New functions.
21890         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
21891         Remove some fields.
21892         (running_threads, running_lock): Remove variables.
21893         (get_current_thread_handle): New function.
21894         (gl_thread_self_func, wrapper_func, glthread_create_func,
21895         glthread_join_func, gl_thread_exit_func): Largely rewritten and
21896         simplified.
21897
21898 2008-09-30  Bruno Haible  <bruno@clisp.org>
21899
21900         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
21901         files.
21902
21903 2008-09-30  Jim Meyering  <meyering@redhat.com>
21904
21905         fts.m4: correct the test for statfs.f_type
21906         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
21907         when checking for statfs.f_type.
21908
21909 2008-09-15  Simon Josefsson  <simon@josefsson.org>
21910
21911         tests: avoid some compiler warnings
21912         * tests/test-memchr.c (main): Pass NULL indirectly.
21913         * tests/test-getdate.c (main): Remove unused variable 'ret'.
21914
21915 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
21916
21917         getdate.y: disallow countable dayshifts like "4 yesterday ago"
21918         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
21919         exactly specified dayshifts.
21920         (dayshift): New rule.
21921         (rel): Add dayshift.
21922         (relative_time_table) [tomorrow, yesterday, today, now]:
21923         Use tDAY_SHIFT in place of tDAY_UNIT.
21924         * tests/test-getdate.c: Add tests for now-disallowed countable
21925         dayshifts, e.g., "4 yesterday ago".
21926
21927 2008-09-29  Bruno Haible  <bruno@clisp.org>
21928
21929         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
21930         * tests/test-posix_spawn1.in.sh: Renamed from
21931         tests/test-posix_spawn.in.sh.
21932         * tests/test-posix_spawn2.c: New file.
21933         * tests/test-posix_spawn2.in.sh: New file.
21934         * modules/posix_spawnp-tests (Files): Update.
21935         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
21936
21937 2008-09-29  Bruno Haible  <bruno@clisp.org>
21938
21939         Propagate effects of putenv/setenv/unsetenv to child processes.
21940         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
21941         * lib/pipe.c (create_pipe): Likewise.
21942
21943 2008-09-29  Bruno Haible  <bruno@clisp.org>
21944
21945         Enable use of shell scripts as executables in mingw.
21946         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
21947         run the program as a shell script.
21948         * lib/pipe.c (create_pipe): Likewise.
21949         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
21950         resulting array.
21951
21952 2008-09-29  Eric Blake  <ebb9@byu.net>
21953
21954         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
21955
21956 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
21957
21958         * doc/posix-functions/accept.texi: Update mingw problems.
21959         * doc/posix-functions/bind.texi: Update mingw problems.
21960         * doc/posix-functions/close.texi: Update mingw problems.
21961         * doc/posix-functions/connect.texi: Update mingw problems.
21962         * doc/posix-functions/getpeername.texi: Update mingw problems.
21963         * doc/posix-functions/getsockname.texi: Update mingw problems.
21964         * doc/posix-functions/getsockopt.texi: Update mingw problems.
21965         * doc/posix-functions/ioctl.texi: Update mingw problems.
21966         * doc/posix-functions/listen.texi: Update mingw problems.
21967         * doc/posix-functions/recv.texi: Update mingw problems.
21968         * doc/posix-functions/recvfrom.texi: Update mingw problems.
21969         * doc/posix-functions/select.texi: Update mingw problems.
21970         * doc/posix-functions/send.texi: Update mingw problems.
21971         * doc/posix-functions/sendto.texi: Update mingw problems.
21972         * doc/posix-functions/setsockopt.texi: Update mingw problems.
21973         * doc/posix-functions/socket.texi: Update mingw problems.
21974
21975 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
21976             Bruno Haible  <bruno@clisp.org>
21977
21978         * lib/sys_select.in.h: Include sys/time.h.
21979         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
21980         * modules/sys_select: Depend on sys_time.
21981         * tests/test-sys_select.c: Test that sys/select.h defines struct
21982         timeval fully.
21983
21984 2008-09-29  Bruno Haible  <bruno@clisp.org>
21985
21986         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
21987         * lib/sys_select.in.h: Likewise.
21988
21989 2008-09-29  Bruno Haible  <bruno@clisp.org>
21990
21991         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
21992
21993 2008-09-29  Bruno Haible  <bruno@clisp.org>
21994
21995         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
21996         Set LIBSOCKET instead of augmenting LIBS.
21997         * modules/sockets (Link): New section.
21998         * modules/sockets-tests (test_sockets_LDADD): New variable.
21999         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
22000         * modules/poll-tests (test_poll_LDADD): New variable.
22001         * NEWS: Document the change.
22002
22003 2008-09-29  Bruno Haible  <bruno@clisp.org>
22004
22005         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
22006         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
22007         ARPA_INET_H directly.
22008         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
22009
22010 2008-09-28  Bruno Haible  <bruno@clisp.org>
22011
22012         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
22013         from gl_HEADER_SYS_SOCKET.
22014         (gl_HEADER_SYS_SOCKET): Invoke it.
22015         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22016
22017 2008-09-28  Bruno Haible  <bruno@clisp.org>
22018
22019         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
22020         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
22021         Needed on OSF/1 4.0.
22022
22023 2008-09-28  Bruno Haible  <bruno@clisp.org>
22024
22025         Override open more carefully.
22026         * lib/open.c (orig_open): New function.
22027         (rpl_open): Use orig_open instead of open.
22028         * lib/fcntl.in.h: Add special invocation convention.
22029         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
22030         (gl_FUNC_OPEN): Invoke it.
22031
22032         Override freopen more carefully.
22033         * lib/freopen.c (orig_freopen): New function.
22034         (rpl_freopen): Use orig_freopen instead of freopen.
22035         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
22036         (gl_FUNC_FREOPEN): Invoke it.
22037
22038         Override fopen more carefully.
22039         * lib/fopen.c (orig_fopen): New function.
22040         (rpl_fopen): Use orig_fopen instead of fopen.
22041         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
22042         (gl_FUNC_FOPEN): Invoke it.
22043         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
22044
22045 2008-09-28  Bruno Haible  <bruno@clisp.org>
22046
22047         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
22048         SIGPIPE.
22049
22050 2008-09-28  Bruno Haible  <bruno@clisp.org>
22051
22052         * tests/test-sigaction.c (handler, main): Disable the check whether
22053         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
22054         glibc systems with LinuxThreads.
22055
22056 2008-09-28  Bruno Haible  <bruno@clisp.org>
22057
22058         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
22059
22060         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
22061         with AIX xlc.
22062         * lib/fcntl.in.h (open): Likewise.
22063         Reported by Rainer Tammer <tammer@tammer.net>.
22064
22065 2008-09-28  Bruno Haible  <bruno@clisp.org>
22066
22067         * modules/posix_spawnp-tests: New file.
22068         * tests/test-posix_spawn.c: New file.
22069         * tests/test-posix_spawn.in.sh: New file.
22070
22071         New module 'posix_spawnp'.
22072         * modules/posix_spawnp: New file.
22073         * lib/spawnp.c: New file, from GNU libc with modifications.
22074         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
22075
22076         New module 'posix_spawn'.
22077         * modules/posix_spawn: New file.
22078         * lib/spawn.c: New file, from GNU libc with modifications.
22079         * doc/posix-functions/posix_spawn.texi: Mention the new module.
22080
22081         New module 'posix_spawnattr_destroy'.
22082         * modules/posix_spawnattr_destroy: New file.
22083         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
22084         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
22085         module.
22086
22087         New module 'posix_spawnattr_setsigmask'.
22088         * modules/posix_spawnattr_setsigmask: New file.
22089         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
22090         modifications.
22091         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
22092         new module.
22093
22094         New module 'posix_spawnattr_getsigmask'.
22095         * modules/posix_spawnattr_getsigmask: New file.
22096         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
22097         modifications.
22098         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
22099         new module.
22100
22101         New module 'posix_spawnattr_setsigdefault'.
22102         * modules/posix_spawnattr_setsigdefault: New file.
22103         * lib/spawnattr_setdefault.c: New file, from GNU libc with
22104         modifications.
22105         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
22106         new module.
22107
22108         New module 'posix_spawnattr_getsigdefault'.
22109         * modules/posix_spawnattr_getsigdefault: New file.
22110         * lib/spawnattr_getdefault.c: New file, from GNU libc with
22111         modifications.
22112         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
22113         new module.
22114
22115         New module 'posix_spawnattr_setschedpolicy'.
22116         * modules/posix_spawnattr_setschedpolicy: New file.
22117         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
22118         modifications.
22119         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
22120         new module.
22121
22122         New module 'posix_spawnattr_getschedpolicy'.
22123         * modules/posix_spawnattr_getschedpolicy: New file.
22124         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
22125         modifications.
22126         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
22127         new module.
22128
22129         New module 'posix_spawnattr_setschedparam'.
22130         * modules/posix_spawnattr_setschedparam: New file.
22131         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
22132         modifications.
22133         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
22134         new module.
22135
22136         New module 'posix_spawnattr_getschedparam'.
22137         * modules/posix_spawnattr_getschedparam: New file.
22138         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
22139         modifications.
22140         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
22141         new module.
22142
22143         New module 'posix_spawnattr_setpgroup'.
22144         * modules/posix_spawnattr_setpgroup: New file.
22145         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
22146         modifications.
22147         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
22148         module.
22149
22150         New module 'posix_spawnattr_getpgroup'.
22151         * modules/posix_spawnattr_getpgroup: New file.
22152         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
22153         modifications.
22154         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
22155         module.
22156
22157         New module 'posix_spawnattr_setflags'.
22158         * modules/posix_spawnattr_setflags: New file.
22159         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
22160         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
22161         module.
22162
22163         New module 'posix_spawnattr_getflags'.
22164         * modules/posix_spawnattr_getflags: New file.
22165         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
22166         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
22167         module.
22168
22169         New module 'posix_spawnattr_init'.
22170         * modules/posix_spawnattr_init: New file.
22171         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
22172         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
22173         module.
22174
22175         New module 'posix_spawn_file_actions_destroy'.
22176         * modules/posix_spawn_file_actions_destroy: New file.
22177         * lib/spawn_faction_destroy.c: New file, from GNU libc with
22178         modifications.
22179         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
22180         the new module.
22181
22182         New module 'posix_spawn_file_actions_addopen'.
22183         * modules/posix_spawn_file_actions_addopen: New file.
22184         * lib/spawn_faction_addopen.c: New file, from GNU libc with
22185         modifications.
22186         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
22187         the new module.
22188
22189         New module 'posix_spawn_file_actions_adddup2'.
22190         * modules/posix_spawn_file_actions_adddup2: New file.
22191         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
22192         modifications.
22193         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
22194         the new module.
22195
22196         New module 'posix_spawn_file_actions_addclose'.
22197         * modules/posix_spawn_file_actions_addclose: New file.
22198         * lib/spawn_faction_addclose.c: New file, from GNU libc with
22199         modifications.
22200         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
22201         the new module.
22202
22203         New module 'posix_spawn_file_actions_init'.
22204         * modules/posix_spawn_file_actions_init: New file.
22205         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
22206         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
22207         new module.
22208
22209         New module 'posix_spawn-internal'.
22210         * modules/posix_spawn-internal: New file.
22211         * lib/spawn_int.h: New file, from GNU libc with modifications.
22212         * lib/spawni.c: New file, from GNU libc with modifications.
22213         * m4/posix_spawn.m4: New file.
22214
22215         New module 'spawn'.
22216         * modules/spawn: New file.
22217         * lib/spawn.in.h: New file, from GNU libc with modifications.
22218         * m4/spawn_h.m4: New file.
22219         * doc/posix-headers/spawn.texi: Mention the new module.
22220
22221 2008-09-28  Bruno Haible  <bruno@clisp.org>
22222
22223         * modules/sched-tests: New file.
22224         * tests/test-sched.c: New file.
22225
22226         New module 'sched'.
22227         * modules/sched: New file.
22228         * lib/sched.in.h: New file.
22229         * m4/sched_h.m4: New file.
22230         * doc/posix-headers/sched.texi: Mention the new module.
22231
22232 2008-09-27  Eric Blake  <ebb9@byu.net>
22233
22234         Fix previous patch, and tweak references to $0.
22235         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
22236         (func_version, func_gnulib_dir): Don't call this program
22237         gnulib-tool.
22238         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
22239         with using $0 in function.
22240         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
22241         (func_fatal_error): Reuse the name the user invoked us with.
22242
22243 2008-09-27  Bruno Haible  <bruno@clisp.org>
22244
22245         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
22246         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
22247         (gl_ICONV_H): Not here.
22248         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
22249         instead of assigning ICONV_H directly.
22250
22251         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
22252         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
22253         WCHAR_H directly.
22254
22255 2008-09-27  Bruno Haible  <bruno@clisp.org>
22256
22257         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
22258         * modules/arpa_inet (Depends-on): Add link-warning.
22259         (Makefile.am): Insert the definition of GL_LINK-WARNING.
22260         * modules/unistd (Makefile.am): Likewise.
22261
22262 2008-09-26  Bruno Haible  <bruno@clisp.org>
22263
22264         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
22265         variables.
22266         (func_version): Essentially copied from gnulib-tool.
22267         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
22268         func_readlink): Copied from gnulib-tool.
22269
22270 2008-09-26  Bruno Haible  <bruno@clisp.org>
22271
22272         * gnulib-tool (func_version): Change directory to $gnulib_dir before
22273         invoking git-version-gen.
22274
22275 2008-09-26  Bruno Haible  <bruno@clisp.org>
22276
22277         * posix-modules: Update to directory names changed on 2008-01-19.
22278         Remove commas in output before splitting into words. No more need to
22279         avoid 'ftruncate' since 2007-02-19.
22280
22281 2008-09-26  Bruno Haible  <bruno@clisp.org>
22282
22283         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
22284
22285 2008-09-26  Bruno Haible  <bruno@clisp.org>
22286
22287         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
22288         * modules/fwriteerror (Depends-on): Add errno.
22289
22290 2008-09-26  Bruno Haible  <bruno@clisp.org>
22291
22292         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
22293         * tests/test-vc-list-files-cvs.sh: Likewise.
22294
22295 2008-09-26  Bruno Haible  <bruno@clisp.org>
22296
22297         * doc/posix-headers/sys_resource.texi: Reorder items.
22298
22299 2008-09-26  Jim Meyering  <meyering@redhat.com>
22300
22301         fts: tweak inode comparison function
22302         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
22303         inode numbers, as documented.
22304
22305         fts: sort dirent entries on inode number before traversing
22306         This avoids a quadratic, seek-related performance penalty when
22307         operating on a directory containing many entries (measurable at 10k;
22308         3.5 hours at 2 million entries with a cold cache) on certain types
22309         of file systems, including ext3 and ext4, but not tmpfs.
22310         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
22311         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
22312         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
22313         (fs_handles_readdir_ordered_dirents_efficiently): New function.
22314         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
22315         (fts_build): Set the stat.st_ino member from D_INO.
22316         If it is likely to be useful, sort dirent entries on inode number.
22317
22318         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
22319         and the struct statfs.f_type member.
22320         * modules/fts (Depends-on): Add d-ino.
22321
22322 2008-09-26  Bruno Haible  <bruno@clisp.org>
22323
22324         * modules/sigpipe-die (Depends-on): Add sigpipe.
22325
22326         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
22327         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
22328         and GNULIB_STDIO_H_SIGPIPE are set.
22329         * lib/stdio-write.c: New file.
22330         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
22331         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
22332         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
22333         REPLACE_STDIO_WRITE_FUNCS.
22334         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
22335         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
22336         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
22337         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
22338         * modules/stdio (Files): Add lib/stdio-write.c.
22339         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
22340         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
22341         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
22342         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
22343         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
22344         REPLACE_FPRINTF_POSIX.
22345         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
22346         REPLACE_PRINTF_POSIX.
22347         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
22348         REPLACE_VFPRINTF_POSIX.
22349         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
22350         REPLACE_VPRINTF_POSIX.
22351         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
22352         SIGPIPE issue.
22353         * doc/posix-functions/fputc.texi: Likewise.
22354         * doc/posix-functions/fputs.texi: Likewise.
22355         * doc/posix-functions/fwrite.texi: Likewise.
22356         * doc/posix-functions/printf.texi: Likewise.
22357         * doc/posix-functions/putc.texi: Likewise.
22358         * doc/posix-functions/putchar.texi: Likewise.
22359         * doc/posix-functions/puts.texi: Likewise.
22360         * doc/posix-functions/vfprintf.texi: Likewise.
22361         * doc/posix-functions/vprintf.texi: Likewise.
22362
22363         * modules/safe-write (Depends-on): Add write.
22364
22365         * modules/sigpipe-tests: New file.
22366         * tests/test-sigpipe.c: New file.
22367         * tests/test-sigpipe.sh: New file.
22368
22369         * modules/write: New file.
22370         * lib/unistd.in.h: Include <sys/types.h>.
22371         (write): New declaration.
22372         * lib/write.c: New file.
22373         * m4/write.m4: New file.
22374         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22375         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
22376         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
22377         GNULIB_WRITE, REPLACE_WRITE.
22378         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
22379         and the SIGPIPE issue.
22380
22381         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
22382         (raise): New declaration.
22383         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
22384         (ext_signal): New function.
22385         (rpl_raise): New function.
22386         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
22387         GNULIB_SIGNAL_H_SIGPIPE.
22388         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
22389         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
22390
22391         * modules/sigpipe: New file.
22392         * m4/sigpipe.m4: New file.
22393
22394 2008-09-25  Derek Price  <derek@ximbiot.com>
22395             Bruno Haible  <bruno@clisp.org>
22396
22397         * gnulib-tool (func_import): Report all license incompatibilities, not
22398         just the first one.
22399
22400 2008-09-25  Bruno Haible  <bruno@clisp.org>
22401
22402         * gnulib-tool (func_import): When computing the edits, consider not
22403         only the Makefile.ams that exist but also those that will be generated.
22404
22405 2008-09-25  Simon Josefsson  <simon@josefsson.org>
22406
22407         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
22408         fixes gnulib-tool --test warning about duplicate dependency.
22409
22410 2008-09-25  Bruno Haible  <bruno@clisp.org>
22411
22412         * gnulib-tool: Don't ask the user to perform edits in the generated
22413         Makefile.ams.
22414         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
22415         apply to the Makefile.am being generated.
22416         (func_emit_tests_Makefile_am): Execute edits that apply to the
22417         Makefile.am being generated.
22418         (func_import): Setup list of Makefile.am edits before emitting the
22419         Makefile.ams, not at the end.
22420         (func_create_testdir): Update.
22421         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
22422
22423 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22424
22425         * gnulib-tool (func_import): Store the --tests-base option in the
22426         comment in gnulib-cache.m4.
22427
22428 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
22429
22430         * NEWS: Document increased portability that sys_select now provides.
22431
22432         * lib/sys_select.in.h: Install select wrapper.
22433         * lib/sys_socket.in.h: Use more descriptive name when there is no
22434         select wrapper.
22435         * lib/winsock-select.c: New.
22436         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
22437         Require gl_HEADER_SYS_SOCKET.
22438         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
22439         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
22440         * tests/test-sys_select.c: Add functional tests.
22441
22442 2008-09-24  Eric Blake  <ebb9@byu.net>
22443
22444         open, fopen: close fd leak in last patch
22445         * lib/open.c (rpl_open): Close fd before returning error.
22446         * lib/fopen.c (rpl_fopen): Close fd before returning error.
22447         * doc/posix-functions/open.texi (open): Document that Irix also
22448         has the bug.
22449         * doc/posix-functions/fopen.texi (fopen): Likewise.
22450         Reported by Paolo Bonzini.
22451
22452 2008-09-24  Bruno Haible  <bruno@clisp.org>
22453
22454         Ensure that a filename ending in a slash cannot be used to access a
22455         non-directory.
22456         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
22457         to check whether it's really a directory.
22458         * lib/fopen.c: Include fcntl.h, unistd.h.
22459         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
22460         and fdopen().
22461         * modules/fopen (Depends-on): Add unistd.
22462         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
22463         * tests/test-fopen.c (main): Likewise.
22464         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
22465         * doc/posix-functions/fopen.texi: Likewise.
22466         Reported by Eric Blake.
22467
22468 2008-09-23  Eric Blake  <ebb9@byu.net>
22469
22470         c-stack: avoid compiler optimizations when provoking overflow
22471         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
22472         recursion harder to optimize, to ensure a stack overflow occurs.
22473         * tests/test-c-stack.c (recurse): Likewise.
22474         Borrowed from libsigsegv.
22475
22476         c-stack: work around Irix sigaltstack bug
22477         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
22478         whether sigaltstack uses wrong end of stack_t (copied in part from
22479         libsigsegv).
22480         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
22481         Irix bug, without requiring an over-allocation.
22482         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
22483         bug.
22484
22485         fopen: document mingw bug on directories
22486         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
22487         not allowing a stream visiting a directory, even though reading
22488         from such a stream is not portable.
22489
22490 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
22491
22492         * lib/poll.c: Rewrite.
22493         * modules/poll: Depend on alloca.
22494
22495 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
22496
22497         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
22498         instead define prototypes for a full set of wrappers.  Ensure
22499         that Cygwin does not use the compatibility code, which is only
22500         for MinGW.
22501         * lib/winsock.c: New.
22502         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
22503         * modules/sys_socket: Add lib/winsock.c.
22504
22505         * modules/poll-tests: Add errno and perror.
22506         * tests/test-poll.c: Use ioctl, not ioctlsocket.
22507
22508 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
22509
22510         * tests/test-poll.c: Downgrade minimum needed Winsock version.
22511
22512 2008-09-23  Bruno Haible  <bruno@clisp.org>
22513
22514         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
22515         * doc/glibc-functions/*: Likewise.
22516
22517 2008-09-23  Simon Josefsson  <simon@josefsson.org>
22518
22519         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
22520         success.
22521
22522 2008-09-22  Eric Blake  <ebb9@byu.net>
22523             Bruno Haible  <bruno@clisp.org>
22524
22525         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
22526         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
22527         supply %A but mishandle pseudo-NaN.
22528         Reported by Simon Josefsson.
22529
22530 2008-09-21  Bruno Haible  <bruno@clisp.org>
22531
22532         * tests/test-lock.c (main): Tweak skip message.
22533         * tests/test-tls.c (main): Likewise.
22534
22535 2008-09-21  Bruno Haible  <bruno@clisp.org>
22536
22537         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
22538         whether 'struct sigaction' has sa_sigaction here...
22539         (gl_PREREQ_SIG_HANDLER_H): ... not here.
22540         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
22541
22542 2008-09-21  Bruno Haible  <bruno@clisp.org>
22543
22544         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
22545         section.
22546         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
22547         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
22548         the new section.
22549         (Support for obsolete systems lacking POSIX:2001): New section.
22550         (String handling <string.h>): Move strdup to the new section.
22551         Suggested by Simon Josefsson and Paolo Bonzini.
22552
22553 2008-09-21  Bruno Haible  <bruno@clisp.org>
22554
22555         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
22556         exponents in %e and %g results on 'long double'. Needed for mingw's
22557         improved *printf functions.
22558         * tests/test-vasprintf-posix.c (test_function): Likewise.
22559         * tests/test-snprintf-posix.h (test_function): Likewise.
22560         * tests/test-sprintf-posix.h (test_function): Likewise.
22561         Reported by Eric Blake.
22562
22563 2008-09-21  Bruno Haible  <bruno@clisp.org>
22564
22565         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
22566         * tests/test-sprintf-posix.h (test_function): Likewise.
22567
22568 2008-09-21  Bruno Haible  <bruno@clisp.org>
22569
22570         * modules/getpass (Depends-on): Add strdup-posix.
22571
22572         New module 'strdup-posix'.
22573         * modules/strdup-posix: New file.
22574         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
22575         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
22576         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
22577         REPLACE_STRDUP.
22578         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
22579         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
22580         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22581         strdup-posix.
22582
22583         * modules/strdup (Depends-on): Remove malloc-posix.
22584
22585 2008-09-20  Bruno Haible  <bruno@clisp.org>
22586
22587         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
22588         Wildenhues.
22589
22590 2008-09-20  Bruno Haible  <bruno@clisp.org>
22591
22592         Ensure that wint_t gets defined on IRIX 5.3.
22593         * lib/wchar.in.h (wint_t): Define if not defined by the system.
22594         * lib/wctype.in.h (wint_t): Likewise.
22595         (__wctype_wint_t): Remove type.
22596         (isw*): Use wint_t instead of __wctype_wint_t.
22597         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
22598         * modules/wchar (Files): Add m4/wint_t.m4.
22599         (Makefile.am): Substitute HAVE_WINT_T.
22600         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
22601         * tests/test-wctype.c: Check that wint_t is defined.
22602         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
22603         * doc/posix-headers/wctype.texi: Likewise.
22604         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22605
22606 2008-09-18  Bruno Haible  <bruno@clisp.org>
22607
22608         * gnulib-tool (func_exit): Update comment.
22609
22610 2008-09-18  Simon Josefsson  <simon@josefsson.org>
22611
22612         * modules/getaddrinfo (Depends-on): Remove strdup, this module
22613         assumes strdup exists and does not depend on strdup to return
22614         ENOMEM on out of memory conditions.
22615
22616 2008-09-18  Bruno Haible  <bruno@clisp.org>
22617
22618         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
22619         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
22620         digits for the exponent.
22621
22622 2008-09-18  Jim Meyering  <meyering@redhat.com>
22623             Bruno Haible  <bruno@clisp.org>
22624
22625         * lib/vasnprintf.c (decimal_point_char): Define also if
22626         NEED_PRINTF_INFINITE_LONG_DOUBLE.
22627
22628 2008-09-16  Bruno Haible  <bruno@clisp.org>
22629         and Eric Blake  <ebb9@byu.net>
22630
22631         vasnprintf: support Irix 5.3
22632         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
22633         that mishandle long double infinity.
22634         Reported by Tom G. Christensen.
22635
22636 2008-09-16  Bruno Haible  <bruno@clisp.org>
22637
22638         * doc/glibc-functions/scandir.texi: Mention the function is missing on
22639         Solaris 9.
22640         * doc/glibc-functions/alphasort.texi: Likewise.
22641         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
22642
22643 2008-09-16  Jim Meyering  <meyering@redhat.com>
22644
22645         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
22646         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
22647         a umask modification leak out of a subshell.  Otherwise, the
22648         opensolaris /bin/sh would be accepted and thus cause unwarranted
22649         failures in the coreutils test suite.
22650
22651 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
22652
22653         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
22654         to succeed.
22655
22656 2008-09-16  Jim Meyering  <meyering@redhat.com>
22657
22658         avoid spurious test failure when library is built without ACL support
22659         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
22660         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
22661         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
22662         * tests/test-copy-acl.sh: Likewise.
22663
22664 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22665
22666         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
22667         based on character occurrence counts.
22668
22669 2008-09-15  Eric Blake  <ebb9@byu.net>
22670
22671         tests: avoid some compiler warnings
22672         * tests/test-memchr.c (main): Pass NULL indirectly.
22673         * tests/test-closein.c (main): Avoid unused variable.
22674
22675 2008-09-15  Bruno Haible  <bruno@clisp.org>
22676
22677         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
22678         are missing on OpenBSD 4.0 individually.
22679         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
22680
22681 2008-09-15  Bruno Haible  <bruno@clisp.org>
22682
22683         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
22684         * doc/posix-functions/strerror.texi: Mention also Cygwin.
22685         * doc/posix-functions/perror.texi: Likewise.
22686         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
22687         is missing.
22688         Reported by Eric Blake.
22689
22690         * lib/errno.in.h: Use replacement values >= 2000.
22691         Reported by Eric Blake.
22692
22693 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22694
22695         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
22696         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
22697         limit.
22698         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
22699         compareseq was aborted.
22700
22701 2008-09-14  Bruno Haible  <bruno@clisp.org>
22702
22703         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
22704         yvec_edit_count.
22705         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
22706         (fstrcmp_bounded): Simplify result computation accordingly.
22707
22708 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22709
22710         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
22711         (fstrcmp): Define in terms of fstrcmp_bounded.
22712         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
22713         lower_bound argument.
22714         Return quickly if the result is certainly < lower_bound.
22715         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
22716
22717 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22718
22719         * lib/diffseq.h (EARLY_ABORT): New macro.
22720         (compareseq): Change return type to bool. Return true when EARLY_ABORT
22721         evaluates to true.
22722
22723 2008-09-14  Bruno Haible  <bruno@clisp.org>
22724
22725         * modules/perror-tests: New file.
22726         * tests/test-perror.sh: New file.
22727         * tests/test-perror.c: New file.
22728
22729         New module 'perror'.
22730         * lib/stdio.in.h (perror): New declaration.
22731         * lib/perror.c: New file.
22732         * m4/perror.m4: New file.
22733         * modules/perror: New file.
22734         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
22735         * doc/posix-functions/perror.texi: Mention the perror module.
22736         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
22737         REPLACE_PERROR.
22738         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
22739         REPLACE_PERROR.
22740
22741 2008-09-14  Bruno Haible  <bruno@clisp.org>
22742
22743         * modules/stdio (Makefile.am): Reorder to match the order in
22744         lib/stdio.in.h.
22745         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
22746
22747 2008-09-13  Bruno Haible  <bruno@clisp.org>
22748
22749         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
22750
22751 2008-09-13  Bruno Haible  <bruno@clisp.org>
22752
22753         Extend strerror to cover the added errno values.
22754         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
22755         (rpl_strerror): Provide error messages for the added errno values and
22756         for the WSA* values.
22757         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
22758         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
22759         strerror.
22760         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
22761         * modules/strerror (Depends-on): Add errno.
22762         * doc/posix-functions/strerror.texi: Document the change.
22763         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
22764         and EOVERFLOW.
22765
22766 2008-09-13  Bruno Haible  <bruno@clisp.org>
22767
22768         * modules/EOVERFLOW: Remove file.
22769         * m4/eoverflow.m4: Remove file.
22770         * modules/EOVERFLOW-tests: Remove file.
22771         * tests/test-EOVERFLOW.c: Remove file.
22772         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
22773         * modules/ftell (Depends-on): Likewise.
22774         * modules/getdelim (Depends-on): Likewise.
22775         * modules/getugroups (Depends-on): Likewise.
22776         * modules/poll (Depends-on): Likewise.
22777         * modules/snprintf (Depends-on): Likewise.
22778         * modules/sprintf-posix (Depends-on): Likewise.
22779         * modules/vasnprintf (Depends-on): Likewise.
22780         * modules/vasprintf (Depends-on): Likewise.
22781         * modules/vfprintf-posix (Depends-on): Likewise.
22782         * modules/vsnprintf (Depends-on): Likewise.
22783         * modules/vsprintf-posix (Depends-on): Likewise.
22784         * modules/xvasprintf (Depends-on): Likewise.
22785         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
22786         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
22787         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
22788         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
22789         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
22790         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
22791         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
22792         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
22793         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
22794         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
22795         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
22796         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
22797         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
22798         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
22799         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
22800         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
22801         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
22802         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
22803         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
22804         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
22805         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
22806         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
22807         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
22808         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
22809         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
22810         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
22811         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
22812         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
22813         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
22814         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
22815         * MODULES.html.sh: Remove EOVERFLOW.
22816         * NEWS: Mention the change.
22817
22818 2008-09-13  Bruno Haible  <bruno@clisp.org>
22819
22820         * modules/errno-tests: New file.
22821         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
22822
22823         * lib/errno.in.h: New file.
22824         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
22825         * modules/errno: New file.
22826         * doc/posix-headers/errno.texi: Update documentation.
22827         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
22828
22829 2008-09-13  Bruno Haible  <bruno@clisp.org>
22830
22831         * tests/test-poll.c: Use #if for native Windows, rather than testing
22832         __MSVCRT__.
22833
22834 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22835             Bruno Haible  <bruno@clisp.org>
22836
22837         * lib/glob.c: Don't include <pwd.h> on native Windows.
22838         (WINDOWS32): New macro.
22839         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
22840
22841 2008-09-13  Bruno Haible  <bruno@clisp.org>
22842
22843         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
22844         (ETIMEDOUT): Remove macro.
22845         (glthread_cond_timedwait_multithreaded): New declaration.
22846         (glthread_cond_timedwait): Use it.
22847         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
22848         (glthread_cond_timedwait_multithreaded): New function.
22849
22850 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
22851
22852         * modules/poll-tests: Do not check for io.h.
22853         * tests/test-poll.c: Check for __MSVCRT__ instead.
22854
22855 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
22856
22857         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
22858         * modules/poll-tests: Add inet_pton, stdbool, sockets.
22859         * tests/test-poll.c: Use them.  Use _pipe on Windows.
22860
22861 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
22862
22863         * modules/poll-tests: New.
22864         * tests/test-poll.c: New.
22865
22866 2008-09-12  Eric Blake  <ebb9@byu.net>
22867
22868         frexp: test for NetBSD failure on -0.0
22869         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
22870         not all, bugs from NetBSD 3.0 have been fixed.
22871         * doc/posix-functions/frexp.texi (frexp): Document bug.
22872         Reported by Thomas Klausner.
22873
22874         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
22875         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
22876         literal -0.0.
22877         Reported by Jonathan C. Patschke <jp@centtech.com>.
22878
22879 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22880
22881         * lib/glthread/cond.h: Use dummy implementation also if
22882         USE_WIN32_THREADS.
22883
22884 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22885
22886         * modules/fnmatch-posix (License): Change to LGPLv2+.
22887         * modules/fnmatch-gnu (License): Likewise.
22888
22889 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22890
22891         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
22892
22893 2008-09-11  Jim Meyering  <meyering@redhat.com>
22894
22895         * users.txt: Add gtk-vnc.
22896
22897 2008-09-08  Simon Josefsson  <simon@josefsson.org>
22898
22899         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
22900         rotate amounts.
22901
22902         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
22903         required for 16-bit and 8-bit rotates.
22904         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
22905         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
22906         UINT8_MAX instead of hard-coded constants.
22907         Suggested by Paul Eggert.
22908
22909 2008-09-07  Bruno Haible  <bruno@clisp.org>
22910
22911         * tests/test-striconveh.c (main): Check behaviour when converting from
22912         UTF-7.
22913
22914         Make striconveh work better with stateful encodings.
22915         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
22916         that iconv does not increment the inptr when returning -1/EINVAL.
22917
22918 2008-09-07  Bruno Haible  <bruno@clisp.org>
22919
22920         * build-aux/config.rpath: Update according to libtool-2.2.6.
22921         * build-aux/config.libpath: Likewise.
22922
22923 2008-09-06  Bruno Haible  <bruno@clisp.org>
22924
22925         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
22926         * lib/freadptr.c (freadptr): Likewise.
22927         * lib/freadseek.c (freadptrinc): Likewise.
22928         Reported by Simon Josefsson.
22929
22930 2008-09-06  Bruno Haible  <bruno@clisp.org>
22931
22932         * modules/freadptr (License): Change to LGPLv2+.
22933         * modules/freadseek (License): Likewise.
22934         Suggested by Eric Blake.
22935
22936         * modules/memchr2 (License): Change to LGPLv2+.
22937         Approved by Eric Blake.
22938
22939 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22940             Bruno Haible  <bruno@clisp.org>
22941
22942         Make gnulib-tool work with native 'sed' on AIX.
22943         * gnulib-tool (sed_noop): New variable.
22944         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
22945         func_add_or_update, func_create_testdir): Use it to initialize sed
22946         script variables.
22947         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22948
22949 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
22950             Bruno Haible  <bruno@clisp.org>
22951
22952         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
22953         also works after #include directives.
22954
22955 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
22956
22957         getdate.y: reject an out-of-range timezone value
22958         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
22959         the range [-24...+24].  When specified with only one or two digits,
22960         * tests/test-getdate.c: Tests for the fix.
22961         * doc/getdate.texi: Document this change.
22962
22963 2008-09-03  Bruno Haible  <bruno@clisp.org>
22964
22965         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
22966
22967 2008-09-02  Simon Josefsson  <simon@josefsson.org>
22968
22969         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
22970         <bruce.korb@gmail.com> with ideas from Ben Pfaff
22971         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
22972         Blake <ebb9@byu.net>.
22973
22974         * tests/test-bitrotate.c: Add more test vectors.
22975
22976 2008-09-02  Eric Blake  <ebb9@byu.net>
22977
22978         vasnprintf-posix: handle large precision via %.*d
22979         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
22980         when handling it ourselves.
22981         * tests/test-vasnprintf-posix.c (test_function): Add test.
22982         * tests/test-snprintf-posix.h (test_function): Likewise.
22983         * tests/test-sprintf-posix.h (test_function): Likewise.
22984         * tests/test-vasprintf-posix.c (test_function): Likewise.
22985         Reported by Alain Guibert.
22986
22987 2008-09-01  Eric Blake  <ebb9@byu.net>
22988
22989         c-stack: make configure-time check more robust
22990         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
22991         successful sigaction call.
22992         Reported by Tom G. Christensen.
22993
22994 2008-09-01  Bruno Haible  <bruno@clisp.org>
22995
22996         New module 'findprog-lgpl'.
22997         * modules/findprog-lgpl: New file.
22998         * lib/findprog-lgpl.c: New file.
22999         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
23000         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
23001         to decide whether to use strdup or xstrdup, concatenated_filename or
23002         xconcatenated_filename.
23003
23004 2008-09-01  Bruno Haible  <bruno@clisp.org>
23005
23006         Split module 'concat-filename' into 'concat-filename' (LGPL) and
23007         'xconcat-filename' (GPL).
23008         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
23009         (License): Change to LGPLv2+.
23010         * modules/xconcat-filename: New file.
23011         * lib/concat-filename.h (concatenated_filename): Change specification.
23012         (xconcatenated_filename): New declaration.
23013         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
23014         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
23015         memory situations.
23016         * lib/xconcat-filename.c: New file.
23017         * NEWS: Mention the change.
23018         * lib/findprog.c: Include concat-filename.h, not filename.h.
23019         (find_in_path): Use xconcatenated_filename instead of
23020         concatenated_filename.
23021         * lib/javacomp.c: Include concat-filename.h, not filename.h.
23022         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
23023         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
23024         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
23025         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
23026         instead of concatenated_filename.
23027         * lib/javaexec.c: Include concat-filename.h, not filename.h.
23028         (execute_java_class): Use xconcatenated_filename instead of
23029         concatenated_filename.
23030         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
23031         * modules/javacomp (Depends-on): Likewise.
23032         * modules/javaexec (Depends-on): Likewise.
23033
23034 2008-09-01  Bruno Haible  <bruno@clisp.org>
23035
23036         Split module 'filename' into 'filename' and 'concat-filename'.
23037         * modules/filename: Keep only lib/filename.h.
23038         (License): Change to LGPLv2+.
23039         * modules/concat-filename: New file, extracted from modules/filename.
23040         * lib/filename.h (concatenated_filename): Remove declaration.
23041         * lib/concat-filename.h: New file, extracted from lib/filename.h.
23042         * lib/concat-filename.c: Include concat-filename.h.
23043         * NEWS: Mention the change.
23044
23045 2008-09-01  Simon Josefsson  <simon@josefsson.org>
23046
23047         * lib/bitrotate.h (rotl8, rotr8): Add.
23048
23049         * modules/bitrotate (configure.ac): Need
23050         AC_REQUIRE([AC_C_INLINE]).
23051         (Description): Mention stdint.h.  Reported by Bruno Haible
23052         <bruno@clisp.org>.
23053
23054         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
23055         Paolo Bonzini <bonzini@gnu.org>.
23056
23057 2008-08-31  Bruno Haible  <bruno@clisp.org>
23058
23059         Assume Solaris specific bi-arch conventions on Solaris systems.
23060         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
23061         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
23062         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
23063         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
23064         like acl_libdirstem.
23065         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
23066         acl_libdirstem.
23067         * NEWS: Mention the change.
23068         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
23069
23070 2008-08-31  Jim Meyering  <meyering@redhat.com>
23071
23072         * lib/strftime.h: Add comments describing the two added arguments.
23073
23074         remove duplicate #include directives
23075         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
23076         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
23077
23078 2008-08-31  Bruno Haible  <bruno@clisp.org>
23079
23080         New module 'sigpipe-die'.
23081         * modules/sigpipe-die: New file.
23082         * lib/sigpipe-die.h: New file.
23083         * lib/sigpipe-die.c: New file.
23084         * MODULES.html.sh (Signal handling): Add sigpipe-die.
23085
23086 2008-08-31  Bruno Haible  <bruno@clisp.org>
23087
23088         Don't override previously installed signal handlers.
23089         * lib/fatal-signal.c (saved_sigactions): New variable.
23090         (uninstall_handlers): Reset the signal to the saved handler, not
23091         to SIG_DFL (except when ignored).
23092         (install_handlers): Save the previous handlers.
23093
23094 2008-08-30  Bruno Haible  <bruno@clisp.org>
23095
23096         * gnulib-tool (func_reset_sigpipe): New function.
23097         (func_get_automake_snippet, func_modules_transitive_closure,
23098         func_import): Invoke it before a join command that reads from stdin,
23099         to avoid "echo: write error: Broken pipe" error messages on stderr.
23100         Reported by Sam Steingold <sds@gnu.org>.
23101
23102 2008-08-30  Bruno Haible  <bruno@clisp.org>
23103
23104         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
23105         Code copied from m4/open.m4.
23106         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
23107         access and the filename ends in a slash. Code copied from lib/open.c.
23108         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
23109         * tests/test-fopen.c (main): Check against bug with trailing slash.
23110
23111 2008-08-29  Bruno Haible  <bruno@clisp.org>
23112
23113         Avoid some "gcc -pedantic" warnings.
23114         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
23115         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
23116         * lib/dirent.in.h: Likewise.
23117         * lib/fcntl.in.h: Likewise.
23118         * lib/float.in.h: Likewise.
23119         * lib/iconv.in.h: Likewise.
23120         * lib/inttypes.in.h: Likewise.
23121         * lib/locale.in.h: Likewise.
23122         * lib/math.in.h: Likewise.
23123         * lib/netinet_in.in.h: Likewise.
23124         * lib/search.in.h: Likewise.
23125         * lib/signal.in.h: Likewise.
23126         * lib/stdarg.in.h: Likewise.
23127         * lib/stdint.in.h: Likewise.
23128         * lib/stdio.in.h: Likewise.
23129         * lib/stdlib.in.h: Likewise.
23130         * lib/string.in.h: Likewise.
23131         * lib/strings.in.h: Likewise.
23132         * lib/sys_select.in.h: Likewise.
23133         * lib/sys_socket.in.h: Likewise.
23134         * lib/sys_stat.in.h: Likewise.
23135         * lib/sys_time.in.h: Likewise.
23136         * lib/sysexits.in.h: Likewise.
23137         * lib/time.in.h: Likewise.
23138         * lib/unistd.in.h: Likewise.
23139         * lib/wchar.in.h: Likewise.
23140         * lib/wctype.in.h: Likewise.
23141         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
23142         * modules/fchdir (Makefile.am): Likewise.
23143         * modules/fcntl (Makefile.am): Likewise.
23144         * modules/float (Makefile.am): Likewise.
23145         * modules/iconv_open (Makefile.am): Likewise.
23146         * modules/inttypes (Makefile.am): Likewise.
23147         * modules/locale (Makefile.am): Likewise.
23148         * modules/math (Makefile.am): Likewise.
23149         * modules/netinet_in (Makefile.am): Likewise.
23150         * modules/search (Makefile.am): Likewise.
23151         * modules/signal (Makefile.am): Likewise.
23152         * modules/stdarg (Makefile.am): Likewise.
23153         * modules/stdint (Makefile.am): Likewise.
23154         * modules/stdio (Makefile.am): Likewise.
23155         * modules/stdlib (Makefile.am): Likewise.
23156         * modules/string (Makefile.am): Likewise.
23157         * modules/strings (Makefile.am): Likewise.
23158         * modules/sys_select (Makefile.am): Likewise.
23159         * modules/sys_socket (Makefile.am): Likewise.
23160         * modules/sys_stat (Makefile.am): Likewise.
23161         * modules/sys_time (Makefile.am): Likewise.
23162         * modules/sysexits (Makefile.am): Likewise.
23163         * modules/time (Makefile.am): Likewise.
23164         * modules/unistd (Makefile.am): Likewise.
23165         * modules/wchar (Makefile.am): Likewise.
23166         * modules/wctype (Makefile.am): Likewise.
23167         Reported by Reuben Thomas <rrt@sc3d.org>.
23168
23169 2008-08-29  Bruno Haible  <bruno@clisp.org>
23170
23171         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
23172         any more.
23173
23174 2008-08-29  Simon Josefsson  <simon@josefsson.org>
23175
23176         * MODULES.html.sh (Misc): Add bitrotate.
23177
23178         * modules/bitrotate: New file.
23179
23180         * lib/bitrotate.h: New file.
23181
23182         * modules/bitrotate-tests: New file.
23183
23184         * tests/test-bitrotate.c: New file.
23185
23186         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
23187         on the bitrotate module.
23188
23189         * lib/arctwo.c: Use new bitrotate module.
23190
23191 2008-08-29  Jim Meyering  <meyering@redhat.com>
23192
23193         bootstrap: merge changes from coreutils
23194         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
23195         of copied files.  Remove a kludge, now that this is fixed.
23196         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
23197         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
23198         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
23199
23200 2008-08-29  Bruno Haible  <bruno@clisp.org>
23201
23202         * MODULES.html.sh: Remove --cvs-urls option.
23203
23204 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
23205
23206         maint.mk: adjust to file name change
23207         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
23208
23209 2008-08-28  Jim Meyering  <meyering@redhat.com>
23210
23211         * modules/getndelim2 (License): Relicense to LGPLv2+.
23212         Approved by Richard Stallman for the version of 1995, and by
23213         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
23214
23215 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
23216
23217         * lib/getdelim.c (flockfile, funlockfile): Make all of them
23218         dummy if one is not available.  Do not touch them if
23219         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
23220         (getc_maybe_unlocked): New.
23221         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
23222
23223 2008-08-26  Eric Blake  <ebb9@byu.net>
23224
23225         doc/INSTALL: resync from autoconf
23226         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
23227         (INSTALL_PRELUDE): Delete; this is done more efficiently by
23228         moving...
23229         * install.texi [!autoconf]: ...here.  Resync from autoconf.
23230         * INSTALL: Regenerate.
23231         * INSTALL.ISO: New file.
23232         * INSTALL.UTF-8: Likewise.
23233
23234 2008-08-26  Jim Meyering  <meyering@redhat.com>
23235
23236         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
23237         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
23238         these definitions conditional, so that they may be overridden, too.
23239
23240 2008-08-26  Bruno Haible  <bruno@clisp.org>
23241
23242         Generate INSTALL file variants with prettier quotes.
23243         * doc/Makefile (INSTALL_PRELUDE): New macro.
23244         (INSTALL): Use it.
23245         (INSTALL.ISO, INSTALL.UTF-8): New rules.
23246
23247 2008-08-26  Bruno Haible  <bruno@clisp.org>
23248
23249         Run makeinfo in an English locale.
23250         * doc/Makefile (MAKEINFO): New variable.
23251
23252 2008-08-26  Bruno Haible  <bruno@clisp.org>
23253
23254         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
23255         Suggested by Eric Blake.
23256
23257 2008-08-25  Bruno Haible  <bruno@clisp.org>
23258
23259         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
23260
23261 2008-08-25  Eric Blake  <ebb9@byu.net>
23262
23263         c-stack: test that stack overflow can be caught
23264         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
23265         that platform allows handling stack overflow; at least OS/2 EMX
23266         has sigaltstack, but crashes before transferring control to
23267         handler on stack overflow.
23268         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
23269         check for HAVE_STACK_OVERFLOW_HANDLING.
23270         Reported by Elbert Pol.
23271
23272 2008-08-25  Bruno Haible  <bruno@clisp.org>
23273
23274         * doc/posix-functions/strftime.texi: Fix description of strftime
23275         module.
23276
23277 2008-08-24  Bruno Haible  <bruno@clisp.org>
23278
23279         * tests/uniwidth/test-uc_width2.c: New file.
23280         * tests/uniwidth/test-uc_width2.sh: New file.
23281         * modules/uniwidth/width-tests (Files): Add the new files.
23282         (TESTS): Add uniwidth/test-uc_width2.sh.
23283         (TESTS_ENVIRONMENT): New variable.
23284         (check_PROGRAMS): Add test-uc_width2.
23285         (test_uc_width2_SOURCES): New variable.
23286
23287         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
23288         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
23289         not 0x00AB.
23290         Reported by Alexander V. Lukyanov <lav@netis.ru>.
23291
23292 2008-08-22  Eric Blake  <ebb9@byu.net>
23293
23294         test-lock, test-tls: mention why a test is skipped
23295         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
23296         skipped.
23297         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
23298
23299         count-one-bits: relax license
23300         * modules/count-one-bits (License): Relicense to LGPLv2+.
23301         Suggested by Ludovic Courtès, approved by Ben Pfaff.
23302
23303 2008-08-22  Andreas Schwab  <schwab@suse.de>
23304
23305         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
23306         Remove spurious space in assignment.
23307
23308 2008-08-21  Simon Josefsson  <simon@josefsson.org>
23309
23310         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
23311         Paul Eggert <eggert@CS.UCLA.EDU>.
23312
23313 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
23314
23315         * modules/gettext: Add m4/threadlib.m4.
23316
23317 2008-08-19  Eric Blake  <ebb9@byu.net>
23318
23319         test-c-stack: fix compilation failure on FreeBSD 5.0
23320         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
23321         headers before <sys/resource.h>.
23322         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
23323         the bug.
23324         Reported by Nelson H. F. Beebe.
23325
23326         strverscmp: migrate from "strverscmp.h" to <string.h>
23327         * modules/string (Makefile.am): Add new hooks.
23328         * modules/strverscmp (Files): Remove strverscmp.h.
23329         (Depends-on): Add string.
23330         (configure.ac): Add indicator.
23331         (Include): Mention new header.
23332         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
23333         defaults.
23334         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
23335         results.
23336         * lib/strverscmp.h: Delete.
23337         * lib/string.in.h (strverscmp): Provide declaration, when needed.
23338         * tests/test-strverscmp.c (includes): Adjust client.
23339         * lib/check-version.c (includes): Likewise.
23340         * NEWS: Document the change.
23341
23342         strverscmp: add unit test
23343         * modules/strverscmp-tests: New file.
23344         * tests/test-strverscmp.c: Likewise.
23345
23346 2008-08-19  Simon Josefsson  <simon@josefsson.org>
23347
23348         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
23349         regarding Windows crypto stuff, from Mono.
23350
23351 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
23352
23353         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
23354         if present, for intel RND.  Return error on failures.
23355
23356 2008-08-18  Ben Pfaff  <blp@gnu.org>
23357
23358         gitlog-to-changelog: give better diagnostic for failed pipe-open
23359         * build-aux/gitlog-to-changelog: Improve error message: suggest
23360         that the version of Git may be too old.
23361
23362 2008-08-18  Simon Josefsson  <simon@josefsson.org>
23363
23364         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
23365         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
23366
23367 2008-08-18  Bruno Haible  <bruno@clisp.org>
23368
23369         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
23370         pthread_in_use().
23371
23372 2008-08-18  Bruno Haible  <bruno@clisp.org>
23373
23374         * lib/glthread/threadlib.c: Include <pthread.h>.
23375
23376 2008-08-18  Bruno Haible  <bruno@clisp.org>
23377
23378         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
23379         glthread_recursive_lock_* macros.
23380         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
23381         Fix syntax error.
23382
23383 2008-08-18  Bruno Haible  <bruno@clisp.org>
23384
23385         * lib/glthread/thread.c: Avoid forcing a context switch right after
23386         thread creation.
23387
23388 2008-08-17  Bruno Haible  <bruno@clisp.org>
23389
23390         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
23391         * lib/glthread/thread.h: Provide Win32 specific implementation.
23392         * modules/thread (Files): Add lib/glthread/thread.c.
23393         (Depends-on): Add lock.
23394         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
23395
23396 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23397
23398         New module 'yield'.
23399         * modules/yield: New file.
23400         * lib/glthread/yield.h: New file.
23401         * m4/yield.m4: New file.
23402         * MODULES.html.sh (Multithreading): Add yield.
23403
23404 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23405
23406         New module 'thread'.
23407         * modules/thread: New file.
23408         * lib/glthread/thread.h: New file.
23409         * m4/thread.m4: New file.
23410         * MODULES.html.sh (Multithreading): Add thread.
23411
23412 2008-08-17  Bruno Haible  <bruno@clisp.org>
23413
23414         * lib/glthread/lock.h: Include <stdlib.h> always.
23415         * lib/glthread/tls.h: Likewise.
23416         * lib/glthread/cond.h: Likewise.
23417
23418 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23419
23420         New module 'cond'.
23421         * modules/cond: New file.
23422         * lib/glthread/cond.h: New file.
23423         * lib/glthread/cond.c: New file.
23424         * m4/cond.m4: New file.
23425         * MODULES.html.sh (Multithreading): Add cond.
23426
23427 2008-08-16  Eric Blake  <ebb9@byu.net>
23428
23429         c-stack: fix regression on Irix 5.3 from 2008-06-21
23430         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
23431         sa_sigaction...
23432         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
23433         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
23434         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
23435         * modules/signal (Makefile.am): Use the value.
23436         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
23437         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
23438         * doc/posix-headers/signal.texi (signal.h): Document this
23439         portability issue.
23440         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
23441         Reported by Tom G. Christensen.
23442
23443 2008-08-17  Bruno Haible  <bruno@clisp.org>
23444
23445         New module 'threadlib'.
23446         * modules/threadlib: New file.
23447         * lib/glthread/threadlib.c: New file, extracted from
23448         lib/glthread/lock.c.
23449         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
23450         functions.
23451         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
23452         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
23453         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
23454         macros.
23455         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
23456         (gl_DISABLE_THREADS): Remove macro.
23457         * modules/lock (Files): Remove build-aux/config.rpath.
23458         (Depends-on): Remove havelib. Add threadlib.
23459         (configure.ac-early): Remove section.
23460         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
23461         * modules/tls (Depends-on): Remove lock. Add threadlib.
23462         (Link): New section, copied from threadlib.
23463         * MODULES.html.sh (Multithreading): Add threadlib.
23464
23465 2008-08-14  Bruno Haible  <bruno@clisp.org>
23466
23467         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
23468         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
23469         glthread_rwlock_unlock, glthread_rwlock_destroy,
23470         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
23471         glthread_recursive_lock_destroy): Define as macros always.
23472         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
23473         glthread_lock_lock.
23474         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
23475         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
23476         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
23477         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
23478         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
23479         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
23480         (glthread_recursive_lock_lock_func): Renamed from
23481         glthread_recursive_lock_lock.
23482         (glthread_recursive_lock_unlock_func): Renamed from
23483         glthread_recursive_lock_unlock.
23484         (glthread_recursive_lock_destroy_func): Renamed from
23485         glthread_recursive_lock_destroy.
23486
23487 2008-08-14  Bruno Haible  <bruno@clisp.org>
23488
23489         * lib/glthread/lock.h: Renamed from lib/lock.h.
23490         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
23491         * lib/glthread/tls.h: Renamed from lib/tls.h.
23492         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
23493         * lib/fstrcmp.c: Update includes.
23494         * lib/strsignal.c: Update includes.
23495         * modules/lock (Files, Makefile.am): Update.
23496         (Include): Change to "glthread/lock.h".
23497         * modules/tls (Files, Makefile.am): Update.
23498         (Include): Change to "glthread/tls.h".
23499         * tests/test-lock.c: Update includes.
23500         * tests/test-tls.c: Update includes.
23501         * NEWS: Mention the renamed header files.
23502
23503 2008-08-11  Jim Meyering  <meyering@redhat.com>
23504
23505         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
23506
23507 2008-08-11  Eric Blake  <ebb9@byu.net>
23508
23509         test-c-stack: avoid C99-ism
23510         * tests/test-c-stack.c (main): Fix whitespace, move declaration
23511         before statement.
23512         Reported by Alain Guibert.
23513
23514 2008-08-10  Jim Meyering  <meyering@redhat.com>
23515
23516         ensure that return value of uinttostr et al are not ignored
23517         * lib/inttostr.h (__GNUC_PREREQ): Define.
23518         (__attribute_warn_unused_result__): Define.
23519         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
23520
23521 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
23522
23523         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
23524         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
23525
23526 2008-08-07  Jim Meyering  <meyering@redhat.com>
23527
23528         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
23529
23530         * modules/mkstemp (License): Relicense under LGPLv2+.
23531         * modules/tempname (License): Likewise.
23532
23533 2008-08-06  Bruno Haible  <bruno@clisp.org>
23534
23535         * lib/poll.c (poll): Further micro-optimization.
23536
23537 2008-08-06  Jim Meyering  <meyering@redhat.com>
23538
23539         inet_pton.c: use locale-independent tolower
23540         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
23541         (inet_pton6): Use c_tolower rather than tolower.
23542         * modules/inet_pton (Depends-on): Add c-ctype.
23543
23544 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
23545
23546         * lib/poll.c (poll): Avoid division when timeout is 0, cache
23547         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
23548
23549 2008-08-06  Jim Meyering  <meyering@redhat.com>
23550
23551         * modules/inet_pton (License): Relicense under LGPLv2+.
23552
23553 2008-08-03  Bruno Haible  <bruno@clisp.org>
23554
23555         Additional non-aborting API for lock and tls.
23556         * lib/lock.h: Include <errno.h>.
23557         (glthread_lock_init): New macro/function.
23558         (gl_lock_init): Define as wrapper around glthread_lock_init.
23559         (glthread_lock_lock): New macro/function.
23560         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
23561         (glthread_lock_unlock): New macro/function.
23562         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
23563         (glthread_lock_destroy): New macro/function.
23564         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
23565         (glthread_rwlock_init): New macro/function.
23566         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
23567         (glthread_rwlock_rdlock): New macro/function.
23568         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
23569         (glthread_rwlock_wrlock): New macro/function.
23570         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
23571         (glthread_rwlock_unlock): New macro/function.
23572         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
23573         (glthread_rwlock_destroy): New macro/function.
23574         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
23575         (glthread_recursive_lock_init): New macro/function.
23576         (gl_recursive_lock_init): Define as wrapper around
23577         glthread_recursive_lock_init.
23578         (glthread_recursive_lock_lock): New macro/function.
23579         (gl_recursive_lock_lock): Define as wrapper around
23580         glthread_recursive_lock_lock.
23581         (glthread_recursive_lock_unlock): New macro/function.
23582         (gl_recursive_lock_unlock): Define as wrapper around
23583         glthread_recursive_lock_unlock.
23584         (glthread_recursive_lock_destroy): New macro/function.
23585         (gl_recursive_lock_destroy): Define as wrapper around
23586         glthread_recursive_lock_destroy.
23587         (glthread_once): New macro/function.
23588         (gl_once): Define as wrapper around glthread_once.
23589         Update function declarations.
23590         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
23591         glthread_rwlock_init. Return error code.
23592         (glthread_rwlock_rdlock_multithreaded): Renamed from
23593         glthread_rwlock_rdlock. Return error code.
23594         (glthread_rwlock_wrlock_multithreaded): Renamed from
23595         glthread_rwlock_wrlock. Return error code.
23596         (glthread_rwlock_unlock_multithreaded): Renamed from
23597         glthread_rwlock_unlock. Return error code.
23598         (glthread_rwlock_destroy_multithreaded): Renamed from
23599         glthread_rwlock_destroy. Return error code.
23600         (glthread_recursive_lock_init_multithreaded): Renamed from
23601         glthread_recursive_lock_init. Return error code.
23602         (glthread_recursive_lock_lock_multithreaded): Renamed from
23603         glthread_recursive_lock_lock. Return error code.
23604         (glthread_recursive_lock_unlock_multithreaded): Renamed from
23605         glthread_recursive_lock_unlock. Return error code.
23606         (glthread_recursive_lock_destroy_multithreaded): Renamed from
23607         glthread_recursive_lock_destroy. Return error code.
23608         (glthread_once_call): Make static.
23609         (glthread_once_multithreaded): Renamed from glthread_once.
23610         * lib/tls.h: Include <errno.h>.
23611         (glthread_tls_key_init): New macro/function.
23612         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
23613         (glthread_tls_set): New macro/function.
23614         (gl_tls_set): Define as wrapper around glthread_tls_set.
23615         (glthread_tls_key_destroy): New macro/function.
23616         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
23617         Update function declarations.
23618         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
23619         glthread_tls_get.
23620         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
23621
23622 2008-08-04  Eric Blake  <ebb9@byu.net>
23623
23624         gnumakefile: use space, not TAB, outside of targets
23625         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
23626
23627 2008-08-02  Jim Meyering  <meyering@redhat.com>
23628
23629         getdate.y: avoid locale-dependent date parsing failure
23630         In Turkish locales, getdate would fail to recognize keywords
23631         containing a lowercase "i".  The solution is not to rely on
23632         locale-sensitive case-conversion.
23633         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
23634         (lookup_word): Use c_toupper in place of toupper.
23635         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
23636         Reported by Vefa Bicakci <bicave@superonline.com> in
23637         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
23638         * modules/getdate (Depends-on): Add c-ctype.
23639
23640 2008-08-02  Bruno Haible  <bruno@clisp.org>
23641
23642         * gnulib-tool (func_import): When updating or creating a .gitignore
23643         file, prepend each added line with a slash, and ignore leading slashes
23644         from the existing lines.
23645         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
23646
23647 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23648
23649         Portability fix for GNU make 3.79.1.
23650         * top/GNUmakefile: Avoid 'else COND', which older GNU make
23651         versions do not understand.
23652
23653 2008-08-01  Bruno Haible  <bruno@clisp.org>
23654
23655         Work around bug of HP-UX 10.20 cc with -0.0 literal.
23656         * tests/test-isnanf.h (zero): New variable.
23657         (main): Avoid literal -0.0f.
23658         * tests/test-isnand.h (zero): New variable.
23659         (main): Avoid literal -0.0.
23660         * tests/test-isnanl.h (zero): New variable.
23661         (main): Avoid literal -0.0L.
23662         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
23663         (test_float, test_double, test_long_double): Avoid literals -0.0f,
23664         -0.0, -0.0L.
23665         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
23666         (test_signbitd): Avoid literal -0.0.
23667         (test_signbitl): Avoid literal -0.0L.
23668         * tests/test-ceilf1.c (zero): New variable.
23669         (main): Avoid literal -0.0f.
23670         * tests/test-ceill.c (zero): New variable.
23671         (main): Avoid literal -0.0L.
23672         * tests/test-floorf1.c (zero): New variable.
23673         (main): Avoid literal -0.0f.
23674         * tests/test-floorl.c (zero): New variable.
23675         (main): Avoid literal -0.0L.
23676         * tests/test-roundf1.c (zero): New variable.
23677         (main): Avoid literal -0.0f.
23678         * tests/test-round1.c (zero): New variable.
23679         (main): Avoid literal -0.0.
23680         * tests/test-roundl.c (zero): New variable.
23681         (main): Avoid literal -0.0L.
23682         * tests/test-truncf1.c (zero): New variable.
23683         (main): Avoid literal -0.0f.
23684         * tests/test-trunc1.c (zero): New variable.
23685         (main): Avoid literal -0.0.
23686         * tests/test-truncl.c (zero): New variable.
23687         (main): Avoid literal -0.0L.
23688         * tests/test-frexp.c (zero): New variable.
23689         (main): Avoid literal -0.0.
23690         * tests/test-frexpl.c (zero): New variable.
23691         (main): Avoid literal -0.0L.
23692         * tests/test-ldexpl.c (zero): New variable.
23693         (main): Avoid literal -0.0L.
23694         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
23695         (zerod, zerol): New variables.
23696         (test_function): Avoid literals -0.0, -0.0L.
23697         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
23698         (zerod, zerol): New variables.
23699         (test_function): Avoid literals -0.0, -0.0L.
23700         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
23701         (zerod, zerol): New variables.
23702         (test_function): Avoid literals -0.0, -0.0L.
23703         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
23704         (zerod, zerol): New variables.
23705         (test_function): Avoid literals -0.0, -0.0L.
23706         * tests/test-strtod.c (zero): New variable.
23707         (main): Avoid literal -0.0.
23708         Reported by Jonathan C. Patschke <jp@centtech.com>.
23709
23710 2008-07-31  Jim Meyering  <meyering@redhat.com>
23711
23712         sha256.h: correct definition of SHA224_DIGEST_SIZE
23713         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
23714         Reported by Paulie Pena IV <paulie4@gmail.com>.
23715         Define as 224 / 8, rather than as a literal.
23716         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
23717         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
23718         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
23719
23720 2008-07-31  Bruno Haible  <bruno@clisp.org>
23721
23722         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
23723         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
23724         Reported by Jonathan Patschke <jp@centtech.com>.
23725
23726 2008-07-31  Bruno Haible  <bruno@clisp.org>
23727
23728         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
23729         Reported by Paolo Bonzini <bonzini@gnu.org>.
23730
23731 2008-07-30  Eric Blake  <ebb9@byu.net>
23732
23733         test-strtod: allow compilation without -lm
23734         * tests/test-strtod.c (main): Avoid link dependence on fabs.
23735         Reported by Dennis Clarke <blastwave@gmail.com>.
23736
23737 2008-07-28  Jim Meyering  <meyering@redhat.com>
23738
23739         bootstrap: work also when there are no .po files in po/
23740         * build-aux/bootstrap (update_po_files): Complete the change
23741         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
23742
23743 2008-07-27  Jim Meyering  <meyering@redhat.com>
23744
23745         * users.txt: Add zile.
23746
23747 2008-07-26  Ben Pfaff  <blp@gnu.org>
23748
23749         Add missing dependencies on new m4/exponent[fdl].m4 files.
23750         * modules/isnanf-nolibm: Add m4/exponentf.m4.
23751         * modules/isnand-nolibm: Add m4/exponentd.m4.
23752         * modules/isnanl-nolibm: Add m4/exponentl.m4.
23753         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
23754         m4/isnan[fdl].m4, because the macros actually used moved.
23755         Reported by Jim Meyering.
23756
23757 2008-07-14  Ben Pfaff  <blp@gnu.org>
23758
23759         Add isinf module.
23760         * lib/isinf.c: New file.
23761         * lib/math.in.h: Define isinf macro if we have decided to replace
23762         it.
23763         * m4/isinf.m4: New file.
23764         * m4/math_h.m4: Initialize and substitute variables for isinf
23765         module.
23766         * modules/isinf: New file.
23767         * modules/isinf-tests: New file.
23768         * modules/math: Add substitutions for new module.
23769         * tests/test-isinf.c: New file.
23770         * doc/posix-functions/isinf.texi: Mention new module.
23771         * MODULES.html.sh: Mention new module.
23772
23773 2008-07-14  Ben Pfaff  <blp@gnu.org>
23774
23775         Factor out some macros for use by additional modules.
23776         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
23777         exponentf.m4.
23778         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
23779         exponentd.m4.
23780         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
23781         file exponentl.m4.
23782         * m4/exponentf.m4: New file.
23783         * m4/exponentd.m4: New file.
23784         * m4/exponentl.m4: New file.
23785         * modules/isnanf: Use new file m4/exponentf.m4.
23786         * modules/isnand: Use new file m4/exponentd.m4.
23787         * modules/isnanl: Use new file m4/exponentl.m4.
23788
23789 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
23790
23791         mktime.c: normalize tp->tm_isdst value to -1/0/1.
23792         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
23793         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
23794         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
23795
23796         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
23797         readlink on platforms without PATH_MAX.
23798
23799 2008-07-21  Eric Blake  <ebb9@byu.net>
23800
23801         Warn, not fail, on stale version.
23802         * top/GNUmakefile (_curr-ver): Tone down previous patch.
23803
23804         Don't allow installation with stale devel version number.
23805         * top/GNUmakefile (_is-install-target): New macro.
23806         (_curr-ver): Forbid installation with stale version number.
23807
23808 2008-07-20  Bruno Haible  <bruno@clisp.org>
23809
23810         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
23811         TESTS_ENVIRONMENT.
23812         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
23813
23814 2008-07-20  Bruno Haible  <bruno@clisp.org>
23815
23816         * lib/c-stack.h (c_stack_action): Add documentation.
23817         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
23818
23819 2008-07-20  Bruno Haible  <bruno@clisp.org>
23820
23821         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
23822         * modules/readlink (License): Likewise.
23823
23824 2008-07-17  Eric Blake  <ebb9@byu.net>
23825
23826         * modules/c-stack (Link): Fix typo.
23827
23828         Make c-stack use libsigsegv, when available.
23829         * modules/c-stack (Depends-on): Add libsigsegv.
23830         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
23831         needed.
23832         * lib/c-stack.c (SIGSTKSZ): Define fallback.
23833         (segv_handler, overflow_handler, c_stack_action)
23834         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
23835         implementation when libsigsegv is available, but only when using
23836         the library is necessary.
23837         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
23838         comment, explaining why XSI check fails on Linux.
23839         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
23840         * tests/test-c-stack2.sh: Tweak skip message.
23841         * NEWS: Document new link-time requirements.
23842
23843 2008-07-16  Eric Blake  <ebb9@byu.net>
23844
23845         c-stack: Expose false positives when not using libsigsegv.
23846         * modules/c-stack-tests (Files): Expand test.
23847         * tests/test-c-stack.c (main): Add means to conditionally trigger
23848         non-overflow SIGSEGV.
23849         * tests/test-c-stack2.sh: New file.
23850
23851 2008-07-14  Bruno Haible  <bruno@clisp.org>
23852
23853         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
23854         Reported by Eric Blake.
23855
23856 2008-07-14  Sam Steingold  <sds@gnu.org>
23857             Bruno Haible  <bruno@clisp.org>
23858
23859         New module libsigsegv.
23860         * modules/libsigsegv: New file.
23861         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
23862         modifications.
23863         * MODULES.html.sh (Signal handling): New section.
23864
23865 2008-07-14  Bruno Haible  <bruno@clisp.org>
23866
23867         * modules/unictype/ctype-* (Description): Add the word "function".
23868         Improves the resulting doc in MODULES.html.
23869
23870 2008-07-12  Ben Pfaff  <blp@gnu.org>
23871
23872         Add longlong module.
23873         * modules/longlong: New file.
23874
23875 2008-07-12  Bruno Haible  <bruno@clisp.org>
23876
23877         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
23878         to empty.
23879
23880 2008-07-10  Ben Pfaff  <blp@gnu.org>
23881
23882         Add isnan module.
23883         * doc/posix-functions/isnan.texi: Mention new module.
23884         * lib/math.in.h: Define isnan macro if we have decided to replace
23885         it.
23886         * m4/isnan.m4: New file.
23887         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
23888         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
23889         also.
23890         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
23891         redundancy.
23892         * m4/math_h.m4: Initialize and substitute variables for isnan
23893         module.
23894         * modules/isnan: New file.
23895         * modules/isnan-tests: New file.
23896         * modules/math: Add substitutions for new module.
23897         * tests/test-isnan.c: New file.
23898         * MODULES.html.sh: Mention new module.
23899
23900 2008-07-10  Ben Pfaff  <blp@gnu.org>
23901
23902         Add isnanf module.
23903         * lib/isnanf.m4: New file.
23904         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
23905         (gl_HAVE_ISNANF_IN_LIBM): New macro.
23906         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
23907         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
23908         * modules/isnanf: New file.
23909         * modules/isnanf-tests: New file.
23910         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
23911         files.
23912         * tests/test-isnanf-nolibm.c: factored most of its contents into
23913         new file tests/test-isnanf.h.
23914         * tests/test-isnanf.h: New file.
23915         * tests/test-isnanf.c: New file.
23916         * MODULES.html.sh: Mention new module.
23917         * doc/glibc-functions/isnanf.texi: Mention new module.
23918
23919 2008-07-10  Ben Pfaff  <blp@gnu.org>
23920
23921         Add isnand module.
23922         * lib/isnand.h: New file.
23923         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
23924         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
23925         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
23926         functionality also.
23927         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
23928         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
23929         (gl_HAVE_ISNAND_IN_LIBM): New macro.
23930         * modules/isnand: New file.
23931         * modules/isnand-tests: New file.
23932         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
23933         files.
23934         * tests/test-isnand-nolibm.c: factored most of its contents into
23935         new file tests/test-isnand.h.
23936         * tests/test-isnand.h: New file.
23937         * tests/test-isnand.c: New file.
23938         * MODULES.html.sh: Mention new module.
23939
23940 2008-07-10  Ben Pfaff  <blp@gnu.org>
23941
23942         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
23943         * lib/isnand.h: Rename lib/isnand-nolibm.h.
23944         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
23945         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
23946         * modules/isnanf-nolibm: Update references to renamed files.
23947         * modules/isnand-nolibm: Likewise.
23948         * modules/isnanf-nolibm-tests: Likewise.
23949         * modules/isnand-nolibm-tests: Likewise.
23950         * lib/frexp.c: Likewise.
23951         * lib/isfinite.c: Likewise.
23952         * lib/signbitd.c: Likewise.
23953         * lib/signbitf.c: Likewise.
23954         * lib/vasnprintf.c: Likewise.
23955         * tests/test-ceilf1.c: Likewise.
23956         * tests/test-ceilf2.c: Likewise.
23957         * tests/test-floorf1.c: Likewise.
23958         * tests/test-floorf2.c: Likewise.
23959         * tests/test-frexp.c: Likewise.
23960         * tests/test-round1.c: Likewise.
23961         * tests/test-round2.c: Likewise.
23962         * tests/test-roundf1.c: Likewise.
23963         * tests/test-strtod.c: Likewise.
23964         * tests/test-trunc1.c: Likewise.
23965         * tests/test-trunc2.c: Likewise.
23966         * tests/test-truncf1.c: Likewise.
23967         * tests/test-truncf2.c: Likewise.
23968         * NEWS: Mention the renamed header files.
23969
23970 2008-07-11  Jim Meyering  <meyering@redhat.com>
23971
23972         vc-list-files: make the last-resort awk code more portable
23973         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
23974         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
23975         does not support it.
23976
23977 2008-07-10  Eric Blake  <ebb9@byu.net>
23978
23979         Work with tar's bootstrap.
23980         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
23981         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
23982         an m4 comment.
23983
23984 2008-07-09  Jim Meyering  <meyering@redhat.com>
23985
23986         posix-shell.m4: fix typo that made this test malfunction
23987         * m4/posix-shell.m4: Remove capitalization in variable name.
23988
23989 2008-07-08  Bruno Haible  <bruno@clisp.org>
23990
23991         * m4/onceonly.m4: Update comments.
23992         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23993
23994 2008-07-04  Jim Meyering  <meyering@redhat.com>
23995
23996         * users.txt: Add vc-dwim.
23997         (bison, coreutils): Use the gitweb URL.
23998
23999 2008-07-03  Jim Meyering  <meyering@redhat.com>
24000
24001         * users.txt: Add libffcall.  From Sam Steingold.
24002
24003 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
24004
24005         getdate.y: do not ignore TZ with relative day, month or year offset
24006         * lib/getdate.y (get_date): Move the tz-handling block to follow the
24007         relative-date-handling, since otherwise, the latter would clobber the
24008         sole output (an updated Start value) of the tz-handling block.
24009         * tests/test-getdate.c: Tests for the fix
24010
24011 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24012
24013         Recognize 'foo_LIBRARIES += libgnu.a'.
24014         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
24015         makefile snippet has already specified an installation location,
24016         also using '+='.
24017
24018 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
24019
24020         getdate.y: factor out common actions
24021         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
24022         Use them in place of open-coded actions.
24023
24024 2008-07-01  Simon Josefsson  <simon@josefsson.org>
24025
24026         Add self-test for getdate module.
24027         * modules/getdate-tests: New file.
24028         * tests/test-getdate.c: New file.
24029
24030 2008-06-29  Bruno Haible  <bruno@clisp.org>
24031
24032         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
24033         .gitignore.
24034         Reported by Sylvain Beucler <beuc@beuc.net>.
24035
24036 2008-06-29  Bruno Haible  <bruno@clisp.org>
24037
24038         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
24039         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
24040
24041 2008-06-29  Bruno Haible  <bruno@clisp.org>
24042
24043         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
24044         EXTRA_DIST.
24045         Reported by Sylvain Beucler <beuc@beuc.net>.
24046
24047 2008-06-26  Jim Meyering  <meyering@redhat.com>
24048
24049         make several modules depend on the "open" module
24050         This provides slightly increased consistency when opening-for-write
24051         the name of a non-directory spelled with a trailing slash.
24052         * modules/chdir-safer: Likewise.
24053         * modules/chown: Likewise.
24054         * modules/clean-temp: Likewise.
24055         * modules/copy-file: Likewise.
24056         * modules/fchdir: Likewise.
24057         * modules/fcntl-safer: Likewise.
24058         * modules/pipe: Likewise.
24059         * modules/utime: Likewise.
24060         Prompted by Eric Blake and Bruno Haible.
24061
24062 2008-06-24  Andreas Schwab  <schwab@suse.de>
24063
24064         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
24065         literals can be used as initializers for global variables.
24066
24067 2008-06-23  Eric Blake  <ebb9@byu.net>
24068
24069         Make gnulib-cache.m4 easier to diff.
24070         * gnulib-tool (func_import): Allow newlines when reading cached
24071         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
24072
24073 2008-06-23  Bruno Haible  <bruno@clisp.org>
24074
24075         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
24076         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
24077         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
24078         m4/signalblocking.m4.
24079         (gl_PREREQ_SIGACTION): Don't invoke it.
24080         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
24081         gl_PREREQ_SIG_HANDLER_H.
24082         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
24083         Don't check for sigaction here.
24084
24085 2008-06-23  Bruno Haible  <bruno@clisp.org>
24086
24087         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
24088         (install_handlers): Don't set the SA_RESETHAND flag.
24089
24090 2008-06-23  Bruno Haible  <bruno@clisp.org>
24091
24092         * m4/sigaction.m4: Comment fixes.
24093         * lib/signal.in.h: Likewise.
24094
24095 2008-06-23  Eric Blake  <ebb9@byu.net>
24096
24097         Fix typo.
24098         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
24099
24100         Avoid SA_ namespace.
24101         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
24102         Reported by Ralf Wildenhues.
24103
24104         Avoid test failure due to SA_RESTORER.
24105         * tests/test-sigaction.c (SA_MASK): New macro.
24106         (main): Avoid failing due to extension flags being set.
24107         Reported by Jim Meyering.
24108
24109         Revert use of sig-handler.h in sigprocmask.c.
24110         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
24111         it requires the existence of struct sigaction.
24112         * lib/sigprocmask.c (handler_t): Restore typedef.
24113         (rpl_signal, old_handlers): Use local type.
24114
24115 2008-06-22  Bruno Haible  <bruno@clisp.org>
24116
24117         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
24118         conditionally.
24119         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24120
24121 2008-06-22  Bruno Haible  <bruno@clisp.org>
24122
24123         * doc/posix-functions/siginterrupt.texi: Move note.
24124
24125         * lib/signal.in.h (SA_RESTART): New macro.
24126         * lib/sigaction.c: Update comment.
24127
24128         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
24129
24130         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
24131         (gl_PREREQ_SIGPROCMASK): Invoke it.
24132         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
24133
24134         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
24135
24136         * lib/sigprocmask.c: Update a comment.
24137
24138 2008-06-21  Eric Blake  <ebb9@byu.net>
24139
24140         Use sigaction module rather than signal().
24141         * modules/c-stack (Depends-on): Add sigaction.
24142         * modules/fatal-signal (Depends-on): Likewise.
24143         * modules/nanosleep (Depends-on): Likewise.
24144         * modules/sigprocmask (Files): Add sig-handler.h.
24145         * modules/sigaction (Files): Likewise.
24146         * lib/sig-handler.h (get_handler): New file, suggested by Paul
24147         Eggert.
24148         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
24149         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
24150         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
24151         (init_fatal_signals): Likewise.
24152         * lib/nanosleep.c (rpl_nanosleep): Likewise.
24153         (siginterrupt): Delete fallback.
24154         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
24155         instead.
24156         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
24157         siginterrupt.
24158
24159         New module sigaction, for mingw.
24160         * modules/sigaction: New module...
24161         * modules/sigaction-tests: ...and its test.
24162         * m4/sigaction.m4: New file.
24163         * lib/sigaction.c: Likewise.
24164         * tests/test-sigaction.c: Likewise.
24165         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
24166         * modules/signal (Makefile.am): Likewise.
24167         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
24168         needed.
24169         * doc/posix-headers/signal.texi (signal.h): Mention provided
24170         types.
24171         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
24172         that sigaction is preferable.
24173         * doc/posix-functions/sigaction.texi (sigaction): Mention new
24174         module.
24175         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
24176         sigaction.
24177
24178         Improve robustness of sigprocmask by overriding signal.
24179         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
24180         is in use.
24181         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
24182         (SIGKILL, SIGSTOP): Provide fallbacks.
24183         (rpl_signal): Implement.
24184         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
24185         signal can be called inside handlers.
24186
24187         Fix nanosleep module on mingw.
24188         * modules/nanosleep (Depends-on): Add sys_select.
24189         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
24190
24191         Fix licensing of sigprocmask.
24192         * modules/raise (License): Relicense as LGPL.
24193
24194 2008-06-21  Bruno Haible  <bruno@clisp.org>
24195
24196         * lib/propername.c (proper_name_utf8): Don't use the transliterated
24197         result if it contains question marks.
24198         Reported by Michael Geng <linux@michaelgeng.de>.
24199
24200 2008-06-19  Bruno Haible  <bruno@clisp.org>
24201
24202         Fix CVS-ism.
24203         * doc/gnulib.texi: Include updated-stamp.texi.
24204         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
24205         (updated-stamp.texi): New rule.
24206         (gnulib.info): Depend on it.
24207         * doc/.gitignore: Add updated-stamp.texi.
24208         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
24209
24210 2008-06-19  Bruno Haible  <bruno@clisp.org>
24211
24212         * doc/Makefile (gnulib.info): Update and simplify dependencies.
24213         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
24214
24215 2008-06-19  Eric Blake  <ebb9@byu.net>
24216
24217         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
24218         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
24219         Reported by Stepan Kasal.
24220
24221 2008-06-18  Bruno Haible  <bruno@clisp.org>
24222
24223         * lib/fatal-signal.c (init_fatal_signals): Add comment.
24224         Reported by Eric Blake.
24225
24226 2008-06-18  Eric Blake  <ebb9@byu.net>
24227
24228         Work around cygwin 1.5.25 strsignal bug.
24229         * tests/test-strsignal.c: Allow for const char *.
24230         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
24231
24232 2008-06-18  Simon Josefsson  <simon@josefsson.org>
24233
24234         * users.txt: Update URL to article and add author/date
24235         information.
24236
24237 2008-06-17  Bruno Haible  <bruno@clisp.org>
24238
24239         New macro gl_DISABLE_THREADS.
24240         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
24241         if the user did not pass --enable-threads or --disable-threads option.
24242         (gl_DISABLE_THREADS): New macro.
24243         Reported by Eric Blake <ebb9@byu.net>.
24244
24245 2008-06-17  Bruno Haible  <bruno@clisp.org>
24246
24247         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
24248         when the macro ignores it.
24249         Based on a patch by Eric Blake <ebb9@byu.net>.
24250
24251 2008-06-17  Bruno Haible  <bruno@clisp.org>
24252
24253         * modules/tls (License): Change to LGPLv2+.
24254         Reported by Eric Blake.
24255
24256 2008-06-17  Eric Blake  <ebb9@byu.net>
24257
24258         Simplify c-stack prerequisites.
24259         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
24260         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
24261         no longer requires <ucontext.h> to exist.  Optimize setrlimit
24262         check.
24263         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
24264         <sys/resource.h>.
24265
24266         Move c-stack test into testsuite.
24267         * modules/c-stack-tests: New file.
24268         * lib/c-stack.c [DEBUG]: Move test program...
24269         * tests/test-c-stack.c: ...into this new file.  Skip rather than
24270         fail test if sigaltstack is lacking.
24271         * tests/test-c-stack.sh: New driver file.
24272
24273 2008-06-16  Eric Blake  <ebb9@byu.net>
24274
24275         Use raise module consistently.
24276         * modules/fatal-signal (Depends-on): Add raise.
24277         * modules/sigprocmask (Depends-on): Likewise.
24278         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
24279         * lib/sigprocmask.c (sigprocmask): Likewise.
24280         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
24281         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
24282
24283         Fix compliance bug in sigpending.
24284         * lib/sigprocmask.c (sigpending): Return pending array via
24285         parameter, not return value.
24286
24287 2008-06-14  Eric Blake  <ebb9@byu.net>
24288
24289         Improve obstack-printf test code.
24290         * tests/test-obstack-printf.c (test_function): Fix comment, and
24291         simplify usage of obstack_* in macros.  Add a test for coverage.
24292         Reported by Bruno Haible.
24293
24294 2008-06-14  Bruno Haible  <bruno@clisp.org>
24295
24296         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
24297         array size as a constant, not as a const variable.
24298         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
24299         AC_USE_SYSTEM_EXTENSIONS.
24300         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
24301         Test whether the obstack_printf function actually exists.
24302         * modules/obstack-printf (Depends-on): Add extensions.
24303         (Include): Remove obstack.h.
24304         * modules/obstack-printf-posix (Depends-on): Add extensions.
24305         (Include): Remove obstack.h.
24306
24307 2008-06-13  Eric Blake  <ebb9@byu.net>
24308
24309         Add obstack-printf and obstack-printf-posix modules.
24310         * modules/obstack-printf: New file.
24311         * modules/obstack-printf-posix: Likewise.
24312         * MODULES.html.sh (Misc): Mention them.
24313         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
24314         Likewise.
24315         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
24316         Likewise.
24317         * modules/stdio (Makefile.am): Accomodate new modules.
24318         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
24319         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
24320         Declare.
24321         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
24322         functions.
24323         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
24324         (gl_REPLACE_OBSTACK_PRINTF): New macros
24325         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
24326         * tests/test-obstack-printf.c: New file.
24327         * modules/obstack-printf-tests: Likewise.
24328         * modules/obstack-printf-posix-tests: Likewise.
24329
24330 2008-06-11  Bruno Haible  <bruno@clisp.org>
24331
24332         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
24333         * lib/open.c: Include errno.h.
24334         (open): Fail when attempting to write to a file that has a trailing
24335         slash.
24336         * tests/test-open.c (main): Test against trailing slash bug.
24337         * doc/posix-functions/open.texi: Mention the trailing slash bug.
24338
24339 2008-06-10  Bruno Haible  <bruno@clisp.org>
24340
24341         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
24342         for $? to work inside the trap command, with various /bin/sh-s.
24343         * tests/test-vc-list-files-cvs.sh: Likewise.
24344
24345 2008-06-10  Bruno Haible  <bruno@clisp.org>
24346
24347         * lib/acl-internal.h: Don't include gettext.h here.
24348         * lib/set-mode-acl.c: Include gettext.h here.
24349         * lib/copy-acl.c: Likewise.
24350
24351 2008-06-10  Bruno Haible  <bruno@clisp.org>
24352
24353         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
24354         * lib/wait-process.c (wait_subprocess): Likewise.
24355         * lib/execute.h (execute): Add termsigp argument.
24356         * lib/execute.c (execute): Likewise.
24357         * lib/csharpcomp.c (compile_csharp_using_pnet,
24358         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
24359         * lib/csharpexec.c (execute_csharp_using_pnet,
24360         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
24361         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
24362         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
24363         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
24364         is_jikes_present): Update.
24365         * lib/javaexec.c (execute_java_class): Update.
24366         * lib/javaversion.c (execute_and_read_line): Update.
24367         * NEWS: Document the changes.
24368         Reported by Eric Blake.
24369
24370 2008-06-10  Eric Blake  <ebb9@byu.net>
24371
24372         Add missing include.
24373         * tests/test-strstr.c (includes): Add <signal.h>.
24374         * tests/test-strcasestr.c (includes): Likewise.
24375         * tests/test-memmem.c (includes): Likewise.
24376
24377 2008-06-10  Bruno Haible  <bruno@clisp.org>
24378
24379         * lib/wait-process.c (wait_subprocess): Add an assertion.
24380
24381 2008-06-10  Bruno Haible  <bruno@clisp.org>
24382
24383         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
24384
24385 2008-06-10  Bruno Haible  <bruno@clisp.org>
24386
24387         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
24388         using alarm().
24389         * tests/test-strcasestr.c (main): Likewise.
24390         * tests/test-strstr.c (main): Likewise.
24391
24392 2008-06-09  Bruno Haible  <bruno@clisp.org>
24393
24394         Work around the Solaris 10 ACE ACLs ABI change.
24395         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
24396         declare if ACL_NO_TRIVIAL is present.
24397         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
24398         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
24399         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
24400         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
24401         define if ACL_NO_TRIVIAL is present.
24402         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
24403         and use the current ABI.
24404         (file_has_acl): Use same #if condition as elsewhere.
24405         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
24406         in use, and use the current ABI.
24407         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
24408         Reported by Jim Meyering.
24409
24410 2008-06-09  Eric Blake  <ebb9@byu.net>
24411
24412         Work around environments that (stupidly) ignore SIGALRM.
24413         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
24414         before using alarm().
24415         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24416         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
24417         Reported by Ian Beckwith <ianb@erislabs.net>.
24418
24419         Produce autobuild blurb earlier in log.
24420         * modules/autobuild (configure.ac-early): Move AB_INIT here.
24421
24422 2008-06-09  Jim Meyering  <meyering@redhat.com>
24423         and OndÅ™ej Vašík  <ovasik@redhat.com>
24424
24425         utimens.c: correct kernel bug work-around
24426         OndÅ™ej Vašík found that the invalid return value of 280 indicates
24427         failure, not success, and the kernel bug we're trying to work
24428         around affects not just the utimensat call, but also the fallback
24429         futimens call.
24430         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
24431         not success.
24432         [HAVE_FUTIMENS]: Use the same work-around, here.
24433
24434 2008-06-09  Jim Meyering  <meyering@redhat.com>
24435
24436         add more guards around definition of ACE_-related code
24437         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
24438         ALLOW and ACE_OWNER are also defined.
24439
24440 2008-06-08  Bruno Haible  <bruno@clisp.org>
24441
24442         * lib/acl-internal.h: Add me as co-author.
24443         * lib/file-has-acl.c: Likewise.
24444         * lib/set-mode-acl.c: Likewise.
24445         * lib/copy-acl.c: Likewise.
24446
24447 2008-06-08  Bruno Haible  <bruno@clisp.org>
24448
24449         Add support for AIX ACLs.
24450         * lib/acl-internal.h (acl_nontrivial): New declaration.
24451         * lib/file-has-acl.c (acl_nontrivial): New function.
24452         (file_has_acl): Add implementation using AIX 4 ACL API.
24453         * lib/set-mode-acl.c (qset_acl): Likewise.
24454         * lib/copy-acl.c (qcopy_acl): Likewise.
24455
24456 2008-06-08  Bruno Haible  <bruno@clisp.org>
24457
24458         Add support for HP-UX ACLs.
24459         * lib/acl-internal.h (acl_nontrivial): New declaration.
24460         * lib/file-has-acl.c (acl_nontrivial): New function.
24461         (file_has_acl): Add implementation using HP-UX 11 ACL API.
24462         * lib/set-mode-acl.c (qset_acl): Likewise.
24463         * lib/copy-acl.c (qcopy_acl): Likewise.
24464
24465 2008-06-08  Bruno Haible  <bruno@clisp.org>
24466
24467         Add support for Cygwin ACLs.
24468         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
24469         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
24470         the chmod_or_fchmod call.
24471         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
24472
24473 2008-06-08  Bruno Haible  <bruno@clisp.org>
24474
24475         Fix bug with setuid modes in Solaris 10+ code.
24476         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
24477         succeeded, when the mode contains some special bits.
24478
24479 2008-06-08  Bruno Haible  <bruno@clisp.org>
24480
24481         Add support for Solaris 7..10 ACLs.
24482         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
24483         declarations.
24484         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
24485         functions.
24486         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
24487         * lib/set-mode-acl.c (qset_acl): Likewise.
24488         * lib/copy-acl.c (qcopy_acl): Likewise.
24489
24490 2008-06-08  Bruno Haible  <bruno@clisp.org>
24491
24492         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
24493         declaration.
24494         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
24495         (acl_access_nontrivial): Remove MacOS X case.
24496         (file_has_acl): Use acl_extended_nontrivial.
24497         * lib/copy-acl.c (qcopy_acl): Likewise.
24498
24499 2008-06-08  Bruno Haible  <bruno@clisp.org>
24500
24501         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
24502
24503 2008-06-08  Jim Meyering  <meyering@redhat.com>
24504
24505         * modules/acl (Maintainer): Add Bruno Haible.
24506
24507 2008-06-07  Bruno Haible  <bruno@clisp.org>
24508
24509         Improve support for Tru64 ACLs.
24510         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
24511         ACL on OSF/1.
24512
24513 2008-06-07  Bruno Haible  <bruno@clisp.org>
24514
24515         Add support for MacOS X ACLs.
24516         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
24517         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
24518         * lib/set-mode-acl.c (qset_acl): Likewise.
24519         * lib/copy-acl.c (qcopy_acl): Likewise.
24520
24521 2008-06-07  Bruno Haible  <bruno@clisp.org>
24522
24523         Fix memory leak introduced on 2008-05-22.
24524         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
24525         use.
24526
24527 2008-06-07  Bruno Haible  <bruno@clisp.org>
24528
24529         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
24530         to construct an empty ACL.
24531
24532 2008-06-07  Bruno Haible  <bruno@clisp.org>
24533
24534         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
24535         precisely.
24536         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
24537
24538 2008-06-07  Bruno Haible  <bruno@clisp.org>
24539
24540         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
24541         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
24542
24543 2008-06-07  Bruno Haible  <bruno@clisp.org>
24544
24545         * doc/posix-functions/_setjmp.texi: Explain the use of this function
24546         regardless of POSIX.
24547         * doc/posix-functions/_longjmp.texi: Likewise.
24548         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
24549         SystemV platform in this case.
24550
24551 2008-06-06  Eric Blake  <ebb9@byu.net>
24552
24553         Document abort() bugs.
24554         * doc/posix-functions/abort.texi (abort): Mention anomalies.
24555
24556         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
24557         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
24558         sigsetjmp.
24559         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
24560         siglongjmp, but only as a macro.
24561         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
24562         is obsolete.
24563         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
24564
24565         Tweak documentation to cover cygwin argz bugs.
24566         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
24567         argz bug fix; no code change needed since no cygwin releases
24568         occurred between the last fix and the bug being tested.
24569         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
24570         module and recently fixed cygwin bugs.
24571         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
24572         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
24573         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
24574         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
24575         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
24576         Likewise.
24577         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
24578         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
24579         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
24580         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
24581         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
24582         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
24583         Likewise.
24584
24585         Avoid gcc warning on cygwin.
24586         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
24587         !ACL_NO_TRIVIAL]: Avoid unused variable.
24588
24589 2008-06-05  Eric Blake  <ebb9@byu.net>
24590
24591         Be tolerant of UNKNOWN version in gnulib-tool test dir.
24592         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
24593         git-version-gen fails to come up with a version.
24594         Reported by Simon Josefsson.
24595
24596 2008-06-05  Jim Meyering  <meyering@redhat.com>
24597             Paul Eggert  <eggert@cs.ucla.edu>
24598
24599         utimens.c: work around a probable Linux kernel bug
24600         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
24601         appears to be a kernel bug that causes utimensat to return 280
24602         instead of 0, indicating success.
24603
24604 2008-06-04  Bruno Haible  <bruno@clisp.org>
24605
24606         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
24607         2008-06-01 commit.
24608
24609 2008-06-04  Bruno Haible  <bruno@clisp.org>
24610
24611         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
24612         * lib/file-has-acl.c (acl_access_nontrivial): New function.
24613         (file_has_acl): Use it. Save errno afterwards.
24614         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
24615
24616 2008-06-03  Bruno Haible  <bruno@clisp.org>
24617
24618         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
24619         draft code. Simplify #ifs.
24620         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
24621         Put Solaris code after POSIX-draft code. Fix comments regarding
24622         Solaris 10, HP-UX. Mention Cygwin.
24623         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
24624
24625 2008-06-03  Eric Blake  <ebb9@byu.net>
24626
24627         Provide fallback for older kernels.
24628         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
24629         Provide runtime fallback if kernel lacks support.
24630         Reported by Mike Frysinger.
24631
24632 2008-06-02  Bruno Haible  <bruno@clisp.org>
24633
24634         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
24635         it exists.
24636
24637 2008-06-02  Bruno Haible  <bruno@clisp.org>
24638
24639         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
24640         * lib/copy-acl.c (qcopy_acl): Update comment.
24641
24642 2008-06-02  Bruno Haible  <bruno@clisp.org>
24643
24644         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
24645         like ACL APIs.
24646
24647 2008-06-02  Bruno Haible  <bruno@clisp.org>
24648
24649         * tests/test-file-has-acl.sh: Use different code for Cygwin.
24650         * tests/test-set-mode-acl.sh: Likewise.
24651         * tests/test-copy-acl.sh: Likewise.
24652         * tests/test-copy-file.sh: Likewise.
24653
24654 2008-06-02  Bruno Haible  <bruno@clisp.org>
24655
24656         * tests/test-file-has-acl.sh: Remove unused code.
24657
24658 2008-06-01  Bruno Haible  <bruno@clisp.org>
24659
24660         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
24661         (copy_acl): Just a wrapper around qcopy_acl that emits the error
24662         messages.
24663         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
24664
24665 2008-06-01  Bruno Haible  <bruno@clisp.org>
24666
24667         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
24668         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
24669         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
24670         APIs.
24671         * modules/acl-tests (configure.ac): Remove tests now contained in
24672         m4/acl.m4.
24673
24674 2008-06-02  Jim Meyering  <meyering@redhat.com>
24675
24676         announce-gen: use a better key-server host name
24677         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
24678         it may be more consistently reliable.  Suggested by Werner Koch
24679         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
24680
24681 2008-06-01  Bruno Haible  <bruno@clisp.org>
24682
24683         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
24684         Reported by Voroskoi Andras <voroskoi@gmail.com>.
24685
24686 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
24687
24688         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
24689
24690 2008-06-01  Bruno Haible  <bruno@clisp.org>
24691
24692         New ACL tests.
24693         * tests/test-file-has-acl.sh: New file.
24694         * tests/test-file-has-acl.c: New file.
24695         * tests/test-set-mode-acl.sh: New file.
24696         * tests/test-set-mode-acl.c: New file.
24697         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
24698         * tests/test-copy-acl.c: New file.
24699         * modules/acl-tests: New file, based on modules/copy-file-tests.
24700         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
24701         (Depends-on): Add acl-tests.
24702         (configure.ac): Remove checks.
24703         (Makefile.am): Don't create test-sameacls program here any more.
24704
24705 2008-06-01  Bruno Haible  <bruno@clisp.org>
24706
24707         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
24708         * tests/test-sameacls.c: Include progname.h.
24709         (main): Invoke set_program_name. Portability fixes for MacOS X,
24710         Solaris, HP-UX.
24711
24712 2008-06-01  Bruno Haible  <bruno@clisp.org>
24713
24714         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
24715         function.
24716         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
24717
24718 2008-06-01  Bruno Haible  <bruno@clisp.org>
24719
24720         * modules/rpmatch (Depends-on): Add strdup.
24721
24722 2008-06-01  Bruno Haible  <bruno@clisp.org>
24723
24724         * lib/pipe.c: Include unistd-safer.h.
24725         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
24726         * modules/pipe (Depends-on): Add unistd-safer.
24727
24728 2008-05-30  Simon Josefsson  <simon@josefsson.org>
24729
24730         * modules/autobuild (configure.ac): Call AB_INIT.
24731
24732 2008-05-30  Simon Josefsson  <simon@josefsson.org>
24733
24734         * tests/test-getaddrinfo.c: Don't print debug messages by default.
24735         Suggested by Bruno Haible <bruno@clisp.org>.
24736
24737 2008-05-30  Simon Josefsson  <simon@josefsson.org>
24738
24739         * tests/test-base64.c: Cast size_t to unsigned long when invoking
24740         printf.  Use %lu instead of %d.  Reported by Bruno Haible
24741         <bruno@clisp.org>.
24742
24743 2008-05-29  Eric Blake  <ebb9@byu.net>
24744
24745         Prefer new POSIX 200x interfaces over futimesat.
24746         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
24747         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
24748         when available.
24749         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
24750
24751 2008-05-28  Bruno Haible  <bruno@clisp.org>
24752
24753         * modules/stpcpy (License): Change to LGPLv2+.
24754         Requested by David Lutterkort <dlutter@redhat.com>.
24755
24756 2008-05-27  Bruno Haible  <bruno@clisp.org>
24757
24758         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
24759         current mingw.
24760         Reported by Jose E. Marchesi <jemarch@gnu.org>.
24761
24762 2008-05-27  Bruno Haible  <bruno@clisp.org>
24763
24764         * modules/iconv_open (Link): New section, from module 'iconv'.
24765         * modules/striconv (Link): Likewise.
24766         * modules/striconveh (Link): Likewise.
24767         * modules/xstriconv (Link): Likewise.
24768         * modules/unicodeio (Link): Likewise.
24769         * modules/propername (Link): Likewise.
24770         Reported by Jim Meyering.
24771
24772 2008-05-26  Jim Meyering  <meyering@redhat.com>
24773
24774         sha256: do not artificially restrict buffer length to be < 2^32
24775         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
24776         uint32_t to size_t.
24777         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
24778         to match.
24779
24780         avoid unaligned access errors, e.g., on sparc
24781         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
24782         direct access through a possibly-unaligned uint64* pointer.
24783         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
24784         direct access through a possibly-unaligned uint32* pointer.
24785         Prompted by this patch from Tom "spot" Callaway:
24786         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
24787
24788         sha512.c: fix typo in comment
24789         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
24790
24791 2008-05-25  Bruno Haible  <bruno@clisp.org>
24792
24793         * lib/set-mode-acl.c: Renamed from lib/acl.c.
24794         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
24795         (Makefile.am): Update lib_SOURCES.
24796
24797 2008-05-25  Bruno Haible  <bruno@clisp.org>
24798
24799         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
24800
24801 2008-05-25  Jim Meyering  <meyering@redhat.com>
24802
24803         useless-if-before-free: freed expr may have white-space differences
24804         * build-aux/useless-if-before-free: Recognize cases in which the
24805         freed expression differs from the tested one in embedded white
24806         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
24807         $1 was used, so we can't make any regexp shy.  Improved tests now
24808         detect this.
24809
24810         useless-if-before-free: accept white space in the expression.
24811         * build-aux/useless-if-before-free: For now, any white space
24812         in the expression must be identical in the free argument.
24813
24814         useless-if-before-free: efficiency tweak
24815         * build-aux/useless-if-before-free: Make the expression-matching
24816         regexp "shy".
24817         Make the *outer* regexp shy, not the expr-matching one.
24818
24819         update code-in-comment to accept cast of free arg
24820         * build-aux/useless-if-before-free: Update regexp.
24821
24822 2008-05-25  Bruno Haible  <bruno@clisp.org>
24823
24824         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
24825         * modules/copy-file-tests (Files, Makefile.am): Update.
24826         * tests/test-copy-file.c (func_test_copy): Update.
24827
24828 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
24829
24830         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
24831
24832 2008-05-23  Bruno Haible  <bruno@clisp.org>
24833
24834         Improve support for ACLs on OSF/1.
24835         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
24836         Remove fallback for unknown flavors of ACLs.
24837
24838 2008-05-22  Bruno Haible  <bruno@clisp.org>
24839
24840         Add support for ACLs on OSF/1.
24841         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
24842         replacements.
24843         (acl_free_text): New macro fallback.
24844         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
24845         acl_free.
24846         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
24847         acl_free_text function. Require AC_C_INLINE.
24848
24849 2008-05-22  Bruno Haible  <bruno@clisp.org>
24850
24851         Make copy_acl work on MacOS X 10.5.
24852         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
24853         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
24854         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
24855         If MODE_INSIDE_ACL, don't assume that every system has the same text
24856         representation for ACLs as FreeBSD.
24857         * lib/copy-acl.c (copy_acl): Add support for platforms with
24858         !MODE_INSIDE_ACL.
24859         * lib/file-has-acl.c (file_has_acl): Likewise.
24860         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
24861         FreeBSD, MacOS X, or IRIX, respectively.
24862
24863 2008-05-22  Bruno Haible  <bruno@clisp.org>
24864
24865         * lib/acl.h: Don't include <sys/acl.h>.
24866         (GETACLCNT): Move fallback to lib/acl-internal.h.
24867         * lib/acl-internal.h: Include <sys/acl.h> here.
24868         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
24869
24870 2008-05-22  Bruno Haible  <bruno@clisp.org>
24871
24872         Split off copy_acl function to separate file.
24873         * lib/copy-acl.c: New file, extracted from lib/acl.c.
24874         * lib/acl.c (copy_acl): Moved function to separate file.
24875         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
24876         * modules/acl (Files): Add lib/copy-acl.c.
24877         (Makefiles.am): Augment lib_SOURCES.
24878
24879 2008-05-22  Bruno Haible  <bruno@clisp.org>
24880
24881         * modules/copy-file-tests: New file.
24882         * tests/test-copy-file.sh: New file.
24883         * tests/test-copy-file.c: New file.
24884         * tests/test-copy-file-sameacls.c: New file.
24885
24886 2008-05-22  Eric Blake  <ebb9@byu.net>
24887
24888         Avoid gcc warning.
24889         * tests/test-memcmp.c (main): Pass NULL indirectly.
24890
24891 2008-05-21  Bruno Haible  <bruno@clisp.org>
24892
24893         Add reference doc about ACLs.
24894         * doc/acl-resources.txt: New file.
24895         * doc/acl-cygwin.txt: New file.
24896
24897 2008-05-21  Bruno Haible  <bruno@clisp.org>
24898
24899         Avoid one more warning from gcc.
24900         * lib/vasnprintf.c (IF_LINT): Update comments.
24901         (VASNPRINTF): Use it also for the 'prefix' array initializer.
24902
24903 2008-05-21  Jim Meyering  <meyering@redhat.com>
24904
24905         avoid a warning from gcc
24906         * lib/vasnprintf.c (IF_LINT): Define.
24907         (scale10_round_decimal_long_double):
24908         Use it to avoid a "may be used uninitialized" warning.
24909         (scale10_round_decimal_double): Likewise.
24910
24911 2008-05-21  Simon Josefsson  <simon@josefsson.org>
24912
24913         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
24914         declared.
24915
24916 2008-05-20  Bruno Haible  <bruno@clisp.org>
24917
24918         * tests/test-memcmp.c (main): Test also the sign of the result. Test
24919         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
24920
24921 2008-05-20  Simon Josefsson  <simon@josefsson.org>
24922
24923         * modules/memcmp-tests: New file.
24924         * tests/test-memcmp.c: New file.
24925
24926 2008-05-19  Bruno Haible  <bruno@clisp.org>
24927
24928         * modules/propername (Notice, configure.ac): Put quoted "..." into
24929         --keyword option.
24930         * lib/propername.h: Update comments accordingly.
24931         Reported by Eric Blake.
24932
24933 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
24934
24935         * modules/getpass-gnu (Depends-on): Add fseeko.
24936
24937 2008-05-19  Simon Josefsson  <simon@josefsson.org>
24938
24939         * modules/base64-tests: New file.
24940
24941 2008-05-19  Bo Borgerson <gigabo@gmail.com>
24942
24943         * lib/base64.c (base64_decode_ctx): If a decode context structure
24944         was passed in use it to ignore newlines.  If a context structure
24945         was _not_ passed in, continue to treat newlines as garbage (this
24946         is the historical behavior).  Formerly base64_decode.
24947         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
24948         takes a decode context structure.
24949         * lib/base64.h (base64_decode): Macro for four-argument calls.
24950         (base64_decode_alloc): Likewise.
24951         * lib/base64.c (base64_decode_ctx): If a decode context structure
24952         was passed in use it to ignore newlines.  If a context structure
24953         was _not_ passed in, continue to treat newlines as garbage (this
24954         is the historical behavior).  Formerly base64_decode.
24955         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
24956         takes a decode context structure.
24957         * lib/base64.h (base64_decode): Macro for four-argument calls.
24958         (base64_decode_alloc): Likewise.
24959
24960 2008-05-19  Jim Meyering  <meyering@redhat.com>
24961
24962         avoid a warning from gcc
24963         * lib/trim.c (IF_LINT): Define.
24964         (trim2): Use it to avoid a "may be used uninitialized" warning.
24965
24966         Fix doc typo.
24967         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
24968
24969 2008-05-19  Bruno Haible  <bruno@clisp.org>
24970
24971         * doc/glibc-functions/getpass.texi: Document limits of other
24972         implementations.
24973
24974 2008-05-19  Simon Josefsson  <simon@josefsson.org>
24975             Bruno Haible <bruno@clisp.org>
24976
24977         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
24978
24979 2008-05-18  Bruno Haible  <bruno@clisp.org>
24980
24981         * modules/propername: New file, from GNU gettext.
24982         * lib/propername.h: New file, from GNU gettext.
24983         * lib/propername.c: New file, from GNU gettext.
24984         * MODULES.html.sh (Internationalization functions): Add propername.
24985
24986 2008-05-16  Jim Meyering  <meyering@redhat.com>
24987             Bruno Haible  <bruno@clisp.org>
24988
24989         Avoid some warnings from "gcc -Wshadow".
24990         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
24991
24992 2008-05-15  Eric Blake  <ebb9@byu.net>
24993
24994         Extend previous patch to cygwin 1.7.0.
24995         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
24996         fast implementation in cygwin >= 1.7.0.
24997         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24998         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24999
25000 2008-05-15  Bruno Haible  <bruno@clisp.org>
25001
25002         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
25003         implementation in glibc >= 2.9.
25004         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
25005         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25006
25007 2008-05-15  Bruno Haible  <bruno@clisp.org>
25008
25009         * MODULES.html.sh (Internationalization functions): Remove linebreak.
25010         (Unicode string functions): Add unilbrk/*.
25011         Reported by Karl Berry.
25012
25013 2008-05-15  Eric Blake  <ebb9@byu.net>
25014
25015         Fix violation of <stdbool.h> replacement in regex.
25016         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
25017         * lib/regexec.c (re_search_internal): Likewise.
25018         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
25019
25020 2008-05-15  Jim Meyering  <meyering@redhat.com>
25021
25022         avoid distracting test output when git or cvs is not found
25023         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
25024         * tests/test-vc-list-files-git.sh: Likewise.
25025
25026 2008-05-15  Eric Blake  <ebb9@byu.net>
25027
25028         Glibc finally accepted the memmem speedup code, bugzilla #5514.
25029         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
25030         glibc version.
25031         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
25032         * doc/posix-functions/strstr.texi (strstr): Likewise.
25033         * lib/str-two-way.h (MAX): Sychronize with glibc.
25034
25035 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
25036
25037         * lib/regcomp.c (optimize_utf8): Add a note on why we test
25038         opr.ctx_type.
25039         (calc_first): Initialize constraint field.
25040         (duplicate_node_closure): Use it instead of special casing ANCHORS.
25041         Fix grammar.
25042         (duplicate_node): Merge constraint field for all node types.
25043         (calc_eclosure_iter): Look at constraint field for all node types.
25044         * lib/regex_internal.c (create_cd_newstate): Don't look at
25045         opr.ctx_type.
25046
25047 2008-05-14  Bruno Haible  <bruno@clisp.org>
25048
25049         Help GCC to do better code generation.
25050         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
25051         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
25052         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
25053         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
25054         Declare with attribute 'malloc' if supported.
25055
25056 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
25057
25058         use "echo STR|wc -c" rather than unportable "expr length STR"
25059         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
25060         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
25061
25062 2008-05-14  Jim Meyering  <meyering@redhat.com>
25063
25064         use dd ibs=$n count=1 ... rather than less-portable head -c$n
25065         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
25066         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
25067         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
25068         via Collin Lasse.
25069
25070 2008-05-14  Eric Blake  <ebb9@byu.net>
25071
25072         Avoid quadratic growth in gl_LIBSOURCES.
25073         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
25074         Suggested by Bruno Haible.
25075
25076         Test xmemdup0.
25077         * modules/xmemdup0-tests: New file.
25078         * tests/test-xmemdup0.c: Likewise.
25079
25080 2008-05-13  Eric Blake  <ebb9@byu.net>
25081
25082         Split xmemdup0 into its own module.
25083         * modules/xmemdup0: New file.
25084         * lib/xmemdup0.h: Likewise.
25085         * lib/xmemdup0.c: Likewise.
25086         * MODULES.html.sh (Memory management functions): Add xmemdup0.
25087         * lib/xalloc.h (xmemdup0): Remove.
25088         * lib/xmalloc.c (xmemdup0): Likewise.
25089
25090 2008-05-13  Eric Blake  <ebb9@byu.net>
25091             Bruno Haible  <bruno@clisp.org>
25092
25093         Reduce number of forks required during autoconf.
25094         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
25095         and gl_LIBSOURCES_DIR.
25096         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
25097         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
25098         m4_syscmd per file.
25099         <m4_foreach_w>: Move...
25100         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
25101
25102 2008-05-13  Eric Blake  <ebb9@byu.net>
25103
25104         * gnulib-tool: Fix various comment typos.
25105
25106 2008-05-12  Bruno Haible  <bruno@clisp.org>
25107
25108         Tailor the linebreaking algorithm.
25109         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
25110
25111 2008-05-12  Bruno Haible  <bruno@clisp.org>
25112
25113         Update to Unicode 5.0.0.
25114         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
25115         LBP_JV, LBP_JT. Redistribute values.
25116         (unilbrk_table): Change size.
25117         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
25118         Unicode TR#14 rev. 22.
25119         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
25120         LBP_JV, LBP_JT. Redistribute values.
25121         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
25122         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
25123         Update.
25124         * lib/unilbrk/lbrkprop1.h: Regenerated.
25125         * lib/unilbrk/lbrkprop2.h: Regenerated.
25126         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
25127         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
25128         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
25129         Likewise.
25130         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
25131         Likewise.
25132         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
25133         result.
25134         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
25135         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
25136         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
25137         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
25138         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
25139         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
25140
25141 2008-05-11  Bruno Haible  <bruno@clisp.org>
25142
25143         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
25144
25145 2008-05-11  Bruno Haible  <bruno@clisp.org>
25146
25147         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
25148         * modules/unilbrk/gen-lbrk: New file.
25149
25150 2008-05-11  Bruno Haible  <bruno@clisp.org>
25151
25152         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
25153         * m4/sha512.m4 (gl_SHA512): Likewise.
25154
25155 2008-05-11  Jim Meyering  <meyering@redhat.com>
25156
25157         New modules: crypto/sha256, crypto/sha512 (from coreutils)
25158         * modules/crypto/sha256: New file.
25159         * modules/crypto/sha512: Likewise.
25160         * lib/sha256.c: Likewise.
25161         * lib/sha256.h: Likewise.
25162         * lib/sha512.c: Likewise.
25163         * lib/sha512.h: Likewise.
25164         * lib/u64.h: Likewise.
25165         * m4/sha256.m4: Likewise.
25166         * m4/sha512.m4: Likewise.
25167         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
25168
25169 2008-05-10  Bruno Haible  <bruno@clisp.org>
25170
25171         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
25172         (Input/Output <stdio.h>): Add xprintf.
25173         (Signal handling <signal.h>): Add strsignal.
25174         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
25175         (Core language properties): Add func.
25176         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
25177         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
25178         strings.
25179         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
25180         (Input/output): New section.
25181         (File system functions): Add openat-die, stat-macros.
25182         (Networking functions): Add sockets.
25183         (Unicode string functions): Add unictype/*.
25184         (Support for building libraries and executables): Add gperf.
25185         (Support for building documentation): Add agpl-3.0.
25186         (Misc): Add nocrash.
25187
25188 2008-05-10  Bruno Haible  <bruno@clisp.org>
25189
25190         * modules/unictype/gen-ctype: New file.
25191
25192 2008-05-10  Jim Meyering  <meyering@redhat.com>
25193
25194         Make chdir-safer.c more efficient on a system with no symlinks.
25195         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
25196         also if ELOOP is zero.  Suggested by Bruno Haible.
25197
25198         Make chdir-safer.c slightly safer.
25199         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
25200         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
25201
25202         Avoid compile failure on systems without ELOOP (like mingw).
25203         * lib/chdir-safer.c (ELOOP): Define if not already defined.
25204         Reported by Bruno Haible.
25205
25206 2008-05-10  Bruno Haible  <bruno@clisp.org>
25207
25208         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
25209         (is_utf8_encoding): Use a case-insensitive comparison.
25210         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
25211         streq.
25212
25213 2008-05-10  Bruno Haible  <bruno@clisp.org>
25214
25215         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
25216         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
25217         * lib/unilbrk/ulc-common.h (iconv_string_length,
25218         iconv_string_keeping_offsets): Remove declarations.
25219         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
25220         Don't include <iconv.h>, streq.h, xsize.h.
25221         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
25222         conversion.
25223         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
25224         <iconv.h>, streq.h, xsize.h.
25225         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
25226         conversion.
25227         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
25228         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
25229         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
25230         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
25231
25232 2008-05-10  Bruno Haible  <bruno@clisp.org>
25233
25234         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
25235         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
25236
25237         * modules/unilbrk/u32-width-linebreaks-tests: New file.
25238         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
25239
25240         * modules/unilbrk/u16-width-linebreaks-tests: New file.
25241         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
25242
25243         * modules/unilbrk/u8-width-linebreaks-tests: New file.
25244         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
25245
25246         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
25247         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
25248
25249         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
25250         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
25251
25252         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
25253         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
25254
25255         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
25256         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
25257
25258 2008-05-10  Bruno Haible  <bruno@clisp.org>
25259
25260         Split up 'linebreak' module.
25261         * lib/unilbrk.h: New file, based on lib/linebreak.h.
25262         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
25263         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
25264         modifications.
25265         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
25266         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
25267         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
25268         lib/linebreak.c.
25269         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
25270         lib/linebreak.c.
25271         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
25272         lib/linebreak.c.
25273         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
25274         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
25275         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
25276         lib/linebreak.c.
25277         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
25278         lib/linebreak.c.
25279         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
25280         lib/linebreak.c.
25281         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
25282         lib/linebreak.c.
25283         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
25284         lib/linebreak.c.
25285         * modules/unilbrk/base: New file.
25286         * modules/unilbrk/tables: New file.
25287         * modules/unilbrk/u8-possible-linebreaks: New file.
25288         * modules/unilbrk/u16-possible-linebreaks: New file.
25289         * modules/unilbrk/u32-possible-linebreaks: New file.
25290         * modules/unilbrk/ulc-common: New file.
25291         * modules/unilbrk/ulc-possible-linebreaks: New file.
25292         * modules/unilbrk/u8-width-linebreaks: New file.
25293         * modules/unilbrk/u16-width-linebreaks: New file.
25294         * modules/unilbrk/u32-width-linebreaks: New file.
25295         * modules/unilbrk/ulc-width-linebreaks: New file.
25296         * lib/linebreak.h: Remove file.
25297         * lib/linebreak.c: Remove file.
25298         * m4/linebreak.m4: Remove file.
25299         * modules/linebreak: Remove file.
25300         * NEWS: Mention the changes.
25301
25302 2008-05-09  Eric Blake  <ebb9@byu.net>
25303
25304         Add xmemdup0.
25305         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
25306         implementation.
25307         * lib/xmalloc.c (xmemdup0): New C implementation.
25308
25309 2008-05-08  Bruno Haible  <bruno@clisp.org>
25310
25311         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
25312
25313 2008-05-07  Eric Blake  <ebb9@byu.net>
25314
25315         Support cross-compilation of <wctype.h>.
25316         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
25317         AC_CACHE_CHECK.
25318
25319 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
25320
25321         * build-aux/vc-list-files: Add support for bzr.
25322
25323 2008-05-03  Jim Meyering  <meyering@redhat.com>
25324
25325         avoid failed assertion with tight malloc
25326         * tests/test-getndelim2.c: Correct an off-by-one assertion.
25327
25328 2008-05-03  Simon Josefsson  <simon@josefsson.org>
25329
25330         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
25331         are needed from arpa/inet.h.
25332         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
25333         Reported by Bruno Haible.
25334
25335 2008-05-02  Jim Meyering  <meyering@redhat.com>
25336
25337         avoid compilation error on FreeBSD 6
25338         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
25339
25340 2008-05-01  Jim Meyering  <meyering@redhat.com>
25341
25342         useless-if-before-free: correct --help's exit status description
25343         * build-aux/useless-if-before-free (usage): Like grep, exit 0
25344         for one or more matches, etc.  Reported by Bruno Haible.
25345
25346         vc-list-files: make the stand-alone gnulib test work
25347         * modules/vc-list-files-tests (configure.ac):
25348         Define and AC_SUBST abs_aux_dir.
25349         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
25350         $(abs_top_srcdir) to each script and having each of them
25351         duplicate the work of setting PATH, set PATH here, using
25352         the new variable, abs_aux_dir instead.
25353         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
25354         * tests/test-vc-list-files-git.sh: Likewise.
25355         Reported by Bruno Haible.
25356
25357 2008-05-01  Bruno Haible  <bruno@clisp.org>
25358
25359         * lib/getndelim2.c (getndelim2): Fix newsize computation during
25360         reallocation. Rename 'done' to 'found_delimiter'.
25361
25362 2008-05-01  Jim Meyering  <meyering@redhat.com>
25363
25364         vc-list-files: accommodate /bin/sh like the one from Solaris 10
25365         * build-aux/vc-list-files: Use `...`, not $(...).
25366
25367 2008-04-30  Jim Meyering  <meyering@redhat.com>
25368
25369         add tests for vc-list-files
25370         * modules/vc-list-files-tests: New module.
25371         * tests/test-vc-list-files-cvs.sh: New file.
25372         * tests/test-vc-list-files-git.sh: New file.
25373
25374         avoid a warning from gcc
25375         * lib/getndelim2.c (IF_LINT): Define.
25376         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
25377
25378         vc-list-files: work properly with build-aux/cvsu, too
25379         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
25380         to all cvs-based clauses.
25381
25382         vc-list-files: work properly in the CVS+awk case, too
25383         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
25384
25385         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
25386         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
25387         take more than one file argument, so .  Add quotes, just in case $dir
25388         ever contains a shell meta-character.  Prompted by Soren Hansen in
25389         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
25390
25391 2008-04-29  Eric Blake  <ebb9@byu.net>
25392
25393         Optimize getndelim2 to use block operations when possible.
25394         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
25395         freadseek, and memchr2.
25396         * lib/getndelim2.c (getndelim2): Use them for block reads.
25397
25398 2008-04-29  Bruno Haible  <bruno@clisp.org>
25399
25400         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
25401         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25402         * modules/inet_ntop (Depends-on): Add extensions.
25403         * modules/inet_pton (Depends-on): Likewise.
25404         Reported by Simon Josefsson.
25405
25406 2008-04-29  Jim Meyering  <meyering@redhat.com>
25407
25408         When the is more than one match in a block, match all of them.
25409         * build-aux/useless-if-before-free: Iterate through each block
25410         until there are no more matches.
25411
25412         Fix broken useless-if-before-free script.
25413         * build-aux/useless-if-before-free: Fix typo: missing "?" after
25414         the expression to match cast of argument to free-like function.
25415
25416 2008-04-29  Eric Blake  <ebb9@byu.net>
25417
25418         Use new header.
25419         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
25420
25421 2008-04-29  Jim Meyering  <meyering@redhat.com>
25422
25423         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
25424         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
25425         by gnulib to exist and to declare e.g., inet_ntop.
25426         Don't include "inet_ntop.h", now removed.
25427
25428         * m4/arpa_inet_h.m4: Remove trailing blanks.
25429
25430 2008-04-29  Eric Blake  <ebb9@byu.net>
25431
25432         Silence valgrind on safe reads beyond potential array bounds.
25433         * lib/rawmemchr.valgrind: New file.
25434         * lib/strchrnul.valgrind: Likewise.
25435         * modules/rawmemchr (Files): Distribute new file.
25436         * modules/strchrnul (Files): Likewise.
25437         Suggested by Bruno Haible.
25438
25439 2008-04-29  Bruno Haible  <bruno@clisp.org>
25440
25441         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
25442         (inet_ntop, inet_pton): Change portability warning's wording.
25443         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
25444         Invoke gl_CHECK_NEXT_HEADERS.
25445         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
25446         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
25447         set ARPA_INET_H.
25448         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25449         * modules/arpa_inet (Description): No longer only for systems that
25450         lack it.
25451         (Depends-on): Add include_next.
25452         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
25453         HAVE_ARPA_INET_H.
25454
25455 2008-04-29  Jim Meyering  <meyering@redhat.com>
25456
25457         * modules/mkdir (License): Re-license as LGPLv2+.
25458
25459 2008-04-29  Bruno Haible  <bruno@clisp.org>
25460
25461         * modules/rawmemchr (Maintainer): Set to Eric.
25462         * modules/strchrnul (Maintainer): Likewise.
25463
25464 2008-04-29  Simon Josefsson  <simon@josefsson.org>
25465
25466         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
25467         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
25468
25469         * modules/arpa_inet (arpa/inet.h): Use them.
25470
25471 2008-04-28  Eric Blake  <ebb9@byu.net>
25472
25473         Test getndelim2.
25474         * modules/getndelim2-tests: New file.
25475         * tests/test-getndelim2.c: Likewise.
25476         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
25477         stream.
25478         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
25479
25480         * MODULES.html.sh: Document new module.
25481
25482 2008-04-20  Bruno Haible  <bruno@clisp.org>
25483
25484         * lib/c-stack.c (die): Use raise.
25485         * modules/c-stack (Depends-on): Add raise.
25486
25487 2008-04-28  Bruno Haible  <bruno@clisp.org>
25488
25489         Expect rpmatch to be declared.
25490         * lib/yesno.c (rpmatch): Remove declaration.
25491
25492         Declare rpmatch.
25493         * lib/stdlib.in.h (rpmatch): New declaration.
25494         * lib/rpmatch.c: Include <stdlib.h> first.
25495         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
25496         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
25497         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
25498         HAVE_RPMATCH.
25499         * modules/rpmatch (Depends-on): Add stdlib, extensions.
25500         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25501         (Include): Set to <stdlib.h>.
25502         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
25503         HAVE_RPMATCH.
25504         * NEWS: Document the change.
25505
25506 2008-04-28  Bruno Haible  <bruno@clisp.org>
25507
25508         Change rpmatch to use nl_langinfo when appropriate.
25509         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
25510         (N_): New macro.
25511         (localized_pattern): New function/macro.
25512         (try): Remove match, nomatch arguments. Copy the pattern into safe
25513         memory before caching it.
25514         (rpmatch): Use localized_pattern. Add translator comments.
25515         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
25516         Suggested by Eric Blake.
25517         * modules/rpmatch (Depends-on): Add stdbool.
25518
25519 2008-04-28  Eric Blake  <ebb9@byu.net>
25520
25521         Add rawmemchr module, matching glibc.
25522         * modules/string (Makefile.am): New indicator.
25523         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
25524         * lib/string.in.h (rawmemchr): Declare when appropriate.
25525         * modules/rawmemchr: New file.
25526         * m4/rawmemchr.m4: Likewise.
25527         * lib/rawmemchr.c: Likewise.
25528         * modules/rawmemchr-tests: Likewise.
25529         * tests/test-rawmemchr.c: Likewise.
25530         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
25531         module.
25532         * modules/strchrnul (Depends-on): Add rawmemchr.
25533         * lib/strchrnul.c (strchrnul): Optimize a corner case.
25534
25535         Whitespace cleanup.
25536         * tests/test-strchrnul.c: Reindent.
25537         * lib/strchrnul.c: Likewise.
25538
25539         Optimize and test strchrnul.
25540         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
25541         * modules/strchrnul-tests: New file.
25542         * tests/test-strchrnul.c: Likewise.
25543
25544         Remove intprops dependency.
25545         * modules/memchr (Depends-on): Remove intprops.
25546         * modules/memrchr (Depends-on): Likewise.
25547         * modules/memchr2 (Depends-on): Likewise.
25548         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
25549         * lib/memrchr.c (__memrchr): Likewise.
25550         * lib/memrchr2.c (memchr2): Likewise.
25551         Reported by Simon Josefsson.
25552
25553 2008-04-28  Simon Josefsson  <simon@josefsson.org>
25554
25555         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
25556         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25557
25558 2008-04-28  Simon Josefsson  <simon@josefsson.org>
25559
25560         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
25561
25562         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
25563
25564         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
25565
25566         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
25567         declarations.
25568         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
25569
25570         * m4/inet_pton.m4: Don't check for header files.
25571
25572         * m4/inet_ntop.m4: Don't check for header files.
25573
25574 2008-04-28  Simon Josefsson  <simon@josefsson.org>
25575
25576         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
25577         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
25578         trigger for cygwin).
25579         Reported by Bruno Haible  <bruno@clisp.org>.
25580
25581 2008-04-28  Bruno Haible  <bruno@clisp.org>
25582
25583         * doc/posix-functions/strdup.texi: Mention mingw problem.
25584
25585 2008-04-27  Bruno Haible  <bruno@clisp.org>
25586
25587         * modules/stat-time-tests (Depends-on): Add sleep.
25588         * tests/test-stat-time.c (force_unlink): New function.
25589         (cleanup): Use it.
25590         (test_mtime): Remove the ctime related tests.
25591         (test_ctime): New function, containing the ctime related tests.
25592         (main): Call test_ctime, except on native Windows platforms.
25593
25594 2008-04-27  Bruno Haible  <bruno@clisp.org>
25595
25596         * lib/rpmatch.c (rpmatch): Add some comments.
25597         Reported by James Youngman <jay@gnu.org>.
25598
25599 2008-04-27  Bruno Haible  <bruno@clisp.org>
25600
25601         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
25602         quiet NaNs.
25603
25604 2008-04-27  Bruno Haible  <bruno@clisp.org>
25605
25606         Make test-yesno.sh work on mingw.
25607         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
25608         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
25609         (main): Set stdin to binary mode.
25610         * modules/yesno-tests (Depends-on): Add binary-io.
25611
25612 2008-04-27  Bruno Haible  <bruno@clisp.org>
25613
25614         Fix 'isfinite' on x86, x86_64, ia64 platforms.
25615         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
25616         argument that lie outside the IEEE 854 domain.
25617         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
25618         (gl_ISFINITE): Use it.
25619         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
25620
25621 2008-04-27  Bruno Haible  <bruno@clisp.org>
25622
25623         Allow local renaming in config.h.
25624         * lib/memrchr.c (memrchr): Don't undefine outside libc.
25625
25626 2008-04-27  Bruno Haible  <bruno@clisp.org>
25627
25628         * lib/memchr.c (__memchr): Change type of 'i'.
25629         * lib/memchr2.c (memchr2): Likewise.
25630
25631 2008-04-26  Eric Blake  <ebb9@byu.net>
25632         and Bruno Haible  <bruno@clisp.org>
25633
25634         Optimize and test memrchr.
25635         * modules/memrchr (Depends-on): Add intprops.
25636         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
25637         * modules/memrchr-tests: New file.
25638         * tests/test-memrchr.c: New file.
25639
25640 2008-04-26  Bruno Haible  <bruno@clisp.org>
25641
25642         Add tentative support for DragonFly BSD.
25643         * lib/stdio-impl.h: Add macros for DragonFly BSD.
25644         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
25645         fp.
25646         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
25647         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
25648         * lib/fpurge.c (fpurge): Likewise.
25649         * lib/freadable.c (freaadable): Likewise.
25650         * lib/freadahead.c (freadahead): Likewise.
25651         * lib/freading.c (freading): Likewise.
25652         * lib/freadptr.c (freadptr): Likewise.
25653         * lib/freadseek.c (freadptrinc): Likewise.
25654         * lib/fseeko.c (fseeko): Likewise.
25655         * lib/fseterr.c (fseterr): Likewise.
25656         * lib/fwritable.c (fwritable): Likewise.
25657         * lib/fwriting.c (fwriting): Likewise.
25658
25659 2008-04-26  Bruno Haible  <bruno@clisp.org>
25660
25661         * lib/stdio-impl.h: New file.
25662         * lib/fbufmode.c: Include stdio-impl.h.
25663         (fbufmode): Use fp_, remove redundant #defines.
25664         * lib/fflush.c: Include stdio-impl.h.
25665         (clear_ungetc_buffer): Remove redundant #defines.
25666         * lib/fpurge.c: Include stdio-impl.h.
25667         (fpurge): Remove redundant #defines.
25668         * lib/freadable.c: Include stdio-impl.h.
25669         (freadable): Remove redundant #defines.
25670         * lib/freadahead.c: Include stdio-impl.h.
25671         (freadahead): Remove redundant #defines.
25672         * lib/freading.c: Include stdio-impl.h.
25673         (freading): Remove redundant #defines.
25674         * lib/freadptr.c: Include stdio-impl.h.
25675         (freadptr): Remove redundant #defines.
25676         * lib/freadseek.c: Include stdio-impl.h.
25677         (freadptrinc): Remove redundant #defines.
25678         * lib/fseeko.c: Include stdio-impl.h.
25679         (rpl_fseeko): Remove redundant #defines.
25680         * lib/fseterr.c: Include stdio-impl.h.
25681         (fseterr): Remove redundant #defines.
25682         * lib/fwritable.c: Include stdio-impl.h.
25683         (fwritable: Remove redundant #defines.
25684         * lib/fwriting.c: Include stdio-impl.h.
25685         (fwriting): Remove redundant #defines.
25686         * modules/fbufmode (Files): Add lib/stdio-impl.h.
25687         * modules/fflush (Files): Likewise.
25688         * modules/fpurge (Files): Likewise.
25689         * modules/freadable (Files): Likewise.
25690         * modules/freadahead (Files): Likewise.
25691         * modules/freading (Files): Likewise.
25692         * modules/freadptr (Files): Likewise.
25693         * modules/freadseek (Files): Likewise.
25694         * modules/fseeko (Files): Likewise.
25695         * modules/fseterr (Files): Likewise.
25696         * modules/fwritable (Files): Likewise.
25697         * modules/fwriting (Files): Likewise.
25698
25699 2008-04-26  Bruno Haible  <bruno@clisp.org>
25700
25701         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
25702         restore_seek_optimization, update_fpos_cache): New functions, extracted
25703         from rpl_fflush.
25704         (rpl_fflush): Use them.
25705         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
25706         (gl_REPLACE_FFLUSH): Use it.
25707
25708 2008-04-26  Bruno Haible  <bruno@clisp.org>
25709
25710         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
25711         on Solaris.
25712         * tests/test-xstrtoimax.sh: Likewise.
25713         * tests/test-xstrtoumax.sh: Likewise.
25714         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25715
25716 2008-04-26  Bruno Haible  <bruno@clisp.org>
25717
25718         * modules/memchr-tests: New file.
25719         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
25720
25721 2008-04-26  Eric Blake  <ebb9@byu.net>
25722             Bruno Haible  <bruno@clisp.org>
25723
25724         * lib/memchr.c: Include intprops.h.
25725         (__memchr): Optimize parallel detection of matching bytes. Rename local
25726         variables. Add explanatory comments.
25727
25728 2008-04-26  Bruno Haible  <bruno@clisp.org>
25729
25730         Fix module 'memchr', broken since 2000-10-28.
25731         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
25732
25733 2008-04-26  Bruno Haible  <bruno@clisp.org>
25734
25735         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
25736         comments.
25737
25738 2008-04-25  Eric Blake  <ebb9@byu.net>
25739
25740         Use native fstatat on cygwin 1.7.0.
25741         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
25742         first.
25743
25744 2008-04-23  Eric Blake  <ebb9@byu.net>
25745
25746         Improve memchr2 performance.
25747         * lib/memchr2.c (memchr2): Further optimize parallel detection of
25748         NUL bytes.
25749         * modules/memchr2 (Depends-on): Use intprops.h.
25750
25751 2008-04-23  Simon Josefsson  <simon@josefsson.org>
25752
25753         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
25754         an inline function instead of a CPP macro.  Patch by Ben Pfaff
25755         <blp@cs.stanford.edu>.
25756
25757 2008-04-23  Simon Josefsson  <simon@josefsson.org>
25758
25759         * lib/arpa_inet.in.h: New file.
25760
25761         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
25762         (Makefile.am): Sed in substitute header file.
25763
25764         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
25765         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
25766
25767         * modules/inet_ntop (configure.ac): Use
25768         gl_ARPA_INET_MODULE_INDICATOR.
25769
25770         * modules/inet_pton (configure.ac): Use
25771         gl_ARPA_INET_MODULE_INDICATOR.
25772
25773 2008-04-22  Jim Meyering  <meyering@redhat.com>
25774
25775         * modules/verify (License): Re-license as LGPLv2+.
25776
25777 2008-04-22  Simon Josefsson  <simon@josefsson.org>
25778
25779         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
25780         parameter to void* as per POSIX standard (MinGW uses char*).
25781
25782 2008-04-21  Bruno Haible  <bruno@clisp.org>
25783
25784         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
25785         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
25786         Define to replacements if REPLACE_ISWCNTRL is 1.
25787         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
25788         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
25789         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
25790         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
25791         what it fixes.
25792         * doc/posix-functions/iswalpha.texi: Likewise.
25793         * doc/posix-functions/iswblank.texi: Likewise.
25794         * doc/posix-functions/iswcntrl.texi: Likewise.
25795         * doc/posix-functions/iswdigit.texi: Likewise.
25796         * doc/posix-functions/iswgraph.texi: Likewise.
25797         * doc/posix-functions/iswlower.texi: Likewise.
25798         * doc/posix-functions/iswprint.texi: Likewise.
25799         * doc/posix-functions/iswpunct.texi: Likewise.
25800         * doc/posix-functions/iswspace.texi: Likewise.
25801         * doc/posix-functions/iswupper.texi: Likewise.
25802         * doc/posix-functions/iswxdigit.texi: Likewise.
25803         Reported by Alain Guibert.
25804
25805 2008-04-21  Bruno Haible  <bruno@clisp.org>
25806
25807         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
25808         Patch by Alain Guibert.
25809
25810 2008-04-21  Bruno Haible  <bruno@clisp.org>
25811
25812         Fix test failures on mingw.
25813         * tests/test-xstrtol.c (print_no_progname): New function.
25814         (main): Install it in error_print_progname hook.
25815         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
25816         * tests/test-xstrtoimax.sh: Likewise.
25817         * tests/test-xstrtoumax.sh: Likewise.
25818
25819 2008-04-21  Bruno Haible  <bruno@clisp.org>
25820
25821         Fix test failure on mingw.
25822         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
25823
25824 2008-04-21  Bruno Haible  <bruno@clisp.org>
25825
25826         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
25827         Actually assign a value.
25828
25829 2008-04-20  Bruno Haible  <bruno@clisp.org>
25830
25831         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
25832         take 2.
25833         * lib/canonicalize.c (canonicalize_file_name): Elide if the
25834         'canonicalize-lgpl' module is also used.
25835         * lib/canonicalize-lgpl.c: Undo last change.
25836         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
25837
25838 2008-04-20  Bruno Haible  <bruno@clisp.org>
25839
25840         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
25841         config.h. Provide _mkdir based fallback for mingw.
25842         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
25843         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
25844         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
25845         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
25846         rather than defining mkdir in config.h.
25847         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
25848         (gl_SYS_STAT_H_DEFAULTS): New macro.
25849         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
25850         HAVE_IO_H any more.
25851         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
25852         HAVE_DECL_MKDIR and HAVE_IO_H.
25853
25854 2008-04-20  Bruno Haible  <bruno@clisp.org>
25855
25856         * lib/isapipe.c: Port to native Windows platforms.
25857
25858 2008-04-20  Bruno Haible  <bruno@clisp.org>
25859
25860         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
25861
25862 2008-04-21  Eric Blake  <ebb9@byu.net>
25863
25864         Work around preprocessors that don't handle UINTMAX_MAX.
25865         * lib/memchr2.c (memchr2): Avoid embedded #if.
25866         Reported by Alain Guibert, fix suggested by Bruno Haible.
25867
25868 2008-04-21  Simon Josefsson  <simon@josefsson.org>
25869
25870         * doc/posix-functions/strftime.texi (strftime): Explain better
25871         Windows incompatibility.  Suggested by Micah Cowan
25872         <micah@cowan.name>.
25873
25874 2008-04-20  Bruno Haible  <bruno@clisp.org>
25875
25876         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
25877         unistr/u8-mblen.
25878
25879 2008-04-20  Bruno Haible  <bruno@clisp.org>
25880
25881         Fix test failure on platforms with non-GNU iconv.
25882         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
25883         (U_TO_U8): Use it, rather than u16_to_u8.
25884         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
25885         units at the end of the input string.
25886         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
25887
25888 2008-04-20  Bruno Haible  <bruno@clisp.org>
25889
25890         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
25891         when the resulting length is 0.
25892         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
25893
25894 2008-04-20  Bruno Haible  <bruno@clisp.org>
25895
25896         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
25897         works.
25898         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
25899
25900 2008-04-20  Bruno Haible  <bruno@clisp.org>
25901
25902         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
25903         * modules/tsearch-tests (configure.ac): Test for initstate function.
25904
25905 2008-04-20  Bruno Haible  <bruno@clisp.org>
25906
25907         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
25908         for nlink_t if missing.
25909         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
25910
25911 2008-04-19  Bruno Haible  <bruno@clisp.org>
25912
25913         Work around snprintf bug on Linux libc5.
25914         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
25915         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
25916         gl_SNPRINTF_SIZE1.
25917         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25918         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
25919         that test failed.
25920         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
25921         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
25922         * modules/snprintf (Files): Add m4/printf.m4.
25923         * modules/vsnprintf (Files): Likewise.
25924         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
25925         * doc/posix-functions/vsnprintf.texi: Likewise.
25926
25927 2008-04-19  Bruno Haible  <bruno@clisp.org>
25928
25929         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
25930         from 0.0058 to less than 10^-7.
25931
25932 2008-04-19  Bruno Haible  <bruno@clisp.org>
25933
25934         Fix rounding when a precision is given.
25935         * lib/vasnprintf.c (is_borderline): New function.
25936         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
25937         9...9x.
25938         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
25939         %e, %g.
25940         * tests/test-vasprintf-posix.c (test_function): Likewise.
25941         * tests/test-snprintf-posix.h (test_function): Likewise.
25942         * tests/test-sprintf-posix.h (test_function): Likewise.
25943         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
25944         * tests/test-printf-posix.h (test_function): Likewise.
25945         * tests/test-printf-posix.output: Update.
25946         Reported by John Darrington <john@darrington.wattle.id.au> via
25947         Ben Pfaff <blp@cs.stanford.edu>.
25948
25949 2008-04-18  Simon Josefsson  <simon@josefsson.org>
25950
25951         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
25952         Suggested by Bruno Haible <bruno@clisp.org>.
25953
25954 2008-04-17  Bruno Haible  <bruno@clisp.org>
25955
25956         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
25957         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
25958         implementation.
25959         Patch by Bruce Merry <bmerry@gmail.com>.
25960
25961 2008-04-17  Simon Josefsson  <simon@josefsson.org>
25962
25963         * doc/posix-functions/strftime.texi (strftime): Mention that %e
25964         doesn't work under Windows.
25965
25966 2008-04-16  Bruno Haible  <bruno@clisp.org>
25967
25968         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
25969         New macros.
25970         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
25971         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
25972         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
25973         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
25974         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
25975         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
25976         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
25977         macros.
25978         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
25979         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
25980         Northern Sotho, Uighur.
25981
25982 2008-04-16  Bruno Haible  <bruno@clisp.org>
25983
25984         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
25985         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
25986         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
25987         Reported by Daniel Bergström <daniel@octocode.com>.
25988
25989 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
25990             Bruno Haible  <bruno@clisp.org>
25991
25992         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
25993         function.
25994         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
25995         New functions, mostly extracted from gl_locale_name_default.
25996         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
25997
25998 2008-04-16  Eric Blake  <ebb9@byu.net>
25999
26000         Adjust strtod detection to catch glibc 2.7 bug.
26001         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
26002         Reported by John Gatewood Ham.
26003
26004 2008-04-16  Bruno Haible  <bruno@clisp.org>
26005
26006         Add tentative support for Linux libc5.
26007         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
26008         * lib/fpurge.c (fpurge): Likewise.
26009         * lib/freadable.c (freadable): Likewise.
26010         * lib/freadahead.c (freadahead): Likewise.
26011         * lib/freading.c (freading): Likewise.
26012         * lib/freadptr.c (freadptr): Likewise.
26013         * lib/freadseek.c (freadptrinc): Likewise.
26014         * lib/fseeko.c (rpl_fseeko): Likewise.
26015         * lib/fseterr.c (fseterr): Likewise.
26016         * lib/fwritable.c (fwritable): Likewise.
26017         * lib/fwriting.c (fwriting): Likewise.
26018         Reported by Alain Guibert <alguibert+bts@free.fr>.
26019
26020 2008-04-15  Bruno Haible  <bruno@clisp.org>
26021
26022         * modules/mathl (configure.ac): Define module indicator.
26023
26024 2008-04-15  Bruno Haible  <bruno@clisp.org>
26025
26026         * lib/logl.c (logl): Remove unused variables.
26027
26028 2008-04-15  Bruno Haible  <bruno@clisp.org>
26029
26030         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
26031         fails.
26032
26033 2008-04-15  Bruno Haible  <bruno@clisp.org>
26034
26035         * lib/trim.c (trim2): Fix argument of isspace() macro.
26036
26037 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
26038
26039         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
26040         to 0.
26041         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
26042
26043 2008-04-14  Bruno Haible  <bruno@clisp.org>
26044
26045         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
26046         AC_LANG_PROGRAM argument.
26047         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
26048         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
26049         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
26050         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
26051         * m4/math_h.m4 (gl_MATH_H): Likewise.
26052         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
26053         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
26054         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
26055         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
26056         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
26057         * m4/regex.m4 (gl_REGEX): Likewise.
26058         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
26059         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
26060         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
26061         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
26062         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
26063         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
26064         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26065         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
26066
26067 2008-04-14  Jim Meyering  <meyering@redhat.com>
26068
26069         test-strtod: fix typos: s/abs/fabs/
26070         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
26071
26072 2008-04-13  Bruno Haible  <bruno@clisp.org>
26073
26074         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
26075         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
26076         module is also used and while not building the reloc-wrapper.
26077
26078 2008-04-13  Bruno Haible  <bruno@clisp.org>
26079
26080         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
26081
26082 2008-04-13  Bruno Haible  <bruno@clisp.org>
26083
26084         Fix AIX compilation failure introduced on 2008-04-02.
26085         * tests/test-frexp.c (exp): Undefine before redefining.
26086         * tests/test-frexpl.c (exp): Likewise.
26087
26088 2008-04-13  Bruno Haible  <bruno@clisp.org>
26089
26090         Work around a HP-UX stdio bug.
26091         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
26092         * tests/test-ftello.c (main): Likewise.
26093         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
26094         * doc/posix-functions/ftello.texi: Likewise.
26095
26096 2008-04-13  Bruno Haible  <bruno@clisp.org>
26097
26098         Make test-signbit pass on HP-UX/hppa.
26099         * tests/test-signbit.c (minus_zerol): New variable.
26100         (test_signbitl): Use it.
26101
26102 2008-04-13  Bruno Haible  <bruno@clisp.org>
26103
26104         Make truncl work on OSF/1 4.0.
26105         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
26106         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
26107         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
26108         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
26109         HAVE_DECL_TRUNCL.
26110         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
26111         HAVE_DECL_TRUNCL.
26112         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
26113
26114 2008-04-13  Bruno Haible  <bruno@clisp.org>
26115
26116         * lib/unictype.h: Remove trailing comma from enumeration definitions.
26117
26118 2008-04-13  Bruno Haible  <bruno@clisp.org>
26119
26120         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
26121         expression, so as to avoid HP-UX 11 cc compiler bug.
26122
26123 2008-04-13  Bruno Haible  <bruno@clisp.org>
26124
26125         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
26126
26127 2008-04-13  Bruno Haible  <bruno@clisp.org>
26128
26129         * lib/git-merge-changelog.c: Remove empty declaration outside of
26130         functions.
26131
26132 2008-04-13  Bruno Haible  <bruno@clisp.org>
26133
26134         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
26135
26136 2008-04-13  Bruno Haible  <bruno@clisp.org>
26137
26138         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
26139         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
26140         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
26141         also if it exists but lacks definitions of the SHUT_* macros.
26142         * modules/sys_socket (Description): Update.
26143         Reported by Elbert Pol <e.pol@chello.nl>.
26144
26145 2008-04-13  Bruno Haible  <bruno@clisp.org>
26146
26147         * lib/localcharset.c (OS2): Don't redefine if already defined.
26148         Reported by Elbert Pol <e.pol@chello.nl>.
26149
26150 2008-04-13  Bruno Haible  <bruno@clisp.org>
26151
26152         * lib/binary-io.h [__EMX__]: Include <io.h>.
26153         Reported by Elbert Pol <e.pol@chello.nl>.
26154
26155 2008-04-12  Bruno Haible  <bruno@clisp.org>
26156
26157         * lib/fpucw.h: Enable the definitions also for x86_64.
26158         Needed for NetBSD/x86_64.
26159         Reported by Thomas Klausner <tk@giga.or.at>.
26160
26161 2008-04-12  Bruno Haible  <bruno@clisp.org>
26162
26163         * tests/test-strtod.c: Include isnand.h.
26164         (main): Use isnand instead of isnan.
26165         Reported by Jim Meyering.
26166
26167 2008-04-12  Bruno Haible  <bruno@clisp.org>
26168
26169         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
26170         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
26171
26172 2008-04-12  Jim Meyering  <meyering@redhat.com>
26173
26174         * m4/math_h.m4 (gl_MATH_H): Fix typos.
26175
26176 2008-04-12  Bruno Haible  <bruno@clisp.org>
26177
26178         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
26179         Reported by Elbert Pol <e.pol@chello.nl>.
26180
26181 2008-04-12  Eric Blake  <ebb9@byu.net>
26182
26183         Work around Solaris 10 math.h bug.
26184         * m4/math_h.m4 (gl_MATH_H): Check for bug.
26185         (gl_MATH_H_DEFAULTS): Set up default.
26186         * modules/math (Makefile.am): Replace new indicators.
26187         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
26188         * tests/test-math.c (main): Test this.
26189         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
26190         * doc/posix-headers/math.texi (math.h): Mention bug.
26191         Reported by Nelson H. F. Beebe and Jim Meyering.
26192
26193 2008-04-11  Bruno Haible  <bruno@clisp.org>
26194
26195         Adapt to future versions of Apple GCC.
26196         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
26197         Reported by Peter O'Gorman <peter@pogma.com>.
26198
26199 2008-04-11  Bruno Haible  <bruno@clisp.org>
26200
26201         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
26202
26203 2008-04-11  Bruno Haible  <bruno@clisp.org>
26204
26205         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
26206
26207         * modules/getaddrinfo-tests (Makefile.am): Define
26208         test_getaddrinfo_LDADD.
26209
26210 2008-04-11  Bruno Haible  <bruno@clisp.org>
26211
26212         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
26213         (init): Fix syntax error.
26214         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
26215         is declared.
26216
26217 2008-04-11  Bruno Haible  <bruno@clisp.org>
26218
26219         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
26220         * modules/glob (Depends-on): Add stdbool.
26221
26222 2008-04-11  Bruno Haible  <bruno@clisp.org>
26223
26224         * lib/trim.c: Include <string.h>.
26225
26226 2008-04-11  Eric Blake  <ebb9@byu.net>
26227
26228         Avoid compile failure on OS/2.
26229         * lib/regex_internal.h (internal_function): Disable optimization
26230         on OS/2 (__EMX__), where it caused compiler error.
26231         Reported by Elbert Pol.
26232
26233 2008-04-11  Bruno Haible  <bruno@clisp.org>
26234
26235         Flush the standard error stream before aborting. Needed on mingw.
26236         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
26237         * tests/test-array_list.c (ASSERT): Likewise.
26238         * tests/test-array_oset.c (ASSERT): Likewise.
26239         * tests/test-avltree_list.c (ASSERT): Likewise.
26240         * tests/test-avltree_oset.c (ASSERT): Likewise.
26241         * tests/test-avltreehash_list.c (ASSERT): Likewise.
26242         * tests/test-binary-io.c (ASSERT): Likewise.
26243         * tests/test-byteswap.c (ASSERT): Likewise.
26244         * tests/test-c-ctype.c (ASSERT): Likewise.
26245         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
26246         * tests/test-c-strcasestr.c (ASSERT): Likewise.
26247         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
26248         * tests/test-c-strstr.c (ASSERT): Likewise.
26249         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
26250         * tests/test-canonicalize.c (ASSERT): Likewise.
26251         * tests/test-carray_list.c (ASSERT): Likewise.
26252         * tests/test-ceilf1.c (ASSERT): Likewise.
26253         * tests/test-ceilf2.c (ASSERT): Likewise.
26254         * tests/test-ceill.c (ASSERT): Likewise.
26255         * tests/test-count-one-bits.c (ASSERT): Likewise.
26256         * tests/test-fbufmode.c (ASSERT): Likewise.
26257         * tests/test-fflush2.c (ASSERT): Likewise.
26258         * tests/test-floorf1.c (ASSERT): Likewise.
26259         * tests/test-floorf2.c (ASSERT): Likewise.
26260         * tests/test-floorl.c (ASSERT): Likewise.
26261         * tests/test-fopen.c (ASSERT): Likewise.
26262         * tests/test-fpending.c (ASSERT): Likewise.
26263         * tests/test-fprintf-posix.c (ASSERT): Likewise.
26264         * tests/test-fpurge.c (ASSERT): Likewise.
26265         * tests/test-freadable.c (ASSERT): Likewise.
26266         * tests/test-freadahead.c (ASSERT): Likewise.
26267         * tests/test-freading.c (ASSERT): Likewise.
26268         * tests/test-freadptr.c (ASSERT): Likewise.
26269         * tests/test-freadptr2.c (ASSERT): Likewise.
26270         * tests/test-freadseek.c (ASSERT): Likewise.
26271         * tests/test-freopen.c (ASSERT): Likewise.
26272         * tests/test-frexp.c (ASSERT): Likewise.
26273         * tests/test-frexpl.c (ASSERT): Likewise.
26274         * tests/test-fseek.c (ASSERT): Likewise.
26275         * tests/test-fseeko.c (ASSERT): Likewise.
26276         * tests/test-fstrcmp.c (ASSERT): Likewise.
26277         * tests/test-ftell.c (ASSERT): Likewise.
26278         * tests/test-ftello.c (ASSERT): Likewise.
26279         * tests/test-func.c (ASSERT): Likewise.
26280         * tests/test-fwritable.c (ASSERT): Likewise.
26281         * tests/test-fwriting.c (ASSERT): Likewise.
26282         * tests/test-getdelim.c (ASSERT): Likewise.
26283         * tests/test-getline.c (ASSERT): Likewise.
26284         * tests/test-i-ring.c (ASSERT): Likewise.
26285         * tests/test-iconv-utf.c (ASSERT): Likewise.
26286         * tests/test-iconv.c (ASSERT): Likewise.
26287         * tests/test-isfinite.c (ASSERT): Likewise.
26288         * tests/test-isnand.c (ASSERT): Likewise.
26289         * tests/test-isnanf.c (ASSERT): Likewise.
26290         * tests/test-isnanl.h (ASSERT): Likewise.
26291         * tests/test-ldexpl.c (ASSERT): Likewise.
26292         * tests/test-linked_list.c (ASSERT): Likewise.
26293         * tests/test-linkedhash_list.c (ASSERT): Likewise.
26294         * tests/test-localename.c (ASSERT): Likewise.
26295         * tests/test-lseek.c (ASSERT): Likewise.
26296         * tests/test-mbscasecmp.c (ASSERT): Likewise.
26297         * tests/test-mbscasestr1.c (ASSERT): Likewise.
26298         * tests/test-mbscasestr2.c (ASSERT): Likewise.
26299         * tests/test-mbscasestr3.c (ASSERT): Likewise.
26300         * tests/test-mbscasestr4.c (ASSERT): Likewise.
26301         * tests/test-mbschr.c (ASSERT): Likewise.
26302         * tests/test-mbscspn.c (ASSERT): Likewise.
26303         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
26304         * tests/test-mbspbrk.c (ASSERT): Likewise.
26305         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
26306         * tests/test-mbsrchr.c (ASSERT): Likewise.
26307         * tests/test-mbsspn.c (ASSERT): Likewise.
26308         * tests/test-mbsstr1.c (ASSERT): Likewise.
26309         * tests/test-mbsstr2.c (ASSERT): Likewise.
26310         * tests/test-mbsstr3.c (ASSERT): Likewise.
26311         * tests/test-memchr2.c (ASSERT): Likewise.
26312         * tests/test-memmem.c (ASSERT): Likewise.
26313         * tests/test-open.c (ASSERT): Likewise.
26314         * tests/test-printf-frexp.c (ASSERT): Likewise.
26315         * tests/test-printf-frexpl.c (ASSERT): Likewise.
26316         * tests/test-printf-posix.c (ASSERT): Likewise.
26317         * tests/test-quotearg.c (ASSERT): Likewise.
26318         * tests/test-rbtree_list.c (ASSERT): Likewise.
26319         * tests/test-rbtree_oset.c (ASSERT): Likewise.
26320         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
26321         * tests/test-round1.c (ASSERT): Likewise.
26322         * tests/test-roundf1.c (ASSERT): Likewise.
26323         * tests/test-roundl.c (ASSERT): Likewise.
26324         * tests/test-signbit.c (ASSERT): Likewise.
26325         * tests/test-sleep.c (ASSERT): Likewise.
26326         * tests/test-snprintf-posix.c (ASSERT): Likewise.
26327         * tests/test-snprintf.c (ASSERT): Likewise.
26328         * tests/test-sprintf-posix.c (ASSERT): Likewise.
26329         * tests/test-stat-time.c (ASSERT): Likewise.
26330         * tests/test-strcasestr.c (ASSERT): Likewise.
26331         * tests/test-strerror.c (ASSERT): Likewise.
26332         * tests/test-striconv.c (ASSERT): Likewise.
26333         * tests/test-striconveh.c (ASSERT): Likewise.
26334         * tests/test-striconveha.c (ASSERT): Likewise.
26335         * tests/test-strsignal.c (ASSERT): Likewise.
26336         * tests/test-strstr.c (ASSERT): Likewise.
26337         * tests/test-strtod.c (ASSERT): Likewise.
26338         * tests/test-trunc1.c (ASSERT): Likewise.
26339         * tests/test-trunc2.c (ASSERT): Likewise.
26340         * tests/test-truncf1.c (ASSERT): Likewise.
26341         * tests/test-truncf2.c (ASSERT): Likewise.
26342         * tests/test-truncl.c (ASSERT): Likewise.
26343         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
26344         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
26345         * tests/test-vasnprintf.c (ASSERT): Likewise.
26346         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
26347         * tests/test-vasprintf.c (ASSERT): Likewise.
26348         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
26349         * tests/test-vprintf-posix.c (ASSERT): Likewise.
26350         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
26351         * tests/test-vsnprintf.c (ASSERT): Likewise.
26352         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
26353         * tests/test-wcwidth.c (ASSERT): Likewise.
26354         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
26355         * tests/test-xprintf-posix.c (ASSERT): Likewise.
26356         * tests/test-xvasprintf.c (ASSERT): Likewise.
26357         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
26358         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
26359         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
26360         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
26361         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
26362         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
26363         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
26364         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
26365         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
26366         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
26367         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
26368         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
26369         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
26370         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
26371         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
26372         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
26373         * tests/unictype/test-block_list.c (ASSERT): Likewise.
26374         * tests/unictype/test-block_of.c (ASSERT): Likewise.
26375         * tests/unictype/test-block_test.c (ASSERT): Likewise.
26376         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
26377         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
26378         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
26379         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
26380         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
26381         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
26382         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
26383         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
26384         * tests/unictype/test-combining.c (ASSERT): Likewise.
26385         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
26386         * tests/unictype/test-digit.c (ASSERT): Likewise.
26387         * tests/unictype/test-mirror.c (ASSERT): Likewise.
26388         * tests/unictype/test-numeric.c (ASSERT): Likewise.
26389         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
26390         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
26391         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
26392         * tests/unictype/test-scripts.c (ASSERT): Likewise.
26393         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
26394         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
26395         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
26396         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
26397         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
26398         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
26399         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
26400         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
26401         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
26402         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
26403         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
26404         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
26405         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
26406         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
26407         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
26408         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
26409         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
26410         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
26411         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
26412         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
26413         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
26414         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
26415         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
26416         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
26417         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
26418         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
26419         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
26420         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
26421         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
26422         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
26423         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
26424         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
26425         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
26426         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
26427         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
26428         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
26429         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
26430         Reported by Eric Blake.
26431
26432 2008-04-11  Bruno Haible  <bruno@clisp.org>
26433
26434         * lib/wchar.in.h: Tweak comment.
26435
26436 2008-04-11  Bruno Haible  <bruno@clisp.org>
26437
26438         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
26439         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
26440         gl_COMMON.
26441         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
26442
26443 2008-04-11  Bruno Haible  <bruno@clisp.org>
26444
26445         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
26446
26447 2008-04-11  Simon Josefsson  <simon@josefsson.org>
26448
26449         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
26450         of attempting to use non-existing /dev/*random.  Based on patch
26451         from Adam Strzelecki <ono@java.pl> in
26452         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
26453
26454 2008-04-08  Bruno Haible  <bruno@clisp.org>
26455
26456         Add tentative support for emx+gcc.
26457         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
26458         * lib/fpurge.c (fpurge): Likewise.
26459         * lib/freadable.c (freadable): Likewise.
26460         * lib/freadahead.c (freadahead): Likewise.
26461         * lib/freading.c (freading): Likewise.
26462         * lib/freadptr.c (freadptr): Likewise.
26463         * lib/freadseek.c (freadptrinc): Likewise.
26464         * lib/fseeko.c (rpl_fseeko): Likewise.
26465         * lib/fseterr.c (fseterr): Likewise.
26466         * lib/fwritable.c (fwritable): Likewise.
26467         * lib/fwriting.c (fwriting): Likewise.
26468         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
26469
26470 2008-04-09  Eric Blake  <ebb9@byu.net>
26471
26472         Avoid some autoconf warnings.
26473         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
26474         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
26475         * m4/afs.m4 (gl_AFS): Likewise.
26476         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
26477         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
26478         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
26479         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
26480         (gl_INTEGER_TYPE_SUFFIX): Likewise.
26481         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
26482         (AC_CHECK_DECLS_ONCE): Likewise.
26483         Rename file...
26484         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
26485         gnulib-tool requires autoconf 2.59 or better.
26486         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
26487
26488 2008-04-08  Eric Blake  <ebb9@byu.net>
26489
26490         Use 'git describe --match' if present (added in git 1.5.5).
26491         * build-aux/git-version-gen: Limit result to tags that match 'v*'
26492         if possible.
26493
26494 2008-04-08  Bruno Haible  <bruno@clisp.org>
26495
26496         Add tentative support for OpenServer.
26497         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
26498         _ptr, _cnt.
26499         * lib/fpurge.c (fpurge): Likewise.
26500         * lib/freadable.c (freadable): Likewise.
26501         * lib/freadahead.c (freadahead): Likewise.
26502         * lib/freading.c (freading): Likewise.
26503         * lib/freadptr.c (freadptr): Likewise.
26504         * lib/freadseek.c (freadptrinc): Likewise.
26505         * lib/fseeko.c (rpl_fseeko): Likewise.
26506         * lib/fseterr.c (fseterr): Likewise.
26507         * lib/fwritable.c (fwritable): Likewise.
26508         * lib/fwriting.c (fwriting): Likewise.
26509         Reported by Roger Cornelius <rac@tenzing.org> and
26510         Brian K. White <brian@aljex.com>.
26511
26512 2008-04-06  Jim Meyering  <meyering@redhat.com>
26513
26514         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
26515
26516 2008-04-06  Bruno Haible  <bruno@clisp.org>
26517
26518         Avoid possible error with non-ASCII bytes in UTF-8 locales.
26519         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
26520         * tests/test-printf-posix.sh: Likewise.
26521         * tests/test-vfprintf-posix.sh: Likewise.
26522         * tests/test-vprintf-posix.sh: Likewise.
26523         * tests/test-xprintf-posix.sh: Likewise.
26524
26525 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26526
26527         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
26528         hide error from 'ls', needed on OS/2.
26529         Report by Elbert Pol <elbert.pol@gmail.com>.
26530
26531 2008-04-04  Eric Blake  <ebb9@byu.net>
26532
26533         Make test-fseeko.c failures meaningful.
26534         * tests/test-fseeko.c: Print line number on failure.
26535         * tests/test-fseek.c: Likewise.
26536         Reported by Nelson H. F. Beebe.
26537
26538         Improve strtod bug detection check.
26539         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
26540         required for Solaris 10.
26541         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
26542
26543 2008-04-04  Bruno Haible  <bruno@clisp.org>
26544
26545         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
26546         by m4/setenv.m4.
26547
26548 2008-04-03  Eric Blake  <ebb9@byu.net>
26549
26550         Ensure sane .version contents.
26551         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
26552         version string.
26553         * build-aux/git-version-gen: Improve documentation.
26554
26555         Make GNU make output nicer.
26556         * top/GNUmakefile [!_have-Makefile]: Add dependency on
26557         MAKECMDGOALS to enforce message for all command line targets.  Set
26558         srcdir for use in maint.mk.
26559
26560         Another maintainer tweak.
26561         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
26562         a target that regenerates version.
26563
26564 2008-04-03  Jim Meyering  <meyering@redhat.com>
26565
26566         vc-list-files: don't cause coreutils "make po-check" failure
26567         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
26568
26569 2008-04-03  Eric Blake  <ebb9@byu.net>
26570
26571         Allow VPATH usage of vc-list-files.
26572         * build-aux/vc-list-files (scriptversion): Add timestamp.
26573         (options): Add --help, --version, -C.
26574         (CVS): Support installed cvsu.
26575
26576 2008-04-02  Bruno Haible  <bruno@clisp.org>
26577
26578         Avoid some "statement with no effect" warnings from gcc.
26579         * tests/test-wctype.c (main): Explicitly ignore unused values.
26580         Reported by Jim Meyering.
26581
26582 2008-04-02  Jim Meyering  <meyering@redhat.com>
26583
26584         Avoid some warnings from "gcc -Wshadow".
26585         * tests/test-frexp.c (exp): Define to a different identifier.
26586         * tests/test-frexpl.c (exp): Likewise.
26587
26588 2008-04-03  Jim Meyering  <meyering@redhat.com>
26589
26590         bootstrap: remove dangling *.[ch] symlinks from lib
26591         * build-aux/bootstrap [dangling symlink removal]: Move find's
26592         -depth option to precede all others, to avoid a warning.
26593         Remove *.[ch] files too, and from "$source_base" (usually lib/).
26594
26595 2008-04-02  Bruno Haible  <bruno@clisp.org>
26596
26597         Avoid some warnings from "gcc -Wshadow".
26598         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
26599         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
26600         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
26601         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
26602         Reported by Jim Meyering.
26603
26604 2008-04-01  Bruno Haible  <bruno@clisp.org>
26605
26606         Fix test to work on IRIX 6.5 with cc.
26607         * tests/test-math.c (numeric_equal): New function.
26608         (main): Use it.
26609
26610 2008-04-01  Bruno Haible  <bruno@clisp.org>
26611
26612         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
26613
26614 2008-04-01  Bruno Haible  <bruno@clisp.org>
26615
26616         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
26617         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26618         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
26619         (Depends-on): Remove math.
26620
26621         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
26622         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26623         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
26624         (Depends-on): Remove math.
26625
26626         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
26627         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26628         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
26629         (Depends-on): Remove math.
26630         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
26631         (Depends-on): Remove math.
26632
26633         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
26634         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26635         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
26636         (Depends-on): Remove math.
26637         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
26638         (Depends-on): Remove math.
26639
26640         * tests/test-round1.c: Include nan.h.
26641         (main): Use NaNd instead of NAN.
26642         * modules/round-tests (Files): Add tests/nan.h.
26643
26644         * tests/test-trunc1.c: Include nan.h.
26645         (main): Use NaNd instead of NAN.
26646         * modules/trunc-tests (Files): Add tests/nan.h.
26647
26648         * tests/test-roundf1.c: Include nan.h.
26649         (main): Use NaNf instead of NAN.
26650         * modules/roundf-tests (Files): Add tests/nan.h.
26651
26652         * tests/test-truncf1.c: Include nan.h.
26653         (main): Use NaNf instead of NAN.
26654         * modules/truncf-tests (Files): Add tests/nan.h.
26655
26656         * tests/test-ceilf1.c: Include nan.h.
26657         (main): Use NaNf instead of NAN.
26658         * modules/ceilf-tests (Files): Add tests/nan.h.
26659
26660         * tests/test-floorf1.c: Include nan.h.
26661         (main): Use NaNf instead of NAN.
26662         * modules/floorf-tests (Files): Add tests/nan.h.
26663
26664         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
26665         (main): Use NaNf instead of NAN.
26666         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
26667
26668         * tests/test-isnand.c: Include nan.h instead of <math.h>.
26669         (main): Use NaNd instead of NAN.
26670         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
26671
26672         * tests/test-frexp.c: Include nan.h.
26673         (main): Use NaNd instead of NAN.
26674         * modules/frexp-tests (Files): Add tests/nan.h.
26675
26676         * lib/isnan.c: Don't include <math.h>.
26677         (FUNC): Don't use NAN macro.
26678         * modules/isnand-nolibm (Depends-on): Remove math.
26679         * modules/isnanf-nolibm (Depends-on): Remove math.
26680         * modules/isnanl (Depends-on): Remove math.
26681         * modules/isnanl-nolibm (Depends-on): Remove math.
26682
26683         * tests/nan.h: New file.
26684
26685 2008-04-01  Eric Blake  <ebb9@byu.net>
26686
26687         Fix typos.
26688         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
26689         values to be the right type.
26690
26691         For now, cater to gnulib strtod inaccuracies.
26692         * tests/test-strtod.c (main): Allow 1-ulp error on expected
26693         fractional results.  While not as nice from a QoI perspective, it
26694         is a quicker patch than correctly implementing decimal to binary
26695         rounding.
26696
26697 2008-03-31  Eric Blake  <ebb9@byu.net>
26698
26699         Guarantee a definition of NAN.
26700         * lib/math.in.h (NAN): Define if missing.
26701         * tests/test-math.c (main): Test it.
26702         * doc/posix-headers/math.texi (math.h): Document this.
26703         * lib/isnan.c (rpl_isnand): Use it.
26704         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
26705         * tests/test-floorf1.c (NaN): Likewise.
26706         * tests/test-frexp.c (NaN): Likewise.
26707         * tests/test-isnand.c (NaN): Likewise.
26708         * tests/test-isnanf.c (NaN): Likewise.
26709         * tests/test-round1.c (NaN): Likewise.
26710         * tests/test-roundf1.c (NaN): Likewise.
26711         * tests/test-snprintf-posix.h (NaN): Likewise.
26712         * tests/test-sprintf-posix.h (NaN): Likewise.
26713         * tests/test-trunc1.c (NaN): Likewise.
26714         * tests/test-truncf1.c (NaN): Likewise.
26715         * tests/test-vasnprintf-posix.c (NaN): Likewise.
26716         * tests/test-vasprintf-posix.c (NaN): Likewise.
26717         * modules/isnand-nolibm (Depends-on): Add math.
26718         * modules/isnanf-nolibm (Depends-on): Likewise.
26719         * modules/isnanl (Depends-on): Likewise.
26720         * modules/isnanl-nolibm (Depends-on): Likewise.
26721         * modules/snprintf-posix-tests (Depends-on): Likewise.
26722         * modules/sprintf-posix-tests (Depends-on): Likewise.
26723         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
26724         * modules/vsprintf-posix-tests (Depends-on): Likewise.
26725         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
26726         * modules/vasprintf-posix-tests (Depends-on): Likewise.
26727
26728 2008-03-31  Bruno Haible  <bruno@clisp.org>
26729
26730         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
26731         * doc/posix-functions/strtod.texi: Likewise.
26732
26733 2008-03-31  Bruno Haible  <bruno@clisp.org>
26734
26735         * tests/test-strtod.c (main): Don't use C99 syntax.
26736
26737 2008-03-31  Bruno Haible  <bruno@clisp.org>
26738
26739         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
26740         Reported by Eric Blake.
26741
26742 2008-03-31  Jim Meyering  <meyering@redhat.com>
26743
26744         Don't compare actual signbit return values.
26745         * tests/test-strtod.c (main): Rather, compare only their
26746         zero/non-zero nature.
26747
26748 2008-03-31  Eric Blake  <ebb9@byu.net>
26749
26750         More strtod documentation.
26751         * doc/posix-functions/strtod.texi (strtod): Interpret more test
26752         failures as distinct bugs.
26753
26754 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
26755
26756         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
26757         Problem reported by Erik Benada in
26758         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
26759
26760 2008-03-30  Bruno Haible  <bruno@clisp.org>
26761
26762         * tests/test-strtod.c: Add comments about which assertion fails on which
26763         platform.
26764         * doc/posix-functions/strtod.texi: Add info about many more platforms.
26765
26766 2008-03-30  Eric Blake  <ebb9@byu.net>
26767
26768         Test signbit behavior on zeros.
26769         * tests/test-signbit.c (test_signbitf): Add tests for zero.
26770         (test_signbitd, test_signbitl): Likewise.
26771
26772         More strtod touchups.
26773         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
26774         sign of negative underflow, for now.  Use .5, not .1.
26775         * doc/posix-functions/strtod.texi (strtod): Mention these
26776         limitations.
26777         Reported by Jim Meyering.
26778
26779 2008-03-30  Bruno Haible  <bruno@clisp.org>
26780
26781         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
26782         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
26783
26784 2008-03-30  Bruno Haible  <bruno@clisp.org>
26785
26786         Avoid failure when attempting to return empty iconv results on some
26787         platforms.
26788         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
26789         allocation, don't report ENOMEM when the resulting string is empty.
26790
26791 2008-03-30  Bruno Haible  <bruno@clisp.org>
26792
26793         Fix buffer overrun.
26794         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
26795         Don't consider the width for tmp_length. Check count against tmp_length
26796         before doing the padding. Ensure enough allocation during padding.
26797
26798 2008-03-30  Eric Blake  <ebb9@byu.net>
26799
26800         strtod touchups.
26801         * lib/strtod.c (strtod): Avoid compiler warnings.
26802         Reported by Jim Meyering.
26803
26804 2008-03-30  Bruno Haible  <bruno@clisp.org>
26805
26806         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
26807         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
26808         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
26809         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
26810         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
26811         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
26812         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
26813         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
26814
26815         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
26816         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
26817         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
26818         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
26819         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
26820         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
26821         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
26822         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
26823
26824         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
26825         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
26826         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
26827         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
26828         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
26829         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
26830         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
26831         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
26832
26833         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
26834         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
26835
26836         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
26837         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
26838
26839         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
26840         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
26841
26842         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
26843         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
26844         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
26845
26846         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
26847         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
26848         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
26849
26850         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
26851         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
26852         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
26853
26854         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
26855         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
26856         * modules/vasprintf (Depends-on): Add EOVERFLOW.
26857
26858         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
26859         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
26860         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
26861         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
26862         (Depends-on): Add EOVERFLOW.
26863         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
26864         (Depends-on): Add EOVERFLOW.
26865         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
26866         (Depends-on): Add EOVERFLOW.
26867         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
26868         (Depends-on): Add EOVERFLOW.
26869         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
26870         (Depends-on): Add EOVERFLOW.
26871         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
26872         (Depends-on): Add EOVERFLOW.
26873         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
26874         (Depends-on): Add EOVERFLOW.
26875         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
26876         (Depends-on): Add EOVERFLOW.
26877
26878         * lib/sprintf.c (EOVERFLOW): Remove fallback.
26879         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
26880         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
26881
26882         * lib/snprintf.c (EOVERFLOW): Remove fallback.
26883         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
26884         * modules/snprintf (Depends-on): Add EOVERFLOW.
26885
26886         * lib/poll.c (EOVERFLOW): Remove fallback.
26887         * modules/poll (Depends-on): Add EOVERFLOW.
26888
26889         * lib/getugroups.c (EOVERFLOW): Remove fallback.
26890         * modules/getugroups (Depends-on): Add EOVERFLOW.
26891
26892         * lib/getdelim.c (EOVERFLOW): Remove fallback.
26893         * modules/getdelim (Depends-on): Add EOVERFLOW.
26894
26895         * lib/ftell.c (EOVERFLOW): Remove fallback.
26896         * modules/ftell (Depends-on): Add EOVERFLOW.
26897
26898         * lib/fprintf.c (EOVERFLOW): Remove fallback.
26899         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
26900         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
26901
26902         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
26903
26904         * modules/EOVERFLOW-tests: New file.
26905         * tests/test-EOVERFLOW.c: New file.
26906
26907         * modules/EOVERFLOW: New file.
26908         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
26909
26910 2008-03-30  Bruno Haible  <bruno@clisp.org>
26911
26912         Fix bug introduced on 2007-06-10.
26913         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
26914         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
26915
26916 2008-03-30  Bruno Haible  <bruno@clisp.org>
26917
26918         Improve freadseek's efficiency after ungetc.
26919         * lib/freadseek.c: Include freadahead.h.
26920         (freadptrinc): New function, extracted from freadseek.
26921         (freadseek): Use it in a loop. Use freadahead to determine the number
26922         of loop iterations.
26923         * modules/freadseek (Depends-on): Add freadahead.
26924         (configure.ac): Require AC_C_INLINE.
26925
26926 2008-03-30  Bruno Haible  <bruno@clisp.org>
26927
26928         * lib/freadseek.c (freadseek): Don't ignore the return value of
26929         freadptr.
26930
26931 2008-03-29  Eric Blake  <ebb9@byu.net>
26932
26933         Add hex float support.
26934         * modules/strtod (Depends-on): Add c-ctype.
26935         (Link): Mention POW_LIB.
26936         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
26937         whitespace between 'e' and exponent.
26938         * tests/test-strtod.c (main): Enable hex float tests.
26939         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
26940         now provides.
26941
26942         Document various strtod bugs, with some fixes.
26943         * doc/posix-functions/strtod.texi (strtod): Document bugs with
26944         "-0x", "inf", "nan", and hex constants.
26945         * doc/posix-functions/atof.texi (atof): Likewise.
26946         * modules/stdlib (Makefile.am): Support strtod.
26947         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
26948         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
26949         detect additional strtod bugs.
26950         * lib/stdlib.in.h (rpl_strtod): Add declarations.
26951         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
26952         bool where appropriate.  Parse 'inf' and 'nan'.
26953         * tests/test-strtod.c: New file.
26954         * modules/strtod (Depends-on): Add stdbool, stdlib.
26955         (configure.ac): Turn on module indicator.
26956         * modules/strtod-tests: New module.
26957
26958 2008-03-29  Eric Blake  <ebb9@byu.net>
26959
26960         Fix ftell on mingw.
26961         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
26962         * modules/ftell-tests (Depends-on): Add binary-io.
26963         * modules/ftello-tests (Depends-on): Likewise.
26964         * tests/test-ftell.c (main): Enhance test to cover behavior after
26965         ungetc.  Enforce binary mode.
26966         * tests/test-ftello.c (main): Likewise.
26967
26968         Pass test-freadseek on cygwin.
26969         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
26970         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
26971         ungetc buffer.
26972
26973         * tests/test-fflush2.c (main): Fix typo.
26974
26975 2008-03-29  Bruno Haible  <bruno@clisp.org>
26976
26977         * tests/test-fflush2.c (main): Temporarily disable the contents of
26978         this test.
26979         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
26980         Reported by Eric Blake.
26981
26982 2008-03-28  Simon Josefsson  <simon@josefsson.org>
26983
26984         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
26985         (GC_SHA224_DIGEST_SIZE): Add.
26986
26987         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
26988         (gc_hash_digest_length): Likewise.
26989         (gc_hash_buffer): Likewise.
26990
26991 2008-03-25  Bruno Haible  <bruno@clisp.org>
26992
26993         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
26994         detail which gettext release to use.
26995         Reported by Simon Josefsson.
26996
26997 2008-03-26  Jim Meyering  <meyering@redhat.com>
26998
26999         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
27000         * modules/gnumakefile (clean-GNUmakefile): Also, use
27001         test ... && ... || : syntax rather than if-then ... fi.
27002
27003         gnumakefile: Don't double-quote-expand $(VPATH) value.
27004         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
27005
27006 2008-03-24  Eric Blake  <ebb9@byu.net>
27007
27008         Alter GNUmakefile to install into top directory.
27009         * modules/maintainer-makefile: Split, and add dependency...
27010         * modules/gnumakefile: to this new module.
27011         * build-aux/GNUmakefile: Move...
27012         * top/GNUmakefile: ...here.
27013         * build-aux/maint.mk: Move...
27014         * top/maint.mk: ...here.
27015         * MODULES.html.sh (Support for maintaining...): Document new
27016         module.
27017
27018 2008-03-23  Bruno Haible  <bruno@clisp.org>
27019
27020         * gnulib-tool: New options --vc-files, --no-vc-files.
27021         (func_usage): Document them.
27022         (vc_files): New variable.
27023         (func_import): Consider vc_files.
27024         (func_create_testdir): Set vc_files to empty.
27025         Suggested by Jim Meyering and Karl Berry.
27026
27027 2008-03-23  Bruno Haible  <bruno@clisp.org>
27028
27029         Fix regex compilation error on HP-UX 11.
27030         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
27031         * modules/regex (Files): Add m4/mbstate_t.m4.
27032         Reported by Ton Voon <ton.voon@altinity.com>.
27033
27034 2008-03-23  Bruno Haible  <bruno@clisp.org>
27035
27036         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
27037
27038 2008-03-23  Eric Blake  <ebb9@byu.net>
27039             Bruno Haible  <bruno@clisp.org>
27040
27041         Install files from top/ in the destination directory.
27042         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
27043         augmentation also for the files from top/.
27044         (func_import, func_create_testdir): Rewrite file names:
27045         top/filename -> filename.
27046
27047 2008-03-23  Bruno Haible  <bruno@clisp.org>
27048
27049         Tweak "gnulib --version" output.
27050         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
27051
27052 2008-03-23  Bruno Haible  <bruno@clisp.org>
27053
27054         Tweak "gnulib --version" output.
27055         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
27056         rather than contents of ChangeLog, when possible.
27057
27058 2008-03-21  Eric Blake  <ebb9@byu.net>
27059
27060         More --version tweaks.
27061         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
27062         date of last ChangeLog entry.
27063
27064 2008-03-21  Jim Meyering  <meyering@redhat.com>
27065
27066         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
27067
27068 2008-03-20  Eric Blake  <ebb9@byu.net>
27069
27070         VPATH fix.
27071         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
27072
27073 2008-03-20  Simon Josefsson  <simon@josefsson.org>
27074
27075         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
27076         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
27077
27078 2008-03-20  Eric Blake  <ebb9@byu.net>
27079
27080         Sync GNUmakefile with coreutils.
27081         * build-aux/GNUmakefile (have-Makefile): Rename...
27082         (_have-Makefile): ...to this, for namespace consideration.
27083         (GNUmakefile.cfg): Include, if present.
27084         (_autoreconf): Define a default.
27085         (_is-dist-target): New rule for rebuilds to pick up intra-release
27086         version.
27087         (maint-cfg.mk): Rename...
27088         (cfg.mk): ...to this.
27089
27090 2008-03-18  Jim Meyering  <meyering@redhat.com>
27091
27092         New script and module: mktempd
27093         * MODULES.html.sh (maint+release support): Add mktempd.
27094         * build-aux/mktempd: New file.
27095         * modules/mktempd: New file.
27096
27097 2008-03-15  Jim Meyering  <meyering@redhat.com>
27098
27099         Undo last change.
27100         * lib/sha1.c, lib/md5.c: 63 != ~63.
27101         Reported by Andreas Schwab.
27102
27103         sha1.c, md5.c: Hoist a redundant expression.
27104         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
27105         "ctx->buflen" only once, before calling *_process_block.
27106         * lib/md5.c (md5_process_bytes): Likewise.
27107
27108 2008-03-14  Eric Blake  <ebb9@byu.net>
27109
27110         Bump copyright year in files generated by gnulib-tool.
27111         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
27112         gnulib-tool, rather than hard-coding it.
27113
27114         Fix 'gnulib-tool --version' output to work with git.
27115         * gnulib-tool (func_gnulib_dir): New function, extracted from...
27116         (startup): ...here.
27117         (func_version): Use it to invoke git-version-gen, rather than
27118         relying on CVS keyword expansion.  Modernize wording.
27119         (cvsdatestamp, last_checkin_date, version): Kill unused
27120         variables.
27121
27122 2008-03-12  Jim Meyering  <meyering@redhat.com>
27123
27124         Recognize optional cast of the argument to free.
27125         * build-aux/useless-if-before-free: Update regexps.
27126
27127         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
27128
27129 2008-03-11  Bruno Haible  <bruno@clisp.org>
27130
27131         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
27132         by a single package.
27133         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
27134         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
27135         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
27136         Reported by Sam Steingold <sds@gnu.org>.
27137
27138 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
27139
27140         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
27141         repositories.
27142
27143 2008-03-11  Bruno Haible  <bruno@clisp.org>
27144
27145         Avoid conflicts between local macro definitions.
27146         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
27147         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
27148
27149 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
27150             Bruno Haible  <bruno@clisp.org>
27151
27152         Make va_copy work with some version of xlc on AIX 5.1.
27153         * lib/stdarg.in.h: New file.
27154         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
27155         On AIX, use a <stdarg.h> file substitute.
27156         * modules/stdarg (Files): Add lib/stdarg.in.h.
27157         (Depends-on): Add include_next.
27158         (Makefile.am): Build a stdarg.h substitute if requested.
27159         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
27160
27161 2008-03-10  Bruno Haible  <bruno@clisp.org>
27162
27163         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
27164         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
27165         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
27166
27167 2008-03-10  Bruno Haible  <bruno@clisp.org>
27168
27169         * modules/stdlib (Depends-on): Add include_next, remove
27170         absolute-header.
27171
27172 2008-03-09  Bruno Haible  <bruno@clisp.org>
27173
27174         * lib/freadahead.h (freadahead): Document more precisely.
27175         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
27176         the sum of both buffer sizes.
27177         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
27178         * NEWS: Document the change.
27179
27180 2008-03-09  Bruno Haible  <bruno@clisp.org>
27181
27182         Extend freadptr to return also the buffer size.
27183         * lib/freadptr.h (freadptr): Add sizep argument.
27184         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
27185         (freadptr): Add sizep argument. Determine buffer size like freadahead
27186         does.
27187         * tests/test-freadptr.c: Don't include freadahead.h.
27188         (main): Adapt for new calling convention of freadptr.
27189         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
27190         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
27191         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
27192         tests/test-freadptr2.sh.
27193         (Depends): Remove freadahead.
27194         (TESTS): Add test-freadptr2.sh.
27195         (check_PROGRAMS): Add test-freadptr2.
27196
27197 2008-03-09  Bruno Haible  <bruno@clisp.org>
27198
27199         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
27200         Report and solution by Simon Josefsson.
27201
27202 2008-03-06  Bruno Haible  <bruno@clisp.org>
27203
27204         Make fflush after ungetc work on BSD platforms.
27205         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
27206         * tests/test-fflush2.c: New file.
27207         * tests/test-fflush2.sh: New file.
27208         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
27209         tests/test-fflush2.c.
27210         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
27211         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
27212
27213 2008-03-06  Eric Blake  <ebb9@byu.net>
27214
27215         Likewise for ftello.
27216         * modules/ftello (Dependencies): Add extensions.
27217         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
27218
27219 2008-03-06  Bruno Haible  <bruno@clisp.org>
27220
27221         * modules/fseeko (Dependencies): Add extensions.
27222         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
27223         Needed on glibc systems.
27224
27225 2008-03-06  Bruno Haible  <bruno@clisp.org>
27226
27227         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
27228         email address.
27229         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27230
27231 2008-03-06  Bruno Haible  <bruno@clisp.org>
27232
27233         * users.txt: Add libgnupdf.
27234
27235 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
27236
27237         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
27238         (Header File Substitutes, Function Substitutes,
27239         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
27240         (Build robot for gnulib): Fix typo.
27241
27242 2008-03-06  Bruno Haible  <bruno@clisp.org>
27243
27244         * doc/gnulib-tool.texi (VCS Issues): Small updates.
27245         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27246
27247 2008-03-06  Bruno Haible  <bruno@clisp.org>
27248
27249         * doc/func.texi: New file, extracted from doc/gnulib.texi.
27250         * doc/gnulib.texi: Include it.
27251
27252 2008-03-06  Simon Josefsson  <simon@josefsson.org>
27253
27254         * modules/func (License): Change license to unlimited; there was
27255         no LGPL parts in the module anyway.
27256
27257 2008-03-06  Simon Josefsson  <simon@josefsson.org>
27258
27259         * modules/__func__: Renamed to modules/func.
27260         * modules/__func__-tests: Renamed to modules/func-tests.
27261         * tests/test-__func__.c: Renamed to tests/test-func.c.
27262         * m4/__func__.m4: Renamed to m4/func.m4.
27263         * doc/gnulib.texi (__func__): Section renamed to func.
27264         Suggested by Eric Blake <ebb9@byu.net>.
27265
27266 2008-03-06  Simon Josefsson  <simon@josefsson.org>
27267
27268         * doc/gnulib.texi (__func__): Use C99 terminology when talking
27269         about __func__.  Make example self-contained.  Suggested by Eric
27270         Blake <ebb9@byu.net>.
27271
27272         * tests/test-__func__.c (main): Avoid extraneous () around __func.
27273         Suggested by Eric Blake <ebb9@byu.net>.
27274
27275 2008-03-06  Simon Josefsson  <simon@josefsson.org>
27276
27277         * modules/__func__: New file.
27278         * modules/__func__-tests: New file.
27279         * tests/test-__func__.c: New file.
27280         * m4/__func__.m4: New file.
27281         * doc/gnulib.texi (__func__): Document __func__ module.
27282
27283 2008-03-05  Simon Josefsson  <simon@josefsson.org>
27284
27285         * modules/byteswap (License): Re-license as LGPLv2+.
27286
27287 2008-03-05  Simon Josefsson  <simon@josefsson.org>
27288
27289         * doc/Makefile: Add pdf target.
27290
27291 2008-03-05  Simon Josefsson  <simon@josefsson.org>
27292
27293         * modules/inline (License): Use 'unlimited', since there are only
27294         *.m4 files in this module.
27295
27296 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
27297             Bruno Haible  <bruno@clisp.org>
27298
27299         Add support for HP C 7.1 on OpenVMS 8.3.
27300         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
27301
27302 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
27303
27304         Update VMS specifics.
27305         * lib/getopt.c [VMS]: Remove include of unixlib.h.
27306
27307 2008-03-02  Jim Meyering  <meyering@redhat.com>
27308
27309         Remove the last dependency on the "free" module.
27310         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
27311         Reported by Bob Proulx.
27312
27313         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
27314
27315         Remove useless "if" tests before free.  Deprecate "free" module.
27316         * doc/posix-functions/free.texi: Mention that this
27317         module is no longer useful.
27318         * modules/free (Notice): Say this module is obsolete.
27319         * modules/readutmp (Depends-on): Remove free.
27320         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
27321         * lib/putenv.c (putenv): Likewise.
27322         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
27323         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
27324         * tests/test-c-strcasestr.c (main): Likewise.
27325         * tests/test-c-strstr.c (main): Likewise.
27326         * tests/test-mbscasestr1.c (main): Likewise.
27327         * tests/test-mbscasestr2.c (main): Likewise.
27328         * tests/test-mbsstr1.c (main): Likewise.
27329         * tests/test-mbsstr2.c (main): Likewise.
27330         * tests/test-memmem.c (main): Likewise.
27331         * tests/test-strcasestr.c (main): Likewise.
27332         * tests/test-striconv.c (main): Likewise.
27333         * tests/test-striconveh.c (main): Likewise.
27334         * tests/test-striconveha.c (main): Likewise.
27335         * tests/test-strstr.c (main): Likewise.
27336
27337         * build-aux/git-version-gen: Adjust a comment and the Usage string.
27338
27339         bootstrap: sync from coreutils again
27340         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
27341
27342 2008-03-01  Jim Meyering  <meyering@redhat.com>
27343
27344         bootstrap: sync from coreutils
27345         * build-aux/bootstrap (update_po_files): Copy a .po file into place
27346         also when the target doesn't exist.
27347
27348 2008-03-01  Eric Blake  <ebb9@byu.net>
27349
27350         Fix bugs in last patch.
27351         * lib/memchr2.c (memchr2): Fix typo.
27352         * tests/test-memchr2.c: Test previous bug, and don't use GNU
27353         extension.
27354         Reported by Bruce Korb.
27355
27356         New module 'memchr2'.
27357         * modules/memchr2: New file.
27358         * modules/memchr2-tests: Likewise.
27359         * lib/memchr2.h: Likewise.
27360         * lib/memchr2.c: Likewise, based on memchr.c.
27361         * tests/test-memchr2.c: New test.
27362         * MODULES.html.sh (String handling): Add memchr2.
27363
27364 2008-02-29  Bruno Haible  <bruno@clisp.org>
27365
27366         * modules/freadseek-tests: New file.
27367         * tests/test-freadseek.sh: New file.
27368         * tests/test-freadseek.c: New file.
27369
27370         New module 'freadseek'.
27371         * modules/freadseek: New file.
27372         * lib/freadseek.h: New file.
27373         * lib/freadseek.c: New file.
27374         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
27375
27376 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
27377
27378         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
27379         wydawca.
27380
27381         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
27382         program_invocation_name and program_invocation_short_name are
27383         present.
27384
27385 2008-02-28  Bruno Haible  <bruno@clisp.org>
27386
27387         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
27388         * tests/test-freadptr.sh: Also test non-seekable stdin.
27389
27390 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
27391
27392         * build-aux/bootstrap (source_base, m4_base)
27393         (doc_base, tests_base): New variables.
27394         (gnulib_tool_options): Do not hardcode base directories, use
27395         the above variables instead.
27396
27397 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
27398
27399         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
27400
27401 2008-02-28  Bruno Haible  <bruno@clisp.org>
27402
27403         * modules/freadptr-tests: New file.
27404         * tests/test-freadptr.sh: New file.
27405         * tests/test-freadptr.c: New file.
27406
27407         New module 'freadptr'.
27408         * modules/freadptr: New file.
27409         * lib/freadptr.h: New file.
27410         * lib/freadptr.c: New file.
27411         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
27412
27413 2008-02-26  Karl Berry  <karl@freefriends.org>
27414
27415         Sync from Libtool:
27416         * libltdl/argz.c (argz_add, argz_count): New functions.
27417         * libltdl/argz.in.h: Declare them.
27418         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
27419
27420 2008-02-22  Bruno Haible  <bruno@clisp.org>
27421
27422         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
27423         is a pointer type.  Needed for HP-UX 10.
27424         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
27425         * doc/posix-functions/gmtime_r.texi: Likewise.
27426         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
27427
27428 2008-02-24  Bruno Haible  <bruno@clisp.org>
27429
27430         * modules/environ-tests: New file.
27431         * tests/test-environ.c: New file.
27432
27433         New module 'environ'.
27434         * modules/environ: New file.
27435         * lib/unistd.in.h (environ): New declaration.
27436         * m4/environ.m4: New file.
27437         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
27438         after use.
27439         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
27440         HAVE_DECL_ENVIRON.
27441         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
27442         HAVE_DECL_ENVIRON.
27443         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
27444         wrong claim that 'environ' is missing on some systems.
27445         * modules/execute (Depends-on): Add environ.
27446         * lib/execute.c (environ): Remove fallback declaration.
27447         * modules/pipe (Depends-on): Add environ.
27448         * lib/pipe.c (environ): Remove fallback declaration.
27449         * modules/setenv (Depends-on): Add environ.
27450         * lib/setenv.c (environ): Remove fallback declaration.
27451         * modules/unsetenv (Depends-on): Add environ.
27452         * lib/unsetenv.c (environ): Remove fallback declaration.
27453         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
27454         m4/environ.m4.
27455         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
27456         (gl_PREREQ_UNSETENV): Likewise.
27457
27458 2008-02-24  Bruno Haible  <bruno@clisp.org>
27459
27460         * doc/posix-functions/environ.texi: Document the MacOS X problem.
27461
27462 2008-02-20  Bob Proulx  <bob@proulx.com>
27463
27464         Enable use of older two part flavor 'git describe'.
27465         * build-aux/git-version-gen: If using the older two part flavor of
27466         git version then recreate the third part now present in the
27467         newer three part flavor of git describe.
27468
27469 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
27470
27471         * lib/fts.c (fts_build): Typo correction to comment.
27472
27473 2008-02-17  Bruno Haible  <bruno@clisp.org>
27474
27475         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
27476         generating no-op conflicts.
27477
27478 2008-02-17  Bruno Haible  <bruno@clisp.org>
27479
27480         Speed up by 10%.
27481         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
27482         result_entries, rather than an index-based loop.
27483
27484 2008-02-17  Bruno Haible  <bruno@clisp.org>
27485
27486         Speed up by 25%.
27487         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
27488         'hashcode_cached'.
27489         (entry_create): New function.
27490         (entry_hashcode): Use the cached hashcode if possible.
27491         (read_changelog_file, try_split_merged_entry): Use entry_create.
27492
27493 2008-02-17  Bruno Haible  <bruno@clisp.org>
27494
27495         Speed up from O(n^2) to O(n) for long ChangeLog files.
27496         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
27497         (read_changelog_file): Change implementation of entries_reversed list
27498         to rbtreehash.
27499         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
27500
27501 2008-02-17  Bruno Haible  <bruno@clisp.org>
27502
27503         New option --split-merged-entry.
27504         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
27505         (find_paragraph_end, try_split_merged_entry): New functions.
27506         (long_options): Add option --split-merged-entry.
27507         (usage): Document option --split-merged-entry.
27508         (main): Implement option --split-merged-entry.
27509         Reported by Eric Blake.
27510
27511 2008-02-17  Bruno Haible  <bruno@clisp.org>
27512
27513         * lib/git-merge-changelog.c: Include c-strstr.h.
27514         (main): Support the "git pull --rebase" situation.
27515         * modules/git-merge-changelog (Depends-on): Add c-strstr.
27516         Reported by Eric Blake.
27517
27518 2008-02-16  Eric Blake  <ebb9@byu.net>
27519
27520         Avoid doubling \ in common case of "c-maybe" quoting style.
27521         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
27522         eliding outer quotes.
27523         * lib/quotearg.h: Document this.
27524         * tests/test-quotearg.c (result_strings, inputs, results_g)
27525         (flag_results, locale_results): Test it by adding a new string to
27526         each test group.
27527         (compare_strings): Test new string.
27528
27529 2008-02-13  Eric Blake  <ebb9@byu.net>
27530
27531         Avoid trigraph quoting in default output.
27532         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
27533         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
27534         unless explicitly requested.
27535         * tests/test-quotearg.c (flag_results, main): Add additional tests.
27536
27537 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
27538
27539         Don't rely on signed integer overflowing to negative value.
27540         * lib/getugroups.c (getugroups): Include <limits.h>.
27541         Instead, compare against INT_MAX, and increment only if the test passes.
27542
27543 2008-02-13  Jim Meyering  <meyering@redhat.com>
27544         and Eric Blake  <ebb9@byu.net>
27545
27546         Avoid shadowing warning and compile errors on Linux.
27547         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
27548         forwarding macros on Linux.
27549         (dcgettext): Define a stub, for Linux.
27550         (results_g, main): Avoid warnings.
27551
27552 2008-02-12  Eric Blake  <ebb9@byu.net>
27553
27554         Silence warning in last patch.
27555         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
27556
27557         Quotearg part 4: add tests, fix c-maybe colon quoting.
27558         * lib/quotearg.h: Improve documentation.
27559         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
27560         escapes when adding outer quotes.  When quoting trigraphs, use
27561         valid C notation.  When quoting NUL, omit extra characters if next
27562         character is not digit.  Alter prototype.
27563         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
27564         callers.
27565         * modules/quotearg-tests: New module.
27566         * tests/test-quotearg.c: New test.
27567
27568 2008-02-07  Eric Blake  <ebb9@byu.net>
27569
27570         Quotearg part 3: add flag to control outer quote elision.
27571         * lib/quotearg.h (c_maybe_quoting_style): New style.
27572         (enum quoting_flags): Better documentation of flags.
27573         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
27574         c-maybe style.
27575         (quotearg_buffer_restyled): Handle new flag to elide outer
27576         quotes.
27577
27578         Quotearg part 2: add flag that can control NUL elision.
27579         * lib/quotearg.h (set_quoting_flags): New prototype.
27580         * lib/quotearg.c (struct quoting_options): Add flag field.
27581         (set_quoting_flags): New function.
27582         (quotearg_buffer_restyled): Add flags parameter.
27583         (quotearg_alloc_mem): Set the flag if length cannot be returned.
27584         (quotearg_n_options): Set the flag, since length cannot be
27585         returned.
27586         (quoting_options_from_style): Default flags correctly.
27587
27588         Quotearg part 1: more wrappers, restore quotearg_char state.
27589         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
27590         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
27591         (quotearg_colon_mem): New wrappers.
27592         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
27593         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
27594         functions.
27595         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
27596         (quotearg_colon_mem): New functions.
27597
27598 2008-02-11  Bruno Haible  <bruno@clisp.org>
27599
27600         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
27601         library in the current directory: it does not work with parallel make.
27602         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27603
27604 2008-02-11  Bruno Haible  <bruno@clisp.org>
27605
27606         * .gitattributes: New file.
27607
27608 2008-02-11  Jim Meyering  <meyering@redhat.com>
27609
27610         useless-if-before-free: Fix reversed exit values.
27611         * build-aux/useless-if-before-free: Use correct values
27612         for EXIT_MATCH and EXIT_NO_MATCH.
27613
27614         * build-aux/useless-if-before-free: Close stdout carefully.
27615
27616 2008-02-10  Bruno Haible  <bruno@clisp.org>
27617
27618         New module 'git-merge-changelog'.
27619         * modules/git-merge-changelog: New file.
27620         * lib/git-merge-changelog.c: New file.
27621
27622 2008-02-10  Jim Meyering  <meyering@redhat.com>
27623
27624         useless-if-before-free: New option: --list (-l).
27625
27626         useless-if-before-free: Don't exit immediately upon open failure.
27627         * build-aux/useless-if-before-free: Exit 2 for errors.
27628         Upon failure to open a file, don't exit immediately.
27629         Rather, just warn and continue with any remaining files.
27630
27631 2008-02-10  Bruno Haible  <bruno@clisp.org>
27632
27633         New abstract list operation 'node_set_value'.
27634         * lib/gl_list.h (gl_list_node_set_value): New function.
27635         (struct gl_list_implementation): New field node_set_value.
27636         * lib/gl_list.c (gl_list_node_set_value): New function.
27637         * lib/gl_array_list.c (gl_array_node_set_value): New function.
27638         (gl_array_list_implementation): Update.
27639         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
27640         (gl_carray_list_implementation): Update.
27641         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
27642         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
27643         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
27644         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
27645         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
27646         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
27647         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
27648         Update.
27649         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
27650         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
27651         (gl_sublist_list_implementation): Update.
27652
27653 2008-02-10  Bruno Haible  <bruno@clisp.org>
27654
27655         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
27656         Needed when ELEMENT is #defined to 'some_type *'.
27657
27658 2008-02-10  Jim Meyering  <meyering@redhat.com>
27659
27660         New script and module: useless-if-before-free
27661         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
27662         * build-aux/useless-if-before-free: New file.
27663         * modules/useless-if-before-free: New file.
27664
27665         * build-aux/gitlog-to-changelog: Use committer date, not author date.
27666
27667         xstrtol_error: Fix typo.
27668         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
27669         s/exit_failure/exit_status/.
27670
27671 2008-02-09  Jim Meyering  <meyering@redhat.com>
27672
27673         New script and module: gitlog-to-changelog
27674         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
27675         * modules/gitlog-to-changelog: New file.
27676         * build-aux/gitlog-to-changelog: New file.
27677
27678 2008-02-08  Jim Meyering  <meyering@redhat.com>
27679
27680         Avoid two "parameter unused" warnings.
27681         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
27682         Mark "st" as used.
27683
27684         Use "git COMMAND", not "git-COMMAND".
27685         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
27686         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
27687         * build-aux/git-version-gen: Use "git status", not "git-status".
27688
27689 2008-02-07  Bruno Haible  <bruno@clisp.org>
27690
27691         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
27692         Avoids a crash on Windows Vista.
27693         Reported by Adam Strzelecki <ono@java.pl> via
27694         Simon Josefsson <simon@josefsson.org>.
27695
27696 2008-02-06  Bruno Haible  <bruno@clisp.org>
27697
27698         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
27699         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
27700         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
27701         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
27702         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
27703         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
27704         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
27705         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
27706         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
27707         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
27708         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
27709         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
27710         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
27711         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
27712         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
27713         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
27714         left-adjust flag.
27715         * tests/test-snprintf-posix.h (test_function): Likewise.
27716         * tests/test-sprintf-posix.h (test_function): Likewise.
27717         * tests/test-vasprintf-posix.c (test_function): Likewise.
27718         * doc/posix-functions/fprintf.texi: Update.
27719         * doc/posix-functions/printf.texi: Update.
27720         * doc/posix-functions/snprintf.texi: Update.
27721         * doc/posix-functions/sprintf.texi: Update.
27722         * doc/posix-functions/vfprintf.texi: Update.
27723         * doc/posix-functions/vprintf.texi: Update.
27724         * doc/posix-functions/vsnprintf.texi: Update.
27725         * doc/posix-functions/vsprintf.texi: Update.
27726         Reported by Peter Fales <psfales@alcatel-lucent.com>.
27727
27728 2008-02-06  Bruno Haible  <bruno@clisp.org>
27729
27730         Fix bug introduced on 2008-01-26.
27731         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
27732
27733 2008-02-06  Bruno Haible  <bruno@clisp.org>
27734
27735         Fix bug introduced on 2007-06-10.
27736         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
27737         !NEED_PRINTF_FLAG_ZERO.
27738
27739 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
27740
27741         getloadavg: use libperfstat on AIX5
27742         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
27743
27744 2008-02-03  Bruno Haible  <bruno@clisp.org>
27745
27746         * lib/diffseq.h: Add comments about required #includes.
27747         Reported by Michael Biggs <gnulib@doubleplum.net>.
27748
27749 2008-02-01  Bruno Haible  <bruno@clisp.org>
27750
27751         * users.txt: Add gnuit.
27752
27753 2008-01-31  Bruno Haible  <bruno@clisp.org>
27754
27755         * lib/md4.c (set_uint32): Mark as inline.
27756         * lib/md5.c (set_uint32): Likewise.
27757         * lib/sha1.c (set_uint32): Likewise.
27758         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
27759         * m4/md5.m4 (gl_MD5): Likewise.
27760         * m4/sha1.m4 (gl_SHA1): Likewise.
27761
27762 2008-01-31  Jim Meyering  <meyering@redhat.com>
27763
27764         Use "sizeof VAR", rather than a literal "4".
27765         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
27766         * lib/md4.c (md4_read_ctx): Likewise.
27767         * lib/sha1.c (sha1_read_ctx): Likewise.
27768
27769 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27770
27771         * tests/test-sha1.c: New file, based on test-md5.c.
27772
27773         * modules/crypto/sha1-tests: New file.
27774
27775 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27776
27777         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
27778
27779 2008-01-31  Jim Meyering  <meyering@redhat.com>
27780
27781         Prefer "sizeof v" over the equivalent "4".
27782         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
27783         * lib/md5.c (set_uint32): Likewise.
27784         * lib/sha1.c (set_uint32): Likewise.
27785
27786 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27787
27788         * lib/sha1.c (set_uint32): Mark function as static.
27789
27790 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27791
27792         md2: clarify comments to say that alignment is not required.
27793         * lib/md2.h: Remove warning about alignment in comment.
27794         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
27795         never been required.
27796
27797 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27798
27799         md4: adapt alignment constraint fix from sha1.
27800         * lib/md4.c (set_uint32): New function, from sha1.c
27801         (md4_read_ctx): Use it.
27802         (md4_finish_ctx): Doc fix.
27803         * lib/md4.h: Doc fix.
27804
27805 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27806
27807         md5: adapt alignment constraint fix from sha1.
27808         * lib/md5.c (set_uint32): New function, from sha1.c
27809         (md5_read_ctx): Use it.
27810         (md5_finish_ctx): Doc fix.
27811         * lib/md5.h: Doc fix.
27812
27813 2008-01-30  Peter Palfrader  <weasel@debian.org>
27814
27815         sha1: remove the result buffer alignment constraint
27816         * lib/sha1.c (set_uint32): New function.
27817         (sha1_read_ctx): Rewrite to remove the result buffer alignment
27818         constraint.
27819         (sha1_finish_ctx): Remove comment warning about alignment constraint.
27820         * lib/sha1.h: Likewise.
27821
27822 2008-01-30  Andreas Schwab  <schwab@suse.de>
27823             Bruno Haible  <bruno@clisp.org>
27824
27825         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
27826         correct definition of LDBL_MIN_EXP.
27827
27828 2008-01-30  Karl Berry  <karl@gnu.org>
27829
27830         * config/srclist-update: try to preserve x bit on updates.
27831         * config/srclistvars.sh: update for karl.
27832
27833 2008-01-29  Jim Meyering  <meyering@redhat.com>
27834
27835         vasnprintf.c: Avoid warning about unused label
27836         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
27837         "overflow" label definition and associated code with the
27838         same cpp condition that guards the sole use of that label.
27839
27840 2008-01-26  Bruno Haible  <bruno@clisp.org>
27841
27842         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
27843         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
27844         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
27845         * lib/isnanl-nolibm.h (isnanl): Likewise.
27846         Reported by Paul Eggert <eggert@cs.ucla.edu>.
27847
27848 2008-01-26  Bruno Haible  <bruno@clisp.org>
27849
27850         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
27851         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
27852
27853 2008-01-26  Bruno Haible  <bruno@clisp.org>
27854
27855         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
27856         GCC >= 4.0 built-in.
27857         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
27858
27859 2008-01-26  Bruno Haible  <bruno@clisp.org>
27860
27861         Rename isnan, applicable to 'double' only, to isnand.
27862         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
27863         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
27864         (configure.ac): Update.
27865         (Include): Replace "isnan.h" with "isnand.h".
27866         * m4/isnand.m4: Renamed from m4/isnan.m4.
27867         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
27868         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
27869         instead of isnan.c.
27870         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
27871         instead of HAVE_ISNAN_IN_LIBC.
27872         (isnand): Renamed from isnan.
27873         * lib/isnand.c: New file.
27874         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
27875         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
27876         (Makefile.am): Update.
27877         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
27878         Include isnand.h instead of isnan.h.
27879         (main): Test isnand instead of isnan.
27880         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
27881         isnan-nolibm.
27882         * modules/frexp (Depends-on): Likewise.
27883         * modules/frexp-tests (Depends-on): Likewise.
27884         * modules/frexp-nolibm (Depends-on): Likewise.
27885         * modules/frexp-nolibm-tests (Depends-on): Likewise.
27886         * modules/isfinite (Depends-on): Likewise.
27887         * modules/round-tests (Depends-on): Likewise.
27888         * modules/signbit (Depends-on): Likewise.
27889         * modules/signbit-tests (Depends-on): Likewise.
27890         * modules/snprintf-posix (Depends-on): Likewise.
27891         * modules/sprintf-posix (Depends-on): Likewise.
27892         * modules/trunc-tests (Depends-on): Likewise.
27893         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27894         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27895         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27896         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27897         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27898         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27899         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27900         * modules/vasnprintf-posix (Depends-on): Likewise.
27901         * modules/vasprintf-posix (Depends-on): Likewise.
27902         * modules/vfprintf-posix (Depends-on): Likewise.
27903         * modules/vsnprintf-posix (Depends-on): Likewise.
27904         * modules/vsprintf-posix (Depends-on): Likewise.
27905         * lib/frexp.c: Include isnand.h instead of isnan.h.
27906         (ISNAN): Set to isnand instead of isnan.
27907         * lib/isfinite.c: Include isnand.h instead of isnan.h.
27908         (gl_isfinited): Use isnand instead of isnan.
27909         * lib/signbitd.c: Include isnand.h instead of isnan.h.
27910         (gl_signbitd): Use isnand instead of isnan.
27911         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
27912         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
27913         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
27914         (main): Use isnand instead of isnan.
27915         * tests/test-round1.c: Include isnand.h.
27916         (main): Use isnand instead of isnan.
27917         * tests/test-round2.c: Include isnand.h instead of isnan.h.
27918         (ISNAN): Set to isnand instead of isnan.
27919         * tests/test-trunc1.c: Include isnand.h.
27920         (main): Use isnand instead of isnan.
27921         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
27922         (equal): Use isnand instead of isnan.
27923         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
27924         isnand-nolibm.
27925         * NEWS: Mention the change.
27926
27927 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
27928             Bruno Haible  <bruno@clisp.org>
27929
27930         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
27931         the GCC builtins for signbits are present and set
27932         REPLACE_SIGNBIT_USING_GCC if so.
27933         * lib/math.in.h (signbit): Define using GCC builtins if
27934         REPLACE_SIGNBIT_USING_GCC is set.
27935         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
27936         REPLACE_SIGNBIT_USING_GCC.
27937         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
27938
27939 2008-01-25  Jim Meyering  <meyering@redhat.com>
27940
27941         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
27942         * lib/poll.c: Include <config.h>, not "config.h".
27943         * tests/test-getaddrinfo.c: Likewise.
27944
27945 2008-01-25  Simon Josefsson  <simon@josefsson.org>
27946
27947         * modules/sockets-tests: New file.
27948
27949 2008-01-24  Simon Josefsson  <simon@josefsson.org>
27950
27951         * modules/sockets: New module, can be used to call WSA_Startup and
27952         WSA_Cleanup when needed.
27953
27954         * lib/sockets.h, lib/sockets.c: New files.
27955
27956         * m4/sockets.m4: New file.
27957
27958         * tests/test-sockets.c: New file.
27959
27960 2008-01-19  Bruno Haible  <bruno@clisp.org>
27961
27962         * doc/posix-headers: Renamed from doc/headers.
27963         * doc/posix-functions: Renamed from doc/functions.
27964         * doc/gnulib.texi: Update.
27965
27966 2008-01-19  Bruno Haible  <bruno@clisp.org>
27967
27968         * doc/glibc-functions/strcasestr.texi: Include contents of
27969         doc/functions/strcasestr.texi, fixing the list of platforms.
27970         * doc/functions/strcasestr.texi: Remove file.
27971
27972 2008-01-19  Bruno Haible  <bruno@clisp.org>
27973
27974         * doc/glibc-functions/memmem.texi: Include contents of
27975         doc/functions/memmem.texi.
27976         * doc/functions/memmem.texi: Remove file.
27977
27978 2008-01-18  Bruno Haible  <bruno@clisp.org>
27979
27980         * doc/glibc-functions/*.texi: New files.
27981         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
27982         to use the new files.
27983
27984 2008-01-17  Bruno Haible  <bruno@clisp.org>
27985
27986         * tests/test-gethostname.c (main): Fix printf statement.
27987
27988 2008-01-17  Simon Josefsson  <simon@josefsson.org>
27989
27990         * modules/gethostname-tests: New file.
27991
27992         * tests/test-gethostname.c: New file.
27993
27994 2008-01-17  Simon Josefsson  <simon@josefsson.org>
27995
27996         * lib/gethostname.c: Include string.h unconditionally, strncpy is
27997         used by the UNAME case.  Reported by Bruno Haible
27998         <bruno@clisp.org>.
27999
28000 2008-01-17  Eric Blake  <ebb9@byu.net>
28001
28002         Convert c-strcasestr to be more efficient.
28003         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
28004         (Depends-on): Add c-strcase, remove malloca, strnlen.
28005         * tests/test-c-strcasestr.c (main): Enhance test.
28006         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
28007
28008 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
28009
28010         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
28011         Use it in creating po/Makevars.
28012
28013 2008-01-15  Simon Josefsson  <simon@josefsson.org>
28014
28015         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
28016         Applications that requires it should initialize libgcrypt
28017         manually.
28018
28019 2008-01-16  Simon Josefsson  <simon@josefsson.org>
28020
28021         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
28022
28023 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
28024
28025         Fix problem with getdate on mingw32 reported by Simon Josefsson
28026         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
28027         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
28028         tzname", when deciding whether to declare tzname.
28029         * lib/strftime.c (tzname): Likewise.
28030
28031 2008-01-15  Bruno Haible  <bruno@clisp.org>
28032
28033         Work around a MacOS X 10.5 bug in frexpl().
28034         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
28035         * doc/functions/frexpl.texi: Document the bug.
28036         Reported by Elias Pipping <pipping@gentoo.org>.
28037
28038 2008-01-14  Eric Blake  <ebb9@byu.net>
28039
28040         Touch up previous patch.
28041         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
28042         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
28043
28044         Convert strcasestr module to use Two-Way algorithm.
28045         * modules/strcasestr-simple: New module, based on the old
28046         strcasestr, but with Two-Way rather than KMP.
28047         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
28048         * lib/string.in.h (rpl_strcasestr): Declare.
28049         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
28050         performance.
28051         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
28052         * modules/string (Makefile.am): Support strcasestr.
28053         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
28054         * modules/strcasestr-tests (Depends-on): Check for alarm.
28055         * tests/test-strcasestr.c: Augment test.
28056         * lib/str-two-way.h: Clean up stray macro.
28057         * NEWS: Document new module.
28058         * MODULES.html.sh (string handling): Likewise.
28059         * doc/functions/strcasestr.texi: New file.
28060         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
28061         here, since it is not a POSIX function.
28062
28063 2008-01-14  Colin Watson  <cjwatson@debian.org>
28064             Bruno Haible  <bruno@clisp.org>
28065
28066         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
28067         works fine; if not, set REPLACE_STRSIGNAL.
28068         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
28069         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28070         REPLACE_STRSIGNAL.
28071         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
28072         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
28073         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
28074
28075 2008-01-14  Bruno Haible  <bruno@clisp.org>
28076
28077         * modules/strsignal (Include): Change to <string.h>.
28078
28079 2008-01-14  Colin Watson  <cjwatson@debian.org>
28080
28081         * modules/argp (Notice): Add a notice recommending to change
28082         XGETTEXT_OPTIONS.
28083         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
28084
28085 2008-01-13  Colin Watson  <cjwatson@debian.org>
28086
28087         * modules/strsignal-tests: New file.
28088         * tests/test-strsignal.c: New file.
28089
28090         * lib/strsignal.c: New file, from glibc with modifications.
28091         * lib/siglist.h: New file, from glibc with modifications.
28092         * lib/string.in.h (strsignal): New declaration.
28093         * m4/strsignal.m4: New file.
28094         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28095         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
28096         * modules/strsignal: New file.
28097         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
28098         HAVE_DECL_STRSIGNAL.
28099
28100 2008-01-13  Bruno Haible  <bruno@clisp.org>
28101
28102         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
28103         locale encoding is not ASCII. Needed for OpenBSD 4.0.
28104         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
28105         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
28106
28107 2008-01-13  Bruno Haible  <bruno@clisp.org>
28108
28109         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
28110         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
28111         * lib/argp.h (__attribute__): Likewise.
28112         * lib/c-stack.c (__attribute__): Likewise.
28113         * lib/error.h (__attribute__): Likewise.
28114         * lib/fts.c (__attribute__): Likewise.
28115         * lib/openat.h (__attribute__): Likewise.
28116         * lib/stdio.in.h (__attribute__): Likewise.
28117         * lib/string.in.h (__attribute__): Likewise.
28118         * lib/utimens.c (__attribute__): Likewise.
28119         * lib/vasnprintf.h (__attribute__): Likewise.
28120         * lib/xalloc.h (__attribute__): Likewise.
28121         * lib/xprintf.h (__attribute__): Likewise.
28122         * lib/xstrtol.h (__attribute__): Likewise.
28123         * lib/xvasprintf.h (__attribute__): Likewise.
28124
28125 2008-01-12  Bruno Haible  <bruno@clisp.org>
28126
28127         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
28128         * doc/glibc-headers/a.out.texi: New file.
28129         * doc/glibc-headers/aliases.texi: New file.
28130         * doc/glibc-headers/alloca.texi: New file.
28131         * doc/glibc-headers/ar.texi: New file.
28132         * doc/glibc-headers/argp.texi: New file.
28133         * doc/glibc-headers/argz.texi: New file.
28134         * doc/glibc-headers/byteswap.texi: New file.
28135         * doc/glibc-headers/crypt.texi: New file.
28136         * doc/glibc-headers/endian.texi: New file.
28137         * doc/glibc-headers/envz.texi: New file.
28138         * doc/glibc-headers/err.texi: New file.
28139         * doc/glibc-headers/error.texi: New file.
28140         * doc/glibc-headers/execinfo.texi: New file.
28141         * doc/glibc-headers/fpu_control.texi: New file.
28142         * doc/glibc-headers/fstab.texi: New file.
28143         * doc/glibc-headers/fts.texi: New file.
28144         * doc/glibc-headers/getopt.texi: New file.
28145         * doc/glibc-headers/ieee754.texi: New file.
28146         * doc/glibc-headers/ifaddrs.texi: New file.
28147         * doc/glibc-headers/libintl.texi: New file.
28148         * doc/glibc-headers/mcheck.texi: New file.
28149         * doc/glibc-headers/mntent.texi: New file.
28150         * doc/glibc-headers/obstack.texi: New file.
28151         * doc/glibc-headers/paths.texi: New file.
28152         * doc/glibc-headers/printf.texi: New file.
28153         * doc/glibc-headers/pty.texi: New file.
28154         * doc/glibc-headers/resolv.texi: New file.
28155         * doc/glibc-headers/shadow.texi: New file.
28156         * doc/glibc-headers/sysexits.texi: New file.
28157         * doc/glibc-headers/ttyent.texi: New file.
28158
28159 2008-01-12  Jim Meyering  <meyering@redhat.com>
28160
28161         announce-gen: emit Gnulib's git-based version string.
28162         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
28163         New option --gnulib-version=V, where V is expected to be
28164         the output of running git describe in the gnulib directory.
28165         (get_tool_versions): Request feedback on xdelta.  I suspect it's
28166         not useful, and plan to stop publishing an xdelta file with each
28167         coreutils release.
28168
28169         * build-aux/announce-gen: Also check for lzma-compressed files.
28170
28171 2008-01-11  Bruno Haible  <bruno@clisp.org>
28172
28173         * tests/test-memmem.c (main): Increase maximum allowed time.
28174         * tests/test-strstr.c (main): Likewise.
28175
28176 2008-01-11  Bruno Haible  <bruno@clisp.org>
28177
28178         * doc/functions/memmem.texi: Add more precisions about platforms.
28179         * doc/functions/strstr.texi: Likewise.
28180
28181 2008-01-10  Eric Blake  <ebb9@byu.net>
28182
28183         * m4/strstr.m4: Delete cruft from copy-n-paste.
28184         Reported by Bruno Haible.
28185
28186 2008-01-10  Bruno Haible  <bruno@clisp.org>
28187
28188         Make c-strstr rely on strstr.
28189         * lib/c-strstr.c: Don't include str-kmp.h.
28190         (c_strstr): Define in terms of strstr.
28191         * modules/c-strstr (Files): Remove lib/str-kmp.h.
28192         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
28193
28194 2008-01-10  Bruno Haible  <bruno@clisp.org>
28195
28196         * doc/gnulib.texi (String Functions in C Locale): New section.
28197         * doc/c-ctype.texi: New file.
28198         * doc/c-strcase.texi: New file.
28199         * doc/c-strcaseeq.texi: New file.
28200         * doc/c-strcasestr.texi: New file.
28201         * doc/c-strstr.texi: New file.
28202         * doc/c-strtod.texi: New file.
28203         * doc/c-strtold.texi: New file.
28204
28205 2008-01-10  Eric Blake  <ebb9@byu.net>
28206
28207         * lib/relocatable.h: Fix a comment.
28208
28209 2008-01-10  Eric Blake  <ebb9@byu.net>
28210
28211         Share two-way algorithm.
28212         * lib/str-two-way.h: New file, merged from...
28213         * lib/memmem.c: ...here...
28214         * lib/strstr.c: ...and here.
28215         * modules/memmem (Files): Use it.
28216         * modules/strstr (Files): Likewise.
28217
28218         Avoid quadratic strstr implementations.
28219         * lib/strstr.c: New file.
28220         * m4/strstr.m4: Likewise.
28221         * modules/strstr: Likewise.
28222         * modules/strstr-tests: Likewise.
28223         * tests/test-strstr.c: Likewise.
28224         * lib/string.in.h (rpl_strstr): Declare.
28225         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
28226         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
28227         * modules/string (Makefile.am): Likewise.
28228         * MODULES.html.sh (string handling): Mention new module.
28229         * doc/functions/strstr.texi (strstr): Document the bug.
28230
28231 2008-01-10  Bruno Haible  <bruno@clisp.org>
28232
28233         * lib/relocatable.h (relocate): State whether result is freshly
28234         allocated or not.
28235         * lib/relocatable.c (relocate): Return a freshly allocated string
28236         instead of a pointer to a privately held string.
28237         Reported by Sylvain Beucler <beuc@gnu.org>.
28238
28239 2008-01-10  Colin Watson  <cjwatson@debian.org>
28240
28241         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
28242         s/S_ISNLK/S_ISLNK/.
28243
28244 2008-01-09  Bruno Haible  <bruno@clisp.org>
28245
28246         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
28247         and other files.
28248         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
28249         if it's only a guess.
28250         * modules/memmem: Simplify by depending on memmem-simple.
28251
28252 2008-01-09  Bruno Haible  <bruno@clisp.org>
28253
28254         Work around OpenBSD 4.0 tdelete() bug.
28255         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
28256         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
28257         macros and don't redefine the enum values.
28258         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
28259         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
28260         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
28261
28262 2008-01-09  Bruno Haible  <bruno@clisp.org>
28263
28264         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
28265         (main): Don't perform the tests if setlocale did not install a UTF-8
28266         locale. Needed on OpenBSD 4.0.
28267         * modules/wcwidth-tests (Depends-on): Add localcharset.
28268
28269 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
28270
28271         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
28272         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
28273         * NEWS: announce this.
28274         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
28275
28276 2008-01-09  Simon Josefsson  <simon@josefsson.org>
28277         and Eric Blake  <ebb9@byu.net>
28278
28279         Add memmem-simple module.
28280         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
28281         (gl_FUNC_MEMMEM): Separate performance from presence checks.
28282         * modules/memmem-simple: New file.
28283         * modules/memmem (Description): Tweak.
28284         * MODULES.html.sh (string handling): Mention new module.
28285         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
28286         addressed by memmem-simple.
28287         * NEWS: Document the difference.
28288
28289 2008-01-09  Eric Blake  <ebb9@byu.net>
28290
28291         Give gcc some memmem optimization hints.
28292         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
28293         (strcasestr): Declare as pure.
28294         * modules/memmem (Maintainer): Claim my implementation.
28295
28296 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28297
28298         Support AIX 6.1 and higher.
28299         * build-aux/config.libpath: Likewise.
28300         * build-aux/config.rpath: Likewise.
28301
28302 2008-01-08  Jim Meyering  <meyering@redhat.com>
28303             Bruno Haible  <bruno@clisp.org>
28304
28305         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
28306         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
28307         Reported by Peter Fales in
28308         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
28309
28310 2008-01-08  Bruno Haible  <bruno@clisp.org>
28311
28312         * modules/unictype/category-of (Depends-on): Add
28313         unictype/category-none.
28314         * modules/unictype/category-and-tests (Depends-on): Add
28315         unictype/category-{L,N,Lu,Nd}.
28316         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
28317         * modules/unictype/category-or-tests (Depends-on): Add
28318         unictype/category-{L,N}.
28319         * modules/unictype/category-name-tests (Depends-on): Add
28320         unictype/category-{Z,Nl}.
28321         Reported by Simon Josefsson.
28322
28323 2008-01-08  Bruno Haible  <bruno@clisp.org>
28324
28325         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
28326         convention better.
28327         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
28328         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
28329         Reported by Peter Miller <millerp@canb.auug.org.au>.
28330
28331 2008-01-08  Eric Blake  <ebb9@byu.net>
28332
28333         Rewrite memmem to guarantee linear complexity without malloc.
28334         * lib/memmem.c (memmem): Use Two-Way rather than
28335         Knuth-Morris-Pratt, to allow O(1) space usage.
28336         (critical_factorization, two_way_short_needle)
28337         (two_way_long_needle): New functions.
28338         (knuth_morris_pratt): Delete.
28339         * modules/memmem (Depends-on): No longer need malloca or stdbool.
28340         Add stdint.
28341         * tests/test-memmem.c (main): Add tests for periodic needle and
28342         sublinear performance.
28343         * doc/functions/memmem.texi (memmem): Document other deficiencies
28344         in cygwin and older glibc.
28345
28346 2008-01-08  Bruno Haible  <bruno@clisp.org>
28347
28348         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
28349         augmentation.
28350
28351 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
28352
28353         Add a configure time option: --disable-acl.
28354         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
28355         AC_ARG_ENABLE(acl).
28356
28357 2008-01-06  Simon Josefsson  <simon@josefsson.org>
28358
28359         * tests/test-localename.c: Don't include obsolete "setenv.h".
28360
28361         * modules/localename-tests (Depends-on): Need unsetenv.
28362
28363 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28364
28365         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
28366
28367 2008-01-06  Colin Watson  <cjwatson@debian.org>
28368
28369         * users.txt: Add man-db.
28370
28371 2008-01-07  Bruno Haible  <bruno@clisp.org>
28372
28373         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
28374         previous section name.
28375
28376 2008-01-07  Bruno Haible  <bruno@clisp.org>
28377
28378         * lib/progname.c (set_program_name): Don't strip off a leading
28379         "lt-" prefix outside a .libs directory.
28380         Suggested by Paul Eggert.
28381
28382 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
28383             Bruno Haible  <bruno@clisp.org>
28384
28385         Improve memory cleanup in 'relocatable' module.
28386         * lib/relocatable.h (compute_curr_prefix): Change return type to
28387         'char *'.
28388         * lib/relocatable.c (compute_curr_prefix): Change return type to
28389         'char *'. Free curr_installdir after use.
28390         (relocate): Free curr_prefix_better after use.
28391         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
28392
28393 2008-01-01  Bruno Haible  <bruno@clisp.org>
28394
28395         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
28396         failure on older glibc systems.
28397         Reported by Peter Fales <psfales@alcatel-lucent.com>.
28398
28399 2008-01-05  Eric Blake  <ebb9@byu.net>
28400
28401         Avoid quadratic system memmem.
28402         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
28403         Reported by Ralf Wildenhues.
28404
28405         Fix memmem test for mingw.
28406         * modules/memmem-tests (configure.ac): Check for alarm.
28407         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
28408         it.
28409         * doc/functions/memmem.texi: New file.
28410         * doc/gnulib.texi (Function Substitutes): Add memmem.
28411         Reported by Bruno Haible.
28412
28413 2008-01-04  Bruno Haible  <bruno@clisp.org>
28414
28415         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
28416         Require gl_HEADER_STRINGS_H_DEFAULTS, not
28417         gl_HEADER_STRING_H_DEFAULTS.
28418
28419 2008-01-04  Eric Blake  <ebb9@byu.net>
28420
28421         Shorten duration of memmem test.
28422         * tests/test-memmem.c (main): Use alarm to declare failure if test
28423         is taking too long.
28424         Reported by Ralf Wildenhues.
28425
28426 2007-12-21  Simon Josefsson  <simon@josefsson.org>
28427
28428         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
28429         string, needed by strerror.
28430
28431 2008-01-03  Colin Watson  <cjwatson@debian.org>
28432             Bruno Haible  <bruno@clisp.org>
28433
28434         * doc/gnulib-tool.texi (Localization): New section.
28435
28436 2008-01-02  Bruno Haible  <bruno@clisp.org>
28437
28438         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
28439         variables to 'unsigned char *' type.
28440         Reported by Paul Eggert.
28441
28442 2008-01-02  Jim Meyering  <jim@meyering.net>
28443
28444         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
28445
28446 2007-12-31  Jim Meyering  <jim@meyering.net>
28447
28448         Avoid use of private FTS type name.
28449         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
28450
28451 2007-12-30  Karl Berry  <karl@gnu.org>
28452
28453         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
28454         work around defect in Texinfo and/or the standalone Info browser.
28455
28456 2007-12-30  Bruno Haible  <bruno@clisp.org>
28457
28458         Unify 5 copies of the KMP code.
28459         * lib/str-kmp.h: New file.
28460         * lib/c-strcasestr.c: Include str-kmp.h.
28461         (knuth_morris_pratt): Remove function.
28462         (c_strcasestr): Update.
28463         * lib/c-strstr.c: Include str-kmp.h.
28464         (knuth_morris_pratt): Remove function.
28465         (c_strcasestr): Update.
28466         * lib/mbscasestr.c: Include str-kmp.h.
28467         (knuth_morris_pratt_unibyte): Remove function.
28468         * lib/mbsstr.c: Include str-kmp.h.
28469         (knuth_morris_pratt_unibyte): Remove function.
28470         * lib/strcasestr.c: Include str-kmp.h.
28471         (knuth_morris_pratt): Remove function.
28472         (strcasestr): Update.
28473         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
28474         * modules/c-strstr (Files): Likewise.
28475         * modules/mbscasestr (Files): Likewise.
28476         * modules/mbsstr (Files): Likewise.
28477         * modules/strcasestr (Files): Likewise.
28478         Suggested by Paul Eggert.
28479
28480 2007-12-30  Bruno Haible  <bruno@clisp.org>
28481
28482         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
28483         defined.
28484
28485 2007-12-30  Bruno Haible  <bruno@clisp.org>
28486
28487         * lib/xmalloca.h: Include xalloc.h.
28488         (xnmalloca): New macro.
28489
28490 2007-12-30  Bruno Haible  <bruno@clisp.org>
28491
28492         * lib/malloca.h (nmalloca): New macro.
28493         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
28494         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
28495         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
28496         knuth_morris_pratt_multibyte): Likewise.
28497         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
28498         knuth_morris_pratt_multibyte): Likewise.
28499         * lib/memmem.c (knuth_morris_pratt): Likewise.
28500         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
28501
28502 2007-12-25  Bruno Haible  <bruno@clisp.org>
28503
28504         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
28505         * lib/glob.c: Don't include openat.h.
28506         (link_exists2_p): Add back the code that deals with the
28507         !GLOB_ALTDIRFUNC case.
28508         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
28509         let it do the filename concatenation.
28510         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
28511         * modules/glob (Depends-on): Remove openat.
28512
28513 2007-12-31  Bruno Haible  <bruno@clisp.org>
28514
28515         * modules/dirfd (License): Change to LGPLv2+.
28516         Approved by Jim Meyering.
28517
28518 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
28519
28520         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
28521         when multiplying M by sizeof (size_t).
28522
28523 2007-12-10  Martin Lambers  <marlam@marlam.de>
28524
28525         Override getpagesize on mingw.
28526         * lib/getpagesize.c: New file.
28527         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
28528         * modules/getpagesize (Files): Add lib/getpagesize.c.
28529         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
28530         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28531         REPLACE_GETPAGESIZE.
28532         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
28533
28534 2007-12-25  Bruno Haible  <bruno@clisp.org>
28535
28536         * modules/localcharset (Notice): New field.
28537         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
28538         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
28539
28540 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
28541             Bruno Haible  <bruno@clisp.org>
28542
28543         Avoid using the syntax symbol() in formatted documentation.
28544         * MODULES.html.sh (func_module): When replacing symbol() with a
28545         hyperlink, remove the parentheses. Show an error if some remain.
28546         Recognize and render the '...' syntax.
28547         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
28548         Rework. Add paragraph about GCC's inlining.
28549         * doc/alloca.texi: Likewise.
28550         * doc/error.texi: Remove parentheses from symbol reference.
28551         * doc/gnulib-intro.texi: Likewise.
28552         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
28553         * modules/fnmatch (Description): Reword to say "the ... function".
28554         * modules/full-read (Description): Likewise.
28555         * modules/full-write (Description): Likewise.
28556         * modules/safe-read (Description): Likewise.
28557         * modules/safe-write (Description): Likewise.
28558         * modules/strchrnul (Description): Likewise.
28559         * modules/trim (Description): Likewise.
28560         * modules/error (Description): Remove parentheses from symbol
28561         references.
28562         * modules/verror (Description): Likewise.
28563         Reported by Karl Berry.
28564
28565 2007-12-25  Bruno Haible  <bruno@clisp.org>
28566
28567         Fixup after 2007-10-16 commit.
28568         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
28569
28570 2007-12-24  Bruno Haible  <bruno@clisp.org>
28571
28572         Make --enable-relocatable work with DESTDIR.
28573         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
28574         to compute installdir from destprog.
28575         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
28576         also set the RELOC_DESTDIR variable.
28577         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
28578
28579 2007-12-24  Bruno Haible  <bruno@clisp.org>
28580
28581         Fix link error due to xalloc_die().
28582         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
28583         of xreadlink.
28584         * lib/relocwrapper.c: Update comments.
28585         * build-aux/install-reloc: Remove xreadlink.c from file list.
28586         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
28587         xreadlink.c.
28588         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
28589
28590 2007-12-24  Bruno Haible  <bruno@clisp.org>
28591
28592         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
28593         * lib/setenv.h: Remove file.
28594         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
28595         lib/setenv.h.
28596         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
28597         (Depends-on): Add stdlib.
28598         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
28599         gl_FUNC_UNSETENV.
28600         (Include): Replace setenv.h with <stdlib.h>.
28601         * modules/unsetenv: New file.
28602         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
28603         * lib/unsetenv.c: Include <stdlib.h> first.
28604         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
28605         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
28606         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
28607         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
28608         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
28609         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
28610         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
28611         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
28612         * doc/functions/unsetenv.texi: Update.
28613         * modules/xsetenv (Depends-on): Add unsetenv.
28614         * modules/getdate (Depends-on): Likewise.
28615         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
28616         * lib/xsetenv.c: Don't include setenv.h.
28617         * lib/getdate.y: Likewise.
28618         * lib/relocwrapper.c: Likewise.
28619         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
28620         (Depends-on): Add stdlib.
28621         * NEWS: Mention the changes.
28622         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
28623
28624 2007-12-23  Bruno Haible  <bruno@clisp.org>
28625
28626         * lib/memmem.c (memmem): Use lowercase variable names. Tab
28627         indentation.
28628
28629 2007-12-23  Bruno Haible  <bruno@clisp.org>
28630
28631         * lib/c-strcasestr.c: Add more comments.
28632         * lib/c-strstr.c: Likewise.
28633         * lib/mbscasestr.c: Likewise.
28634         * lib/mbsstr.c: Likewise.
28635         * lib/strcasestr.c: Likewise.
28636         * lib/memmem.c: Likewise.
28637
28638 2007-12-23  Bruno Haible  <bruno@clisp.org>
28639
28640         * tests/test-memmem.c: Include <string.h> first.
28641
28642 2007-12-22  Bruno Haible  <bruno@clisp.org>
28643
28644         * gnulib-tool (func_create_testdir): Change $auxdir while generating
28645         the contents of $testsbase.
28646         Reported by Ralf Wildenhues.
28647
28648 2007-12-22  Bruno Haible  <bruno@clisp.org>
28649
28650         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
28651         two variables local_ldadd_before, local_ldadd_last.
28652
28653 2007-12-20  Eric Blake  <ebb9@byu.net>
28654
28655         Work around circular library issue when cross-compiling.
28656         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
28657         that progname.o does not need to pull in rpl_memcmp.
28658
28659 2007-12-19  Eric Blake  <ebb9@byu.net>
28660
28661         Fix memmem to avoid O(n^2) worst-case complexity.
28662         * lib/memmem.c (knuth_morris_pratt): New function.
28663         (memmem): Use it if first few naive iterations fail.
28664         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
28665         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
28666         * modules/memchr (License): Likewise.
28667         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
28668         malloca.
28669         * tests/test-memmem.c: Rewrite, borrowing ideas from
28670         test-mbsstr1.c; the old version wouldn't even compile!
28671         * modules/memmem-tests: New file.
28672         * lib/string.in.h (rpl_memmem): Add declaration.
28673         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
28674         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
28675         REPLACE_MEMMEM.
28676
28677 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
28678
28679         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
28680         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
28681         before any system include files, and undef after them all.  This
28682         should fix a problem on VMS reported by John E. Malmberg in
28683         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
28684
28685 2007-12-17  Eric Blake  <ebb9@byu.net>
28686
28687         Revert addition of verify, for BSD/OS.
28688         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
28689         can't handle large files, for the sake of obsolete platforms.
28690         * modules/fseeko (Depends-on): Remove verify.
28691         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
28692         * doc/functions/ftello.texi (ftello): Likewise.
28693         * doc/functions/fgetpos.texi (fgetpos): Likewise.
28694         Reported by Larry Jones.
28695
28696 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
28697
28698         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
28699         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
28700
28701 2007-12-17  Jim Meyering  <meyering@redhat.com>
28702
28703         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
28704         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
28705         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
28706         * modules/getcwd (Depends-on): Add openat.
28707         Reported by Petr Salinger.
28708
28709 2007-12-17  Bruno Haible  <bruno@clisp.org>
28710
28711         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
28712         avoid a segmentation fault of the configure test on x86_64 systems.
28713
28714 2007-12-15  Jim Meyering  <meyering@redhat.com>
28715
28716         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
28717
28718 2007-12-13  Eric Blake  <ebb9@byu.net>
28719
28720         Another fseek test.
28721         * tests/test-fseek.c (main): Also test ungetc handling.
28722         * tests/test-fseeko.c (main): Likewise.
28723         * modules/fseeko (Depends-on): Add verify.
28724         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
28725         large.
28726         Reported by Larry Jones.
28727
28728         Fix fseeko on mingw.
28729         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
28730         seek.
28731
28732         Beef up fseek tests.
28733         * tests/test-fseek.c (main): Also test eof handling.
28734         * tests/test-fseeko.c (main): Likewise.
28735         Reported by Larry Jones.
28736
28737 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
28738
28739         Fix fseeko on BSD-based platforms.
28740         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
28741         successful seek.
28742
28743 2007-12-12  Eric Blake  <ebb9@byu.net>
28744
28745         Allow circular dependency of separate libtests.a
28746         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
28747         when use_libtests.
28748
28749 2007-12-11  Eric Blake  <ebb9@byu.net>
28750
28751         Fix bug with -0.0L in previous patch.
28752         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
28753         * tests/test-isnan.c (main): Also test on zeroes.
28754         * tests/test-isnanf.c (main): Likewise.
28755         * tests/test-isnanl.h (main): Likewise.
28756
28757         Detect pseudo-denormals on x86 even when cross-compiling.
28758         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
28759         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
28760         invalid bit patterns that happen to satisfy ==.
28761
28762         Avoid link failures with separate libtests.a.
28763         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
28764         last, to satisfy circular dependencies.
28765
28766 2007-12-11  Eric Blake  <ebb9@byu.net>
28767         and Bruno Haible  <bruno@clisp.org>
28768
28769         Fix OpenBSD 4.0 <float.h> handling of long double.
28770         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
28771         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
28772         * doc/headers/float.texi (float.h): Document OpenBSD bug.
28773
28774 2007-12-11  Jim Meyering  <meyering@redhat.com>
28775
28776         * users.txt: Add libvirt.
28777
28778         Support versions of autoconf prior to 2.59c.
28779         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
28780         if it is not already defined.
28781
28782 2007-12-09  Bruno Haible  <bruno@clisp.org>
28783
28784         Let 'gnulib-tool --import' collect sources needed for the tests in
28785         tests/ rather than in lib/.
28786         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
28787         argument. If true, add rules to generate libtests.a, and put libtests.a
28788         into $(LDADD). Consider source files in subdirectories and set
28789         uses_subdirs.
28790         (func_emit_initmacro_start, func_emit_initmacro_end,
28791         func_emit_initmacro_done): Pass all arguments explicitly.
28792         (func_import): Determine two module lists main_modules,
28793         testsrelated_modules. Determine use_libtests. Determine two variables
28794         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
28795         instead of just sed_transform_lib_file. Determine two variables
28796         main_files and testsrelated_files. Compute 'files' as the union of
28797         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
28798         func_add_or_update. In the generated gnulib-comp.m4, collect the
28799         object files for tests/ in different variables than those for lib/.
28800         Substitute LIBTESTS_LIBDEPS.
28801         (func_create_testdir): Combine the uses_subdirs results from
28802         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
28803
28804 2007-12-09  Bruno Haible  <bruno@clisp.org>
28805
28806         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
28807         the build-aux directory.
28808
28809 2007-12-09  Bruno Haible  <bruno@clisp.org>
28810
28811         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
28812         introduced on 2006-09-09.
28813
28814 2007-12-07  Jim Meyering  <meyering@redhat.com>
28815
28816         Let these macros work also with autoconf-2.59.
28817         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
28818         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
28819         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
28820
28821 2007-12-06  Jim Meyering  <meyering@redhat.com>
28822
28823         Avoid a configure-time syntax error in gl_FUNC_ACL.
28824         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
28825         function in each branch, before testing the cache variable.
28826
28827 2007-12-04  Eric Blake  <ebb9@byu.net>
28828
28829         Make scripts executable.
28830         * build-aux/config.guess: Add execute permissions.
28831         * build-aux/config.sub: Likewise.
28832         * build-aux/gendocs.sh: Likewise.
28833
28834         Fix frexp on mingw.
28835         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
28836         cross-compiling.
28837         * doc/functions/frexp.texi (frexp): Document the bug.
28838
28839         Make cygwin fseeko check more reliable.
28840         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
28841         version numbers, rather than unrelated feature check.
28842         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
28843         * doc/functions/ftello.texi (ftello): Likewise.
28844         Reported by Bruno Haible.
28845
28846         * m4/strerror.m4: Bump version number.
28847
28848 2007-12-03  Bruno Haible  <bruno@clisp.org>
28849
28850         * doc/functions/mprotect.texi: Mention the mingw problem.
28851
28852 2007-12-03  Eric Blake  <ebb9@byu.net>
28853
28854         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
28855         REPLACE_STRERROR is initialized before this macro.
28856
28857 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
28858
28859         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
28860         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
28861         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
28862         put -lsec in even for programs other than 'ls'.  This fixes a problem
28863         for gettext reported by Bruno Haible in
28864         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
28865         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
28866         Add support for Solaris 10.  This isn't efficient, but should get the
28867         job done for now.
28868
28869 2007-12-03  James Youngman  <jay@gnu.org>
28870
28871         * doc/regexprops-generic.texi: change "an close-group" to "a
28872         close-group" and "illegal" to "not allowed".
28873
28874 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28875
28876         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
28877         pr_byname.h. Needed for the rare case when the maintainer has done
28878         "make maintainer-clean" in the source directory and then attempts a
28879         build outside the source directory.
28880         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
28881         scripts_byname.h.
28882
28883 2007-12-02  Martin Lambers <marlam@marlam.de>
28884             Bruno Haible  <bruno@clisp.org>
28885
28886         * lib/getpagesize.h: Remove file.
28887         * lib/unistd.in.h: Include declaration of getpagesize here.
28888         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
28889         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
28890         HAVE_SYS_PARAM_H.
28891         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
28892         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
28893         * modules/getpagesize (Files): Remove lib/getpagesize.h.
28894         (Depends-on): Add unistd.
28895         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28896         (Include): Use <unistd.h> instead of getpagesize.h.
28897         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
28898         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
28899         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
28900         gl_GETPAGESIZE invocation, already handled by module dependency.
28901         * lib/pagealign_alloc.c: Don't include getpagesize.h.
28902
28903 2007-12-02  Bruno Haible  <bruno@clisp.org>
28904
28905         * modules/strings-tests: New file.
28906         * tests/test-strings.c: New file.
28907
28908         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
28909         * lib/strings.in.h: New file.
28910         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
28911         * m4/strings_h.m4: New file.
28912         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
28913         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
28914         * modules/strings: New file.
28915         * modules/string (Makefile.am): Update.
28916         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
28917         Reported by Karl Berry.
28918
28919 2007-12-01  Eric Blake  <ebb9@byu.net>
28920
28921         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
28922         accomodate fix in cygwin 1.5.25.
28923
28924 2007-12-01  Jim Meyering  <meyering@redhat.com>
28925
28926         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
28927         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
28928         that would inhibit utf8-optimization of a regexp containing line-
28929         or buffer-anchors, e.g., `^', `$'.
28930
28931 2007-11-30  Bruno Haible  <bruno@clisp.org>
28932
28933         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
28934         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
28935         glthread_recursive_lock_init.
28936         * lib/lock.c (glthread_recursive_lock_init)
28937         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
28938         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28939
28940 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
28941
28942         New function qset_acl, like set_acl but with syscall semantics.
28943         * lib/acl.h (qset_acl): New decl.
28944         * lib/acl.c (qset_acl): New function.
28945         (set_acl): Use new function.  Use more-consistent diagnostics.
28946
28947 2007-11-28  Jim Meyering  <meyering@redhat.com>
28948
28949         * modules/physmem (License): Change from GPL to LGPLv2+.
28950
28951 2007-11-26  Bruno Haible  <bruno@clisp.org>
28952
28953         * lib/vasnprintf.c (decode_long_double): Don't abort if the
28954         'long double' type has excess precision.
28955         Reported by Jim Meyering in
28956         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
28957
28958 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28959
28960         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
28961         Sync from <http://gnu.org/licenses>.
28962         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
28963         with license text from same location.
28964         * doc/maintain.texi, doc/standards.texi:  Sync from
28965         <http://savannah.gnu.org/projects/gnustandards>.
28966
28967 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
28968         and Jim Meyering  <meyering@redhat.com>
28969
28970         Adjust getdate' grammar to accept a slightly more regular language.
28971         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
28972         Before, the former was rejected.
28973         * lib/getdate.y (digits_to_date_time): New function, factored
28974         out of ...
28975         (number): ...here.  Just call digits_to_date_time.
28976         (hybrid): New non-terminal to handle an <unsigned number,
28977         signed relative offset> sequence consistently.
28978
28979 2007-11-18  Jim Meyering  <meyering@redhat.com>
28980
28981         Pull my changes from coreutils:
28982         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
28983         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
28984         use of $gnulib_tool_option_extras, so that it's separated from the
28985         preceding argument.
28986
28987         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
28988         * build-aux/bootstrap (cp_mark_as_generated): Create any required
28989         parent destination directories before copying a file into place.
28990
28991 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
28992
28993         bootstrap: work also with 4-argument variant of AC_INIT
28994         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
28995
28996 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
28997
28998         Port test-getaddrinfo to Solaris.
28999         Problem reported by Bruno Haible in
29000         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
29001         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
29002         explanation of setting 'hints'.
29003         Don't reject an implementation merely because it returns EAI_SERVICE.
29004         (EAI_SERVICE): Define to 0 if not defined.
29005
29006 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
29007
29008         The license of gnu-make and posix-shell is now "GPLed build tool".
29009         * modules/gnu-make (License): Likewise.
29010         * modules/posix-shell (License): Likewise.
29011
29012         New module posix-shell, for determining a POSIX shell
29013         or perhaps something that is close enough to a POSIX shell.
29014         * m4/posix-shell.m4: New file.
29015         * modules/posix-shell: New file.
29016
29017         * MODULES.html.sh: Mention new module.
29018
29019         New module gnu-make, for determining whether we're using GNU Make.
29020         * m4/gnu-make.m4: New file.
29021         * modules/gnu-make: New file.
29022         * MODULES.html.sh: Mention new module.
29023
29024 2007-11-14  Jim Meyering  <meyering@redhat.com>
29025
29026         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
29027         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
29028         use this macro to create a function _definition_.
29029         Remove useless "#undef ARGMATCH_DIE".
29030
29031 2007-11-14  Bruno Haible  <bruno@clisp.org>
29032
29033         * lib/config.charset: Update for OpenBSD 4.1.
29034         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
29035
29036 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
29037
29038         Document 64-bit #if problems in stdint.texi.
29039         * doc/headers/stdint.texi (stdint.h): Mention problems with
29040         64-bit-#if, and how to work around them.
29041
29042         Don't insist on 'long long int' support in the preprocessor.  It
29043         breaks too many things.  For example, PRIdMAX still uses a 'long
29044         long int' format with the latest Sun compiler, even though
29045         HAVE_LONG_LONG_INT isn't defined due to that compiler's
29046         preprocessor problem.  This causes the latest coreutils to dump
29047         core on Solaris 10 sparc with the Sun C compiler.
29048         Instead, fix the 2007-10-16 problem in a different way, by evaluating
29049         the troublesome expressions at configure-time, not at #if-time.
29050         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
29051         preprocessor.
29052         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
29053         compile-time C checks, done at 'configure'-time.
29054         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
29055         * modules/inttypes (Makefile): Substitute the new symbols that
29056         gl_INTTYPES_H now generates.
29057         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
29058
29059 2007-11-12  Bruno Haible  <bruno@clisp.org>
29060
29061         Tests for Unicode character classification functions.
29062
29063         * modules/unictype/bidicategory-byname-tests: New file.
29064         * modules/unictype/bidicategory-name-tests: New file.
29065         * modules/unictype/bidicategory-of-tests: New file.
29066         * modules/unictype/bidicategory-test-tests: New file.
29067         * modules/unictype/block-list-tests: New file.
29068         * modules/unictype/block-of-tests: New file.
29069         * modules/unictype/block-test-tests: New file.
29070         * modules/unictype/category-C-tests: New file.
29071         * modules/unictype/category-Cc-tests: New file.
29072         * modules/unictype/category-Cf-tests: New file.
29073         * modules/unictype/category-Cn-tests: New file.
29074         * modules/unictype/category-Co-tests: New file.
29075         * modules/unictype/category-Cs-tests: New file.
29076         * modules/unictype/category-L-tests: New file.
29077         * modules/unictype/category-Ll-tests: New file.
29078         * modules/unictype/category-Lm-tests: New file.
29079         * modules/unictype/category-Lo-tests: New file.
29080         * modules/unictype/category-Lt-tests: New file.
29081         * modules/unictype/category-Lu-tests: New file.
29082         * modules/unictype/category-M-tests: New file.
29083         * modules/unictype/category-Mc-tests: New file.
29084         * modules/unictype/category-Me-tests: New file.
29085         * modules/unictype/category-Mn-tests: New file.
29086         * modules/unictype/category-N-tests: New file.
29087         * modules/unictype/category-Nd-tests: New file.
29088         * modules/unictype/category-Nl-tests: New file.
29089         * modules/unictype/category-No-tests: New file.
29090         * modules/unictype/category-P-tests: New file.
29091         * modules/unictype/category-Pc-tests: New file.
29092         * modules/unictype/category-Pd-tests: New file.
29093         * modules/unictype/category-Pe-tests: New file.
29094         * modules/unictype/category-Pf-tests: New file.
29095         * modules/unictype/category-Pi-tests: New file.
29096         * modules/unictype/category-Po-tests: New file.
29097         * modules/unictype/category-Ps-tests: New file.
29098         * modules/unictype/category-S-tests: New file.
29099         * modules/unictype/category-Sc-tests: New file.
29100         * modules/unictype/category-Sk-tests: New file.
29101         * modules/unictype/category-Sm-tests: New file.
29102         * modules/unictype/category-So-tests: New file.
29103         * modules/unictype/category-Z-tests: New file.
29104         * modules/unictype/category-Zl-tests: New file.
29105         * modules/unictype/category-Zp-tests: New file.
29106         * modules/unictype/category-Zs-tests: New file.
29107         * modules/unictype/category-and-not-tests: New file.
29108         * modules/unictype/category-and-tests: New file.
29109         * modules/unictype/category-byname-tests: New file.
29110         * modules/unictype/category-name-tests: New file.
29111         * modules/unictype/category-none-tests: New file.
29112         * modules/unictype/category-of-tests: New file.
29113         * modules/unictype/category-or-tests: New file.
29114         * modules/unictype/category-test-withtable-tests: New file.
29115         * modules/unictype/combining-class-tests: New file.
29116         * modules/unictype/ctype-alnum-tests: New file.
29117         * modules/unictype/ctype-alpha-tests: New file.
29118         * modules/unictype/ctype-blank-tests: New file.
29119         * modules/unictype/ctype-cntrl-tests: New file.
29120         * modules/unictype/ctype-digit-tests: New file.
29121         * modules/unictype/ctype-graph-tests: New file.
29122         * modules/unictype/ctype-lower-tests: New file.
29123         * modules/unictype/ctype-print-tests: New file.
29124         * modules/unictype/ctype-punct-tests: New file.
29125         * modules/unictype/ctype-space-tests: New file.
29126         * modules/unictype/ctype-upper-tests: New file.
29127         * modules/unictype/ctype-xdigit-tests: New file.
29128         * modules/unictype/decimal-digit-tests: New file.
29129         * modules/unictype/digit-tests: New file.
29130         * modules/unictype/mirror-tests: New file.
29131         * modules/unictype/numeric-tests: New file.
29132         * modules/unictype/property-alphabetic-tests: New file.
29133         * modules/unictype/property-ascii-hex-digit-tests: New file.
29134         * modules/unictype/property-bidi-arabic-digit-tests: New file.
29135         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
29136         * modules/unictype/property-bidi-block-separator-tests: New file.
29137         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
29138         * modules/unictype/property-bidi-common-separator-tests: New file.
29139         * modules/unictype/property-bidi-control-tests: New file.
29140         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
29141         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
29142         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
29143         * modules/unictype/property-bidi-european-digit-tests: New file.
29144         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
29145         * modules/unictype/property-bidi-left-to-right-tests: New file.
29146         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
29147         * modules/unictype/property-bidi-other-neutral-tests: New file.
29148         * modules/unictype/property-bidi-pdf-tests: New file.
29149         * modules/unictype/property-bidi-segment-separator-tests: New file.
29150         * modules/unictype/property-bidi-whitespace-tests: New file.
29151         * modules/unictype/property-byname-tests: New file.
29152         * modules/unictype/property-combining-tests: New file.
29153         * modules/unictype/property-composite-tests: New file.
29154         * modules/unictype/property-currency-symbol-tests: New file.
29155         * modules/unictype/property-dash-tests: New file.
29156         * modules/unictype/property-decimal-digit-tests: New file.
29157         * modules/unictype/property-default-ignorable-code-point-tests: New file.
29158         * modules/unictype/property-deprecated-tests: New file.
29159         * modules/unictype/property-diacritic-tests: New file.
29160         * modules/unictype/property-extender-tests: New file.
29161         * modules/unictype/property-format-control-tests: New file.
29162         * modules/unictype/property-grapheme-base-tests: New file.
29163         * modules/unictype/property-grapheme-extend-tests: New file.
29164         * modules/unictype/property-grapheme-link-tests: New file.
29165         * modules/unictype/property-hex-digit-tests: New file.
29166         * modules/unictype/property-hyphen-tests: New file.
29167         * modules/unictype/property-id-continue-tests: New file.
29168         * modules/unictype/property-id-start-tests: New file.
29169         * modules/unictype/property-ideographic-tests: New file.
29170         * modules/unictype/property-ids-binary-operator-tests: New file.
29171         * modules/unictype/property-ids-trinary-operator-tests: New file.
29172         * modules/unictype/property-ignorable-control-tests: New file.
29173         * modules/unictype/property-iso-control-tests: New file.
29174         * modules/unictype/property-join-control-tests: New file.
29175         * modules/unictype/property-left-of-pair-tests: New file.
29176         * modules/unictype/property-line-separator-tests: New file.
29177         * modules/unictype/property-logical-order-exception-tests: New file.
29178         * modules/unictype/property-lowercase-tests: New file.
29179         * modules/unictype/property-math-tests: New file.
29180         * modules/unictype/property-non-break-tests: New file.
29181         * modules/unictype/property-not-a-character-tests: New file.
29182         * modules/unictype/property-numeric-tests: New file.
29183         * modules/unictype/property-other-alphabetic-tests: New file.
29184         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
29185         * modules/unictype/property-other-grapheme-extend-tests: New file.
29186         * modules/unictype/property-other-id-continue-tests: New file.
29187         * modules/unictype/property-other-id-start-tests: New file.
29188         * modules/unictype/property-other-lowercase-tests: New file.
29189         * modules/unictype/property-other-math-tests: New file.
29190         * modules/unictype/property-other-uppercase-tests: New file.
29191         * modules/unictype/property-paired-punctuation-tests: New file.
29192         * modules/unictype/property-paragraph-separator-tests: New file.
29193         * modules/unictype/property-pattern-syntax-tests: New file.
29194         * modules/unictype/property-pattern-white-space-tests: New file.
29195         * modules/unictype/property-private-use-tests: New file.
29196         * modules/unictype/property-punctuation-tests: New file.
29197         * modules/unictype/property-quotation-mark-tests: New file.
29198         * modules/unictype/property-radical-tests: New file.
29199         * modules/unictype/property-sentence-terminal-tests: New file.
29200         * modules/unictype/property-soft-dotted-tests: New file.
29201         * modules/unictype/property-space-tests: New file.
29202         * modules/unictype/property-terminal-punctuation-tests: New file.
29203         * modules/unictype/property-test-tests: New file.
29204         * modules/unictype/property-titlecase-tests: New file.
29205         * modules/unictype/property-unassigned-code-value-tests: New file.
29206         * modules/unictype/property-unified-ideograph-tests: New file.
29207         * modules/unictype/property-uppercase-tests: New file.
29208         * modules/unictype/property-variation-selector-tests: New file.
29209         * modules/unictype/property-white-space-tests: New file.
29210         * modules/unictype/property-xid-continue-tests: New file.
29211         * modules/unictype/property-xid-start-tests: New file.
29212         * modules/unictype/property-zero-width-tests: New file.
29213         * modules/unictype/scripts-tests: New file.
29214         * modules/unictype/syntax-c-ident-tests: New file.
29215         * modules/unictype/syntax-c-whitespace-tests: New file.
29216         * modules/unictype/syntax-java-ident-tests: New file.
29217         * modules/unictype/syntax-java-whitespace-tests: New file.
29218         * tests/unictype/test-bidi_byname.c: New file.
29219         * tests/unictype/test-bidi_name.c: New file.
29220         * tests/unictype/test-bidi_of.c: New file.
29221         * tests/unictype/test-bidi_test.c: New file.
29222         * tests/unictype/test-block_list.c: New file.
29223         * tests/unictype/test-block_of.c: New file.
29224         * tests/unictype/test-block_test.c: New file.
29225         * tests/unictype/test-categ_and.c: New file.
29226         * tests/unictype/test-categ_and_not.c: New file.
29227         * tests/unictype/test-categ_byname.c: New file.
29228         * tests/unictype/test-categ_name.c: New file.
29229         * tests/unictype/test-categ_none.c: New file.
29230         * tests/unictype/test-categ_of.c: New file.
29231         * tests/unictype/test-categ_or.c: New file.
29232         * tests/unictype/test-categ_test_withtable.c: New file.
29233         * tests/unictype/test-combining.c: New file.
29234         * tests/unictype/test-decdigit.c: New file.
29235         * tests/unictype/test-digit.c: New file.
29236         * tests/unictype/test-mirror.c: New file.
29237         * tests/unictype/test-numeric.c: New file.
29238         * tests/unictype/test-pr_byname.c: New file.
29239         * tests/unictype/test-pr_test.c: New file.
29240         * tests/unictype/test-predicate-part1.h: New file.
29241         * tests/unictype/test-predicate-part2.h: New file.
29242         * tests/unictype/test-scripts.c: New file.
29243         * tests/unictype/test-sy_c_ident.c: New file.
29244         * tests/unictype/test-sy_java_ident.c: New file.
29245
29246         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
29247         for Unicode 5.0.0.
29248         * tests/unictype/test-categ_Cc.c: Likewise.
29249         * tests/unictype/test-categ_Cf.c: Likewise.
29250         * tests/unictype/test-categ_Cn.c: Likewise.
29251         * tests/unictype/test-categ_Co.c: Likewise.
29252         * tests/unictype/test-categ_Cs.c: Likewise.
29253         * tests/unictype/test-categ_L.c: Likewise.
29254         * tests/unictype/test-categ_Ll.c: Likewise.
29255         * tests/unictype/test-categ_Lm.c: Likewise.
29256         * tests/unictype/test-categ_Lo.c: Likewise.
29257         * tests/unictype/test-categ_Lt.c: Likewise.
29258         * tests/unictype/test-categ_Lu.c: Likewise.
29259         * tests/unictype/test-categ_M.c: Likewise.
29260         * tests/unictype/test-categ_Mc.c: Likewise.
29261         * tests/unictype/test-categ_Me.c: Likewise.
29262         * tests/unictype/test-categ_Mn.c: Likewise.
29263         * tests/unictype/test-categ_N.c: Likewise.
29264         * tests/unictype/test-categ_Nd.c: Likewise.
29265         * tests/unictype/test-categ_Nl.c: Likewise.
29266         * tests/unictype/test-categ_No.c: Likewise.
29267         * tests/unictype/test-categ_P.c: Likewise.
29268         * tests/unictype/test-categ_Pc.c: Likewise.
29269         * tests/unictype/test-categ_Pd.c: Likewise.
29270         * tests/unictype/test-categ_Pe.c: Likewise.
29271         * tests/unictype/test-categ_Pf.c: Likewise.
29272         * tests/unictype/test-categ_Pi.c: Likewise.
29273         * tests/unictype/test-categ_Po.c: Likewise.
29274         * tests/unictype/test-categ_Ps.c: Likewise.
29275         * tests/unictype/test-categ_S.c: Likewise.
29276         * tests/unictype/test-categ_Sc.c: Likewise.
29277         * tests/unictype/test-categ_Sk.c: Likewise.
29278         * tests/unictype/test-categ_Sm.c: Likewise.
29279         * tests/unictype/test-categ_So.c: Likewise.
29280         * tests/unictype/test-categ_Z.c: Likewise.
29281         * tests/unictype/test-categ_Zl.c: Likewise.
29282         * tests/unictype/test-categ_Zp.c: Likewise.
29283         * tests/unictype/test-categ_Zs.c: Likewise.
29284         * tests/unictype/test-ctype_alnum.c: Likewise.
29285         * tests/unictype/test-ctype_alpha.c: Likewise.
29286         * tests/unictype/test-ctype_blank.c: Likewise.
29287         * tests/unictype/test-ctype_cntrl.c: Likewise.
29288         * tests/unictype/test-ctype_digit.c: Likewise.
29289         * tests/unictype/test-ctype_graph.c: Likewise.
29290         * tests/unictype/test-ctype_lower.c: Likewise.
29291         * tests/unictype/test-ctype_print.c: Likewise.
29292         * tests/unictype/test-ctype_punct.c: Likewise.
29293         * tests/unictype/test-ctype_space.c: Likewise.
29294         * tests/unictype/test-ctype_upper.c: Likewise.
29295         * tests/unictype/test-ctype_xdigit.c: Likewise.
29296         * tests/unictype/test-decdigit.h: Likewise.
29297         * tests/unictype/test-digit.h: Likewise.
29298         * tests/unictype/test-numeric.h: Likewise.
29299         * tests/unictype/test-pr_alphabetic.c: Likewise.
29300         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
29301         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
29302         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
29303         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
29304         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
29305         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
29306         * tests/unictype/test-pr_bidi_control.c: Likewise.
29307         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
29308         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
29309         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
29310         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
29311         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
29312         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
29313         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
29314         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
29315         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
29316         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
29317         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
29318         * tests/unictype/test-pr_combining.c: Likewise.
29319         * tests/unictype/test-pr_composite.c: Likewise.
29320         * tests/unictype/test-pr_currency_symbol.c: Likewise.
29321         * tests/unictype/test-pr_dash.c: Likewise.
29322         * tests/unictype/test-pr_decimal_digit.c: Likewise.
29323         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
29324         * tests/unictype/test-pr_deprecated.c: Likewise.
29325         * tests/unictype/test-pr_diacritic.c: Likewise.
29326         * tests/unictype/test-pr_extender.c: Likewise.
29327         * tests/unictype/test-pr_format_control.c: Likewise.
29328         * tests/unictype/test-pr_grapheme_base.c: Likewise.
29329         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
29330         * tests/unictype/test-pr_grapheme_link.c: Likewise.
29331         * tests/unictype/test-pr_hex_digit.c: Likewise.
29332         * tests/unictype/test-pr_hyphen.c: Likewise.
29333         * tests/unictype/test-pr_id_continue.c: Likewise.
29334         * tests/unictype/test-pr_id_start.c: Likewise.
29335         * tests/unictype/test-pr_ideographic.c: Likewise.
29336         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
29337         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
29338         * tests/unictype/test-pr_ignorable_control.c: Likewise.
29339         * tests/unictype/test-pr_iso_control.c: Likewise.
29340         * tests/unictype/test-pr_join_control.c: Likewise.
29341         * tests/unictype/test-pr_left_of_pair.c: Likewise.
29342         * tests/unictype/test-pr_line_separator.c: Likewise.
29343         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
29344         * tests/unictype/test-pr_lowercase.c: Likewise.
29345         * tests/unictype/test-pr_math.c: Likewise.
29346         * tests/unictype/test-pr_non_break.c: Likewise.
29347         * tests/unictype/test-pr_not_a_character.c: Likewise.
29348         * tests/unictype/test-pr_numeric.c: Likewise.
29349         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
29350         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
29351         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
29352         * tests/unictype/test-pr_other_id_continue.c: Likewise.
29353         * tests/unictype/test-pr_other_id_start.c: Likewise.
29354         * tests/unictype/test-pr_other_lowercase.c: Likewise.
29355         * tests/unictype/test-pr_other_math.c: Likewise.
29356         * tests/unictype/test-pr_other_uppercase.c: Likewise.
29357         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
29358         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
29359         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
29360         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
29361         * tests/unictype/test-pr_private_use.c: Likewise.
29362         * tests/unictype/test-pr_punctuation.c: Likewise.
29363         * tests/unictype/test-pr_quotation_mark.c: Likewise.
29364         * tests/unictype/test-pr_radical.c: Likewise.
29365         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
29366         * tests/unictype/test-pr_soft_dotted.c: Likewise.
29367         * tests/unictype/test-pr_space.c: Likewise.
29368         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
29369         * tests/unictype/test-pr_titlecase.c: Likewise.
29370         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
29371         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
29372         * tests/unictype/test-pr_uppercase.c: Likewise.
29373         * tests/unictype/test-pr_variation_selector.c: Likewise.
29374         * tests/unictype/test-pr_white_space.c: Likewise.
29375         * tests/unictype/test-pr_xid_continue.c: Likewise.
29376         * tests/unictype/test-pr_xid_start.c: Likewise.
29377         * tests/unictype/test-pr_zero_width.c: Likewise.
29378         * tests/unictype/test-sy_c_whitespace.c: Likewise.
29379         * tests/unictype/test-sy_java_whitespace.c: Likewise.
29380
29381 2007-11-12  Bruno Haible  <bruno@clisp.org>
29382
29383         Unicode character classification functions.
29384         * lib/unictype.h: New file.
29385         * modules/unictype/base: New file.
29386         * modules/unictype/category-L: New file.
29387         * modules/unictype/category-Lu: New file.
29388         * modules/unictype/category-Ll: New file.
29389         * modules/unictype/category-Lt: New file.
29390         * modules/unictype/category-Lm: New file.
29391         * modules/unictype/category-Lo: New file.
29392         * modules/unictype/category-M: New file.
29393         * modules/unictype/category-Mn: New file.
29394         * modules/unictype/category-Mc: New file.
29395         * modules/unictype/category-Me: New file.
29396         * modules/unictype/category-N: New file.
29397         * modules/unictype/category-Nd: New file.
29398         * modules/unictype/category-Nl: New file.
29399         * modules/unictype/category-No: New file.
29400         * modules/unictype/category-P: New file.
29401         * modules/unictype/category-Pc: New file.
29402         * modules/unictype/category-Pd: New file.
29403         * modules/unictype/category-Ps: New file.
29404         * modules/unictype/category-Pe: New file.
29405         * modules/unictype/category-Pi: New file.
29406         * modules/unictype/category-Pf: New file.
29407         * modules/unictype/category-Po: New file.
29408         * modules/unictype/category-S: New file.
29409         * modules/unictype/category-Sm: New file.
29410         * modules/unictype/category-Sc: New file.
29411         * modules/unictype/category-Sk: New file.
29412         * modules/unictype/category-So: New file.
29413         * modules/unictype/category-Z: New file.
29414         * modules/unictype/category-Zs: New file.
29415         * modules/unictype/category-Zl: New file.
29416         * modules/unictype/category-Zp: New file.
29417         * modules/unictype/category-C: New file.
29418         * modules/unictype/category-Cc: New file.
29419         * modules/unictype/category-Cf: New file.
29420         * modules/unictype/category-Cs: New file.
29421         * modules/unictype/category-Co: New file.
29422         * modules/unictype/category-Cn: New file.
29423         * modules/unictype/category-or: New file.
29424         * modules/unictype/category-of: New file.
29425         * modules/unictype/category-test: New file.
29426         * modules/unictype/category-test-withtable: New file.
29427         * modules/unictype/category-byname: New file.
29428         * modules/unictype/category-none: New file.
29429         * modules/unictype/category-and: New file.
29430         * modules/unictype/category-and-not: New file.
29431         * modules/unictype/category-name: New file.
29432         * modules/unictype/combining-class: New file.
29433         * modules/unictype/category-all: New file.
29434         * modules/unictype/bidicategory-all: New file.
29435         * modules/unictype/bidicategory-byname: New file.
29436         * modules/unictype/bidicategory-name: New file.
29437         * modules/unictype/bidicategory-of: New file.
29438         * modules/unictype/bidicategory-test: New file.
29439         * modules/unictype/decimal-digit: New file.
29440         * modules/unictype/digit: New file.
29441         * modules/unictype/numeric: New file.
29442         * modules/unictype/mirror: New file.
29443         * modules/unictype/property-white-space: New file.
29444         * modules/unictype/property-alphabetic: New file.
29445         * modules/unictype/property-other-alphabetic: New file.
29446         * modules/unictype/property-not-a-character: New file.
29447         * modules/unictype/property-default-ignorable-code-point: New file.
29448         * modules/unictype/property-other-default-ignorable-code-point: New
29449         file.
29450         * modules/unictype/property-deprecated: New file.
29451         * modules/unictype/property-logical-order-exception: New file.
29452         * modules/unictype/property-variation-selector: New file.
29453         * modules/unictype/property-private-use: New file.
29454         * modules/unictype/property-unassigned-code-value: New file.
29455         * modules/unictype/property-uppercase: New file.
29456         * modules/unictype/property-other-uppercase: New file.
29457         * modules/unictype/property-lowercase: New file.
29458         * modules/unictype/property-other-lowercase: New file.
29459         * modules/unictype/property-titlecase: New file.
29460         * modules/unictype/property-soft-dotted: New file.
29461         * modules/unictype/property-id-start: New file.
29462         * modules/unictype/property-other-id-start: New file.
29463         * modules/unictype/property-id-continue: New file.
29464         * modules/unictype/property-other-id-continue: New file.
29465         * modules/unictype/property-xid-start: New file.
29466         * modules/unictype/property-xid-continue: New file.
29467         * modules/unictype/property-pattern-white-space: New file.
29468         * modules/unictype/property-pattern-syntax: New file.
29469         * modules/unictype/property-join-control: New file.
29470         * modules/unictype/property-grapheme-base: New file.
29471         * modules/unictype/property-grapheme-extend: New file.
29472         * modules/unictype/property-other-grapheme-extend: New file.
29473         * modules/unictype/property-grapheme-link: New file.
29474         * modules/unictype/property-bidi-control: New file.
29475         * modules/unictype/property-bidi-left-to-right: New file.
29476         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
29477         * modules/unictype/property-bidi-arabic-right-to-left: New file.
29478         * modules/unictype/property-bidi-european-digit: New file.
29479         * modules/unictype/property-bidi-eur-num-separator: New file.
29480         * modules/unictype/property-bidi-eur-num-terminator: New file.
29481         * modules/unictype/property-bidi-arabic-digit: New file.
29482         * modules/unictype/property-bidi-common-separator: New file.
29483         * modules/unictype/property-bidi-block-separator: New file.
29484         * modules/unictype/property-bidi-segment-separator: New file.
29485         * modules/unictype/property-bidi-whitespace: New file.
29486         * modules/unictype/property-bidi-non-spacing-mark: New file.
29487         * modules/unictype/property-bidi-boundary-neutral: New file.
29488         * modules/unictype/property-bidi-pdf: New file.
29489         * modules/unictype/property-bidi-embedding-or-override: New file.
29490         * modules/unictype/property-bidi-other-neutral: New file.
29491         * modules/unictype/property-hex-digit: New file.
29492         * modules/unictype/property-ascii-hex-digit: New file.
29493         * modules/unictype/property-ideographic: New file.
29494         * modules/unictype/property-unified-ideograph: New file.
29495         * modules/unictype/property-radical: New file.
29496         * modules/unictype/property-ids-binary-operator: New file.
29497         * modules/unictype/property-ids-trinary-operator: New file.
29498         * modules/unictype/property-zero-width: New file.
29499         * modules/unictype/property-space: New file.
29500         * modules/unictype/property-non-break: New file.
29501         * modules/unictype/property-iso-control: New file.
29502         * modules/unictype/property-format-control: New file.
29503         * modules/unictype/property-dash: New file.
29504         * modules/unictype/property-hyphen: New file.
29505         * modules/unictype/property-punctuation: New file.
29506         * modules/unictype/property-line-separator: New file.
29507         * modules/unictype/property-paragraph-separator: New file.
29508         * modules/unictype/property-quotation-mark: New file.
29509         * modules/unictype/property-sentence-terminal: New file.
29510         * modules/unictype/property-terminal-punctuation: New file.
29511         * modules/unictype/property-currency-symbol: New file.
29512         * modules/unictype/property-math: New file.
29513         * modules/unictype/property-other-math: New file.
29514         * modules/unictype/property-paired-punctuation: New file.
29515         * modules/unictype/property-left-of-pair: New file.
29516         * modules/unictype/property-combining: New file.
29517         * modules/unictype/property-composite: New file.
29518         * modules/unictype/property-decimal-digit: New file.
29519         * modules/unictype/property-numeric: New file.
29520         * modules/unictype/property-diacritic: New file.
29521         * modules/unictype/property-extender: New file.
29522         * modules/unictype/property-ignorable-control: New file.
29523         * modules/unictype/property-test: New file.
29524         * modules/unictype/property-byname: New file.
29525         * modules/unictype/property-all: New file.
29526         * modules/unictype/scripts: New file.
29527         * modules/unictype/scripts-all: New file.
29528         * modules/unictype/block-of: New file.
29529         * modules/unictype/block-test: New file.
29530         * modules/unictype/block-list: New file.
29531         * modules/unictype/block-all: New file.
29532         * modules/unictype/syntax-c-whitespace: New file.
29533         * modules/unictype/syntax-java-whitespace: New file.
29534         * modules/unictype/syntax-c-ident: New file.
29535         * modules/unictype/syntax-java-ident: New file.
29536         * modules/unictype/ctype-alnum: New file.
29537         * modules/unictype/ctype-alpha: New file.
29538         * modules/unictype/ctype-cntrl: New file.
29539         * modules/unictype/ctype-digit: New file.
29540         * modules/unictype/ctype-graph: New file.
29541         * modules/unictype/ctype-lower: New file.
29542         * modules/unictype/ctype-print: New file.
29543         * modules/unictype/ctype-punct: New file.
29544         * modules/unictype/ctype-space: New file.
29545         * modules/unictype/ctype-upper: New file.
29546         * modules/unictype/ctype-xdigit: New file.
29547         * modules/unictype/ctype-blank: New file.
29548         * lib/unictype/bidi_byname.c: New file.
29549         * lib/unictype/bidi_name.c: New file.
29550         * lib/unictype/bidi_of.c: New file.
29551         * lib/unictype/bidi_test.c: New file.
29552         * lib/unictype/bitmap.h: New file.
29553         * lib/unictype/block_test.c: New file.
29554         * lib/unictype/blocks.c: New file.
29555         * lib/unictype/categ_C.c: New file.
29556         * lib/unictype/categ_Cc.c: New file.
29557         * lib/unictype/categ_Cf.c: New file.
29558         * lib/unictype/categ_Cn.c: New file.
29559         * lib/unictype/categ_Co.c: New file.
29560         * lib/unictype/categ_Cs.c: New file.
29561         * lib/unictype/categ_L.c: New file.
29562         * lib/unictype/categ_Ll.c: New file.
29563         * lib/unictype/categ_Lm.c: New file.
29564         * lib/unictype/categ_Lo.c: New file.
29565         * lib/unictype/categ_Lt.c: New file.
29566         * lib/unictype/categ_Lu.c: New file.
29567         * lib/unictype/categ_M.c: New file.
29568         * lib/unictype/categ_Mc.c: New file.
29569         * lib/unictype/categ_Me.c: New file.
29570         * lib/unictype/categ_Mn.c: New file.
29571         * lib/unictype/categ_N.c: New file.
29572         * lib/unictype/categ_Nd.c: New file.
29573         * lib/unictype/categ_Nl.c: New file.
29574         * lib/unictype/categ_No.c: New file.
29575         * lib/unictype/categ_P.c: New file.
29576         * lib/unictype/categ_Pc.c: New file.
29577         * lib/unictype/categ_Pd.c: New file.
29578         * lib/unictype/categ_Pe.c: New file.
29579         * lib/unictype/categ_Pf.c: New file.
29580         * lib/unictype/categ_Pi.c: New file.
29581         * lib/unictype/categ_Po.c: New file.
29582         * lib/unictype/categ_Ps.c: New file.
29583         * lib/unictype/categ_S.c: New file.
29584         * lib/unictype/categ_Sc.c: New file.
29585         * lib/unictype/categ_Sk.c: New file.
29586         * lib/unictype/categ_Sm.c: New file.
29587         * lib/unictype/categ_So.c: New file.
29588         * lib/unictype/categ_Z.c: New file.
29589         * lib/unictype/categ_Zl.c: New file.
29590         * lib/unictype/categ_Zp.c: New file.
29591         * lib/unictype/categ_Zs.c: New file.
29592         * lib/unictype/categ_and.c: New file.
29593         * lib/unictype/categ_and_not.c: New file.
29594         * lib/unictype/categ_byname.c: New file.
29595         * lib/unictype/categ_name.c: New file.
29596         * lib/unictype/categ_none.c: New file.
29597         * lib/unictype/categ_of.c: New file.
29598         * lib/unictype/categ_or.c: New file.
29599         * lib/unictype/categ_test.c: New file.
29600         * lib/unictype/combining.c: New file.
29601         * lib/unictype/ctype_alnum.c: New file.
29602         * lib/unictype/ctype_alpha.c: New file.
29603         * lib/unictype/ctype_blank.c: New file.
29604         * lib/unictype/ctype_cntrl.c: New file.
29605         * lib/unictype/ctype_digit.c: New file.
29606         * lib/unictype/ctype_graph.c: New file.
29607         * lib/unictype/ctype_lower.c: New file.
29608         * lib/unictype/ctype_print.c: New file.
29609         * lib/unictype/ctype_punct.c: New file.
29610         * lib/unictype/ctype_space.c: New file.
29611         * lib/unictype/ctype_upper.c: New file.
29612         * lib/unictype/ctype_xdigit.c: New file.
29613         * lib/unictype/decdigit.c: New file.
29614         * lib/unictype/digit.c: New file.
29615         * lib/unictype/identsyntaxmap.h: New file.
29616         * lib/unictype/mirror.c: New file.
29617         * lib/unictype/numeric.c: New file.
29618         * lib/unictype/pr_alphabetic.c: New file.
29619         * lib/unictype/pr_ascii_hex_digit.c: New file.
29620         * lib/unictype/pr_bidi_arabic_digit.c: New file.
29621         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
29622         * lib/unictype/pr_bidi_block_separator.c: New file.
29623         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
29624         * lib/unictype/pr_bidi_common_separator.c: New file.
29625         * lib/unictype/pr_bidi_control.c: New file.
29626         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
29627         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
29628         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
29629         * lib/unictype/pr_bidi_european_digit.c: New file.
29630         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
29631         * lib/unictype/pr_bidi_left_to_right.c: New file.
29632         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
29633         * lib/unictype/pr_bidi_other_neutral.c: New file.
29634         * lib/unictype/pr_bidi_pdf.c: New file.
29635         * lib/unictype/pr_bidi_segment_separator.c: New file.
29636         * lib/unictype/pr_bidi_whitespace.c: New file.
29637         * lib/unictype/pr_byname.c: New file.
29638         * lib/unictype/pr_byname.gperf: New file.
29639         * lib/unictype/pr_combining.c: New file.
29640         * lib/unictype/pr_composite.c: New file.
29641         * lib/unictype/pr_currency_symbol.c: New file.
29642         * lib/unictype/pr_dash.c: New file.
29643         * lib/unictype/pr_decimal_digit.c: New file.
29644         * lib/unictype/pr_default_ignorable_code_point.c: New file.
29645         * lib/unictype/pr_deprecated.c: New file.
29646         * lib/unictype/pr_diacritic.c: New file.
29647         * lib/unictype/pr_extender.c: New file.
29648         * lib/unictype/pr_format_control.c: New file.
29649         * lib/unictype/pr_grapheme_base.c: New file.
29650         * lib/unictype/pr_grapheme_extend.c: New file.
29651         * lib/unictype/pr_grapheme_link.c: New file.
29652         * lib/unictype/pr_hex_digit.c: New file.
29653         * lib/unictype/pr_hyphen.c: New file.
29654         * lib/unictype/pr_id_continue.c: New file.
29655         * lib/unictype/pr_id_start.c: New file.
29656         * lib/unictype/pr_ideographic.c: New file.
29657         * lib/unictype/pr_ids_binary_operator.c: New file.
29658         * lib/unictype/pr_ids_trinary_operator.c: New file.
29659         * lib/unictype/pr_ignorable_control.c: New file.
29660         * lib/unictype/pr_iso_control.c: New file.
29661         * lib/unictype/pr_join_control.c: New file.
29662         * lib/unictype/pr_left_of_pair.c: New file.
29663         * lib/unictype/pr_line_separator.c: New file.
29664         * lib/unictype/pr_logical_order_exception.c: New file.
29665         * lib/unictype/pr_lowercase.c: New file.
29666         * lib/unictype/pr_math.c: New file.
29667         * lib/unictype/pr_non_break.c: New file.
29668         * lib/unictype/pr_not_a_character.c: New file.
29669         * lib/unictype/pr_numeric.c: New file.
29670         * lib/unictype/pr_other_alphabetic.c: New file.
29671         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
29672         * lib/unictype/pr_other_grapheme_extend.c: New file.
29673         * lib/unictype/pr_other_id_continue.c: New file.
29674         * lib/unictype/pr_other_id_start.c: New file.
29675         * lib/unictype/pr_other_lowercase.c: New file.
29676         * lib/unictype/pr_other_math.c: New file.
29677         * lib/unictype/pr_other_uppercase.c: New file.
29678         * lib/unictype/pr_paired_punctuation.c: New file.
29679         * lib/unictype/pr_paragraph_separator.c: New file.
29680         * lib/unictype/pr_pattern_syntax.c: New file.
29681         * lib/unictype/pr_pattern_white_space.c: New file.
29682         * lib/unictype/pr_private_use.c: New file.
29683         * lib/unictype/pr_punctuation.c: New file.
29684         * lib/unictype/pr_quotation_mark.c: New file.
29685         * lib/unictype/pr_radical.c: New file.
29686         * lib/unictype/pr_sentence_terminal.c: New file.
29687         * lib/unictype/pr_soft_dotted.c: New file.
29688         * lib/unictype/pr_space.c: New file.
29689         * lib/unictype/pr_terminal_punctuation.c: New file.
29690         * lib/unictype/pr_test.c: New file.
29691         * lib/unictype/pr_titlecase.c: New file.
29692         * lib/unictype/pr_unassigned_code_value.c: New file.
29693         * lib/unictype/pr_unified_ideograph.c: New file.
29694         * lib/unictype/pr_uppercase.c: New file.
29695         * lib/unictype/pr_variation_selector.c: New file.
29696         * lib/unictype/pr_white_space.c: New file.
29697         * lib/unictype/pr_xid_continue.c: New file.
29698         * lib/unictype/pr_xid_start.c: New file.
29699         * lib/unictype/pr_zero_width.c: New file.
29700         * lib/unictype/scripts.c: New file.
29701         * lib/unictype/sy_c_ident.c: New file.
29702         * lib/unictype/sy_c_whitespace.c: New file.
29703         * lib/unictype/sy_java_ident.c: New file.
29704         * lib/unictype/sy_java_whitespace.c: New file.
29705
29706         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
29707         Unicode 5.0.0.
29708         * lib/unictype/blocks.h: Likewise.
29709         * lib/unictype/categ_C.h: Likewise.
29710         * lib/unictype/categ_Cc.h: Likewise.
29711         * lib/unictype/categ_Cf.h: Likewise.
29712         * lib/unictype/categ_Cn.h: Likewise.
29713         * lib/unictype/categ_Co.h: Likewise.
29714         * lib/unictype/categ_Cs.h: Likewise.
29715         * lib/unictype/categ_L.h: Likewise.
29716         * lib/unictype/categ_Ll.h: Likewise.
29717         * lib/unictype/categ_Lm.h: Likewise.
29718         * lib/unictype/categ_Lo.h: Likewise.
29719         * lib/unictype/categ_Lt.h: Likewise.
29720         * lib/unictype/categ_Lu.h: Likewise.
29721         * lib/unictype/categ_M.h: Likewise.
29722         * lib/unictype/categ_Mc.h: Likewise.
29723         * lib/unictype/categ_Me.h: Likewise.
29724         * lib/unictype/categ_Mn.h: Likewise.
29725         * lib/unictype/categ_N.h: Likewise.
29726         * lib/unictype/categ_Nd.h: Likewise.
29727         * lib/unictype/categ_Nl.h: Likewise.
29728         * lib/unictype/categ_No.h: Likewise.
29729         * lib/unictype/categ_P.h: Likewise.
29730         * lib/unictype/categ_Pc.h: Likewise.
29731         * lib/unictype/categ_Pd.h: Likewise.
29732         * lib/unictype/categ_Pe.h: Likewise.
29733         * lib/unictype/categ_Pf.h: Likewise.
29734         * lib/unictype/categ_Pi.h: Likewise.
29735         * lib/unictype/categ_Po.h: Likewise.
29736         * lib/unictype/categ_Ps.h: Likewise.
29737         * lib/unictype/categ_S.h: Likewise.
29738         * lib/unictype/categ_Sc.h: Likewise.
29739         * lib/unictype/categ_Sk.h: Likewise.
29740         * lib/unictype/categ_Sm.h: Likewise.
29741         * lib/unictype/categ_So.h: Likewise.
29742         * lib/unictype/categ_Z.h: Likewise.
29743         * lib/unictype/categ_Zl.h: Likewise.
29744         * lib/unictype/categ_Zp.h: Likewise.
29745         * lib/unictype/categ_Zs.h: Likewise.
29746         * lib/unictype/categ_of.h: Likewise.
29747         * lib/unictype/combining.h: Likewise.
29748         * lib/unictype/ctype_alnum.h: Likewise.
29749         * lib/unictype/ctype_alpha.h: Likewise.
29750         * lib/unictype/ctype_blank.h: Likewise.
29751         * lib/unictype/ctype_cntrl.h: Likewise.
29752         * lib/unictype/ctype_digit.h: Likewise.
29753         * lib/unictype/ctype_graph.h: Likewise.
29754         * lib/unictype/ctype_lower.h: Likewise.
29755         * lib/unictype/ctype_print.h: Likewise.
29756         * lib/unictype/ctype_punct.h: Likewise.
29757         * lib/unictype/ctype_space.h: Likewise.
29758         * lib/unictype/ctype_upper.h: Likewise.
29759         * lib/unictype/ctype_xdigit.h: Likewise.
29760         * lib/unictype/decdigit.h: Likewise.
29761         * lib/unictype/digit.h: Likewise.
29762         * lib/unictype/mirror.h: Likewise.
29763         * lib/unictype/numeric.h: Likewise.
29764         * lib/unictype/pr_alphabetic.h: Likewise.
29765         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
29766         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
29767         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
29768         * lib/unictype/pr_bidi_block_separator.h: Likewise.
29769         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
29770         * lib/unictype/pr_bidi_common_separator.h: Likewise.
29771         * lib/unictype/pr_bidi_control.h: Likewise.
29772         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
29773         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
29774         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
29775         * lib/unictype/pr_bidi_european_digit.h: Likewise.
29776         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
29777         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
29778         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
29779         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
29780         * lib/unictype/pr_bidi_pdf.h: Likewise.
29781         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
29782         * lib/unictype/pr_bidi_whitespace.h: Likewise.
29783         * lib/unictype/pr_combining.h: Likewise.
29784         * lib/unictype/pr_composite.h: Likewise.
29785         * lib/unictype/pr_currency_symbol.h: Likewise.
29786         * lib/unictype/pr_dash.h: Likewise.
29787         * lib/unictype/pr_decimal_digit.h: Likewise.
29788         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
29789         * lib/unictype/pr_deprecated.h: Likewise.
29790         * lib/unictype/pr_diacritic.h: Likewise.
29791         * lib/unictype/pr_extender.h: Likewise.
29792         * lib/unictype/pr_format_control.h: Likewise.
29793         * lib/unictype/pr_grapheme_base.h: Likewise.
29794         * lib/unictype/pr_grapheme_extend.h: Likewise.
29795         * lib/unictype/pr_grapheme_link.h: Likewise.
29796         * lib/unictype/pr_hex_digit.h: Likewise.
29797         * lib/unictype/pr_hyphen.h: Likewise.
29798         * lib/unictype/pr_id_continue.h: Likewise.
29799         * lib/unictype/pr_id_start.h: Likewise.
29800         * lib/unictype/pr_ideographic.h: Likewise.
29801         * lib/unictype/pr_ids_binary_operator.h: Likewise.
29802         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
29803         * lib/unictype/pr_ignorable_control.h: Likewise.
29804         * lib/unictype/pr_iso_control.h: Likewise.
29805         * lib/unictype/pr_join_control.h: Likewise.
29806         * lib/unictype/pr_left_of_pair.h: Likewise.
29807         * lib/unictype/pr_line_separator.h: Likewise.
29808         * lib/unictype/pr_logical_order_exception.h: Likewise.
29809         * lib/unictype/pr_lowercase.h: Likewise.
29810         * lib/unictype/pr_math.h: Likewise.
29811         * lib/unictype/pr_non_break.h: Likewise.
29812         * lib/unictype/pr_not_a_character.h: Likewise.
29813         * lib/unictype/pr_numeric.h: Likewise.
29814         * lib/unictype/pr_other_alphabetic.h: Likewise.
29815         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
29816         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
29817         * lib/unictype/pr_other_id_continue.h: Likewise.
29818         * lib/unictype/pr_other_id_start.h: Likewise.
29819         * lib/unictype/pr_other_lowercase.h: Likewise.
29820         * lib/unictype/pr_other_math.h: Likewise.
29821         * lib/unictype/pr_other_uppercase.h: Likewise.
29822         * lib/unictype/pr_paired_punctuation.h: Likewise.
29823         * lib/unictype/pr_paragraph_separator.h: Likewise.
29824         * lib/unictype/pr_pattern_syntax.h: Likewise.
29825         * lib/unictype/pr_pattern_white_space.h: Likewise.
29826         * lib/unictype/pr_private_use.h: Likewise.
29827         * lib/unictype/pr_punctuation.h: Likewise.
29828         * lib/unictype/pr_quotation_mark.h: Likewise.
29829         * lib/unictype/pr_radical.h: Likewise.
29830         * lib/unictype/pr_sentence_terminal.h: Likewise.
29831         * lib/unictype/pr_soft_dotted.h: Likewise.
29832         * lib/unictype/pr_space.h: Likewise.
29833         * lib/unictype/pr_terminal_punctuation.h: Likewise.
29834         * lib/unictype/pr_titlecase.h: Likewise.
29835         * lib/unictype/pr_unassigned_code_value.h: Likewise.
29836         * lib/unictype/pr_unified_ideograph.h: Likewise.
29837         * lib/unictype/pr_uppercase.h: Likewise.
29838         * lib/unictype/pr_variation_selector.h: Likewise.
29839         * lib/unictype/pr_white_space.h: Likewise.
29840         * lib/unictype/pr_xid_continue.h: Likewise.
29841         * lib/unictype/pr_xid_start.h: Likewise.
29842         * lib/unictype/pr_zero_width.h: Likewise.
29843         * lib/unictype/scripts.h: Likewise.
29844         * lib/unictype/scripts_byname.gperf: Likewise.
29845         * lib/unictype/sy_c_ident.h: Likewise.
29846         * lib/unictype/sy_c_whitespace.h: Likewise.
29847         * lib/unictype/sy_java_ident.h: Likewise.
29848         * lib/unictype/sy_java_whitespace.h: Likewise.
29849
29850         * lib/unictype/Makefile: New file.
29851         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
29852         glibc.
29853         * lib/unictype/3level.h: New file, copied from glibc.
29854         * lib/unictype/3levelbit.h: New file.
29855
29856 2007-11-11  Bruno Haible  <bruno@clisp.org>
29857
29858         * modules/gperf: New file.
29859         * modules/iconv_open (Depends-on): Add it.
29860         (Makefile.am): Remove the GPERF definition.
29861
29862 2007-11-11  Bruno Haible  <bruno@clisp.org>
29863
29864         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
29865         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
29866
29867 2007-11-11  Bruno Haible  <bruno@clisp.org>
29868
29869         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
29870         (usage): Remove function.
29871
29872 2007-11-11  Bruno Haible  <bruno@clisp.org>
29873
29874         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
29875         gl_FUNC_CEILF_LIBS.
29876         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
29877         gl_FUNC_CEIL_LIBS.
29878         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
29879         gl_FUNC_CEILL_LIBS.
29880         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
29881         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
29882         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
29883
29884 2007-11-11  Bruno Haible  <bruno@clisp.org>
29885
29886         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
29887         roundf were declared but do not exist on functions.
29888         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
29889         roundl were declared but do not exist on functions.
29890         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
29891         HAVE_FLOORL_AND_CEILL, respectively.
29892         Needed for Sun C on Solaris 10.
29893
29894 2007-11-11  Bruno Haible  <bruno@clisp.org>
29895
29896         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
29897         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
29898         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
29899         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
29900         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
29901         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
29902         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
29903         HAVE_DECL_ROUNDF.
29904         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
29905         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
29906         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
29907         of HAVE_DECL_ROUND*.
29908         * modules/math (Makefile.am): Update.
29909
29910 2007-11-10  Bruno Haible  <bruno@clisp.org>
29911
29912         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
29913         ptrdiff_t as m4/intl.m4.
29914
29915 2007-11-10  Jim Meyering  <meyering@redhat.com>
29916
29917         Avoid link failure for the argmatch test.
29918         * tests/test-argmatch.c (usage): Define function to avoid a link
29919         failure: argmatch_die requires a usage function.
29920
29921 2007-11-09  Bruno Haible  <bruno@clisp.org>
29922
29923         * doc/functions/snprintf.texi: Mention BeOS deficiency.
29924         * doc/functions/vsnprintf.texi: Likewise.
29925         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
29926         with a size argument < 2.
29927
29928 2007-11-09  Bruno Haible  <bruno@clisp.org>
29929
29930         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
29931         buffer. Fixes an inefficiency introduced on 2007-11-03.
29932
29933 2007-11-09  Bruno Haible  <bruno@clisp.org>
29934
29935         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
29936         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
29937
29938 2007-11-08  Jim Meyering  <meyering@redhat.com>
29939
29940         Change cache variable name prefix "jm_" to "gl_" everywhere.
29941         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
29942         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
29943         * m4/uptime.m4: s/gl_/jm_/
29944
29945 2007-11-07  Bruno Haible  <bruno@clisp.org>
29946
29947         Update to GNU gettext 0.17.
29948         * m4/intl.m4: Update to GNU gettext 0.17.
29949         * m4/po.m4: Likewise.
29950         * modules/gettext (Files): Remove m4/ulonglong.m4.
29951         (configure.ac): Require gettext infrastructure from version 0.17.
29952
29953 2007-11-06  Bruno Haible  <bruno@clisp.org>
29954
29955         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
29956         symbolic values are not defined in a public header.
29957         * lib/freadable.c (freadable) [QNX]: Likewise.
29958         * lib/freadahead.c (freadahead) [QNX]: Likewise.
29959         * lib/freading.c (freading) [QNX]: Likewise.
29960         * lib/fseterr.c (fseterr) [QNX]: Likewise.
29961         * lib/fwritable.c (fwritable) [QNX]: Likewise.
29962         * lib/fwriting.c (fwriting) [QNX]: Likewise.
29963         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
29964         Reported by Alain Magloire.
29965
29966         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
29967
29968 2007-11-05  Bruno Haible  <bruno@clisp.org>
29969
29970         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
29971         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
29972         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
29973         Reported by Eric Blake.
29974
29975 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29976             Bruno Haible  <bruno@clisp.org>
29977
29978         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
29979         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
29980         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
29981         (malloc): Undefine also before including <stdlib.h>.
29982         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
29983         Needed on OSF/1 4.0.
29984
29985 2007-11-05  Jim Meyering  <meyering@redhat.com>
29986
29987         git-version-gen: sync from coreutils.
29988         * build-aux/git-version-gen: Add comments.
29989         Change the first '-' to '.' in the snapshot version string,
29990         e.g., 6.9-377-08144 -> 6.9.377-08144
29991         Remove first parameter.
29992         Don't declare a version "-dirty" merely because a time
29993         stamp has changed.
29994
29995 2007-11-04  Bruno Haible  <bruno@clisp.org>
29996
29997         * lib/lock.h: Protect all macro definitions containing an 'if'
29998         statement through a "do { ... } while (0)".
29999         * lib/tls.h: Likewise.
30000
30001 2007-11-04  Bruno Haible  <bruno@clisp.org>
30002
30003         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
30004
30005 2007-11-04  Bruno Haible  <bruno@clisp.org>
30006
30007         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
30008         * modules/fprintf-posix (Depends-on): Add nocrash.
30009         * modules/snprintf-posix (Depends-on): Likewise.
30010         * modules/sprintf-posix (Depends-on): Likewise.
30011         * modules/vasnprintf-posix (Depends-on): Likewise.
30012         * modules/vasprintf-posix (Depends-on): Likewise.
30013         * modules/vfprintf-posix (Depends-on): Likewise.
30014         * modules/vsnprintf-posix (Depends-on): Likewise.
30015         * modules/vsprintf-posix (Depends-on): Likewise.
30016         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
30017         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
30018         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
30019         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
30020         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
30021         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
30022         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
30023
30024 2007-11-04  Bruno Haible  <bruno@clisp.org>
30025
30026         * modules/nocrash: New file.
30027         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
30028         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
30029
30030 2007-11-04  Bruno Haible  <bruno@clisp.org>
30031
30032         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
30033         precision handling.
30034         * tests/test-vasprintf-posix.c (test_function): Likewise.
30035         * tests/test-snprintf-posix.h (test_function): Likewise.
30036         * tests/test-sprintf-posix.h (test_function): Likewise.
30037
30038         Fix *printf behaviour for large precisions on mingw and BeOS.
30039         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
30040         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
30041         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
30042         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
30043         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30044         gl_PRINTF_PRECISION and test its result. Invoke
30045         gl_PREREQ_VASNPRINTF_PRECISION.
30046         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30047         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30048         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30049         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30050         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30051         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30052         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30053         * doc/functions/fprintf.texi: Update.
30054         * doc/functions/printf.texi: Update.
30055         * doc/functions/snprintf.texi: Update.
30056         * doc/functions/sprintf.texi: Update.
30057         * doc/functions/vfprintf.texi: Update.
30058         * doc/functions/vprintf.texi: Update.
30059         * doc/functions/vsnprintf.texi: Update.
30060         * doc/functions/vsprintf.texi: Update.
30061
30062 2007-11-04  Bruno Haible  <bruno@clisp.org>
30063
30064         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
30065
30066 2007-11-04  Bruno Haible  <bruno@clisp.org>
30067
30068         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
30069         Reported by Sylvain Beucler <beuc@gnu.org>.
30070
30071 2007-11-03  Bruno Haible  <bruno@clisp.org>
30072
30073         * tests/test-fprintf-posix2.sh: New file.
30074         * tests/test-fprintf-posix2.c: New file.
30075         * modules/fprintf-posix-tests (Files): Add them.
30076         (TESTS): Add test-fprintf-posix2.sh.
30077         (configure.ac): Check for getrlimit and setrlimit.
30078         (check_PROGRAMS): Add test-fprintf-posix2.
30079
30080         * tests/test-printf-posix2.sh: New file.
30081         * tests/test-printf-posix2.c: New file.
30082         * modules/printf-posix-tests (Files): Add them.
30083         (TESTS): Add test-printf-posix2.sh.
30084         (configure.ac): Check for getrlimit and setrlimit.
30085         (check_PROGRAMS): Add test-printf-posix2.
30086
30087         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
30088         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
30089         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
30090         (decode_double): New function, copied from decode_long_double.
30091         (scale10_round_decimal_decoded): New function, extracted from
30092         scale10_round_decimal_long_double.
30093         (scale10_round_decimal_long_double): Use it.
30094         (scale10_round_decimal_double): New function.
30095         (floorlog10): New function.
30096         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
30097         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
30098         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
30099         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30100         gl_PRINTF_ENOMEM and test its result. Invoke
30101         gl_PREREQ_VASNPRINTF_ENOMEM.
30102         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30103         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30104         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30105         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30106         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30107         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30108         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30109         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
30110         * modules/snprintf-posix (Depends-on): Likewise.
30111         * modules/sprintf-posix (Depends-on): Likewise.
30112         * modules/vasnprintf-posix (Depends-on): Likewise.
30113         * modules/vasprintf-posix (Depends-on): Likewise.
30114         * modules/vfprintf-posix (Depends-on): Likewise.
30115         * modules/vsnprintf-posix (Depends-on): Likewise.
30116         * modules/vsprintf-posix (Depends-on): Likewise.
30117         * doc/functions/fprintf.texi: Update.
30118         * doc/functions/printf.texi: Update.
30119         * doc/functions/snprintf.texi: Update.
30120         * doc/functions/sprintf.texi: Update.
30121         * doc/functions/vfprintf.texi: Update.
30122         * doc/functions/vprintf.texi: Update.
30123         * doc/functions/vsnprintf.texi: Update.
30124         * doc/functions/vsprintf.texi: Update.
30125
30126 2007-11-03  Bruno Haible  <bruno@clisp.org>
30127
30128         * modules/frexp-nolibm-tests: New file.
30129
30130         * modules/frexp-nolibm: New file.
30131         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
30132
30133 2007-11-03  Bruno Haible  <bruno@clisp.org>
30134
30135         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
30136         value is C99 compliant.
30137         Needed for OSF/1 5.1.
30138
30139 2007-11-03  Bruno Haible  <bruno@clisp.org>
30140
30141         Fix out-of-memory handling of vasnprintf.
30142         * lib/printf-parse.c: Include <errno.h>.
30143         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
30144         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
30145         is already set.
30146
30147 2007-11-02  Eric Blake  <ebb9@byu.net>
30148
30149         Fix tests on cygwin.
30150         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
30151
30152 2007-11-01  Bruno Haible  <bruno@clisp.org>
30153
30154         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
30155         warning.
30156         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
30157         needed for POSIX compatibility.
30158
30159 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
30160
30161         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
30162         for compatibility with GNU.
30163
30164 2007-11-01  Bruno Haible  <bruno@clisp.org>
30165
30166         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
30167         (putenv): Renamed from rpl_putenv. Change argument type from
30168         'const char *' to 'char *'.
30169         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
30170         of defining putenv in config.h, just set REPLACE_PUTENV.
30171         * modules/putenv (Depends-on): Add stdlib.
30172         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
30173         (Include): Use <stdlib.h>.
30174         * lib/stdlib.in.h (putenv): New declaration.
30175         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
30176         REPLACE_PUTENV.
30177         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
30178         REPLACE_PUTENV.
30179         Needed for MacOS X 10.5.0.
30180         Reported by Peter O'Gorman <peter@pogma.com>.
30181
30182 2007-11-01  Jim Meyering  <meyering@redhat.com>
30183
30184         Treat an empty date string exactly like "0".
30185         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
30186         if the remaining date string (to be parsed) is empty, use "0".
30187         Reported by Mischa Molhoek and discussed in this thread:
30188         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
30189
30190 2007-10-31  Bruno Haible  <bruno@clisp.org>
30191
30192         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
30193         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
30194         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
30195         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
30196         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
30197         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
30198
30199 2007-10-31  Bruno Haible  <bruno@clisp.org>
30200
30201         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
30202         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
30203         (AC_TYPE_LONG_LONG_INT): Use it.
30204         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
30205         it as well.
30206         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
30207         to m4/longlong.m4.
30208         * modules/stdint (Files): Remove m4/ulonglong.m4.
30209         * modules/strtoull (Files): Use m4/longlong.m4 instead of
30210         m4/ulonglong.m4.
30211         * modules/strtoumax (Files): Likewise.
30212
30213 2007-10-30  Bruno Haible  <bruno@clisp.org>
30214
30215         * modules/xvasprintf-posix: New file.
30216         Suggested by Eric Blake.
30217
30218 2007-10-30  Bruno Haible  <bruno@clisp.org>
30219
30220         * modules/xprintf-posix-tests: New file.
30221         * tests/test-xprintf-posix.sh: New file.
30222         * tests/test-xprintf-posix.c: New file.
30223         * tests/test-xfprintf-posix.c: New file.
30224
30225         * modules/xprintf-posix: New file.
30226
30227 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30228
30229         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
30230         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
30231         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
30232
30233 2007-10-29  Bruno Haible  <bruno@clisp.org>
30234
30235         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
30236         contain the special marker '_cv_'.
30237         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
30238         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
30239         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
30240         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
30241         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
30242         Reported by Ralf Wildenhues.
30243
30244 2007-10-29  Bruno Haible  <bruno@clisp.org>
30245
30246         * gnulib-tool (func_import): When --lgpl is not specified, set
30247         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
30248         GPLv3.
30249         Reported by Simon Josefsson.
30250
30251 2007-10-28  Bruno Haible  <bruno@clisp.org>
30252
30253         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
30254         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
30255         HAVE_DECL_ISFINITE.
30256         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
30257         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
30258         HAVE_DECL_ISFINITE.
30259
30260 2007-10-28  Bruno Haible  <bruno@clisp.org>
30261
30262         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
30263         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
30264
30265 2007-10-28  Bruno Haible  <bruno@clisp.org>
30266
30267         Fix link errors with Sun C 5.0 on Solaris 10.
30268         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
30269         function is declared but not present in the compiler's libm.
30270         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
30271         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
30272         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
30273         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
30274         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
30275         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
30276         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
30277         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
30278         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
30279         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
30280         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
30281         HAVE_DECL_FLOORL.
30282
30283 2007-10-28  Bruno Haible  <bruno@clisp.org>
30284
30285         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
30286         gl_FUNC_FLOORL. Cache the result.
30287         (gl_FUNC_FLOORL): Use it.
30288         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
30289         gl_FUNC_CEILL. Cache the result.
30290         (gl_FUNC_CEILL): Use it.
30291
30292         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
30293         gl_FUNC_FLOOR. Cache the result.
30294         (gl_FUNC_FLOOR): Use it.
30295         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
30296         gl_FUNC_CEIL. Cache the result.
30297         (gl_FUNC_CEIL): Use it.
30298
30299         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
30300         gl_FUNC_FLOORF. Cache the result.
30301         (gl_FUNC_FLOORF): Use it.
30302         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
30303         gl_FUNC_CEILF. Cache the result.
30304         (gl_FUNC_CEILF): Use it.
30305
30306 2007-10-28  Bruno Haible  <bruno@clisp.org>
30307
30308         * gnulib-tool: Allow specifying the LGPL version number through
30309         --lgpl=2 or --lgpl=3.
30310         (func_usage): Document --lgpl with argument.
30311         Handle --lgpl=... arguments.
30312         (func_import): Recognize also gl_LGPL calls with an argument. When
30313         --lgpl=2 is used and the module's license is just LGPL, report an
30314         error. Set sed_transform_lib_file according to the lgpl variable. In
30315         the generated files, use --lgpl or gl_LGPL invocations with argument,
30316         if necessary.
30317         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
30318         an LGPv2+ license.
30319         * doc/gnulib-tool.texi (Modified imports): Update explanation of
30320         gl_LGPL macro.
30321
30322 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30323             Bruno Haible  <bruno@clisp.org>
30324
30325         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
30326         (u16_uctomb_aux): Likewise.
30327         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
30328         !HAVE_INLINE.
30329         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
30330
30331 2007-10-28  Bruno Haible  <bruno@clisp.org>
30332
30333         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
30334         Invoke AM_GETTEXT_OPTION if it exists.
30335         * modules/vasprintf: Likewise.
30336         * modules/verror: Likewise.
30337         * modules/xprintf: Likewise.
30338         * modules/xvasprintf: Likewise.
30339
30340 2007-10-27  Ben Pfaff  <blp@gnu.org>
30341
30342         * lib/math.in.h: Define isfinite macro and prototypes for
30343         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
30344         implementations.
30345         * m4/math_h.m4: New substitutions for isfinite module.
30346         * lib/isfinite.c: New file.
30347         * m4/isfinite.m4: New file.
30348         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
30349         * modules/isfinite: New file.
30350         * modules/isfinite-tests: New file.
30351         * tests/tests-isfinite.c: New file.
30352         * doc/functions/isfinite.texi: Mention isfinite module.
30353         * MODULES.html.sh: Mention new module.
30354
30355 2007-10-27  Ben Pfaff  <blp@gnu.org>
30356
30357         Ralf Wildenhues reported that Tru64 4.0D declares the round
30358         functions but does not have definitions.
30359         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
30360         cannot be found in any library, set the output variable to
30361         "missing" instead of "".
30362         * m4/round.m4: Also use our substitute if we cannot find round in
30363         any library, even if it is declared.
30364         * m4/roundf.m4: Likewise for roundf.
30365         * m4/roundl.m4: Likewise for roundl.
30366         * lib/math.in.h: Undefine roundf, round, roundl before defining
30367         their replacements, to allow for hypothetical systems where these
30368         may be defined as macros but not available in libraries.
30369
30370 2007-10-27  Bruno Haible  <bruno@clisp.org>
30371
30372         * doc/gnulib.texi: Invoke @firstparagraphindent.
30373         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
30374         changes in gnulib.
30375         (Source changes): New section.
30376
30377 2007-10-26  Bruno Haible  <bruno@clisp.org>
30378
30379         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
30380         borrowed from autoconf.
30381
30382 2007-10-26  Bruno Haible  <bruno@clisp.org>
30383
30384         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
30385         strerror returned the empty string. Needed on HP-UX 11.00.
30386
30387 2007-10-24  Micah Cowan  <micah@cowan.name>
30388
30389         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
30390         * build-aux/bootstrap: Remove support for now-unnecessary option,
30391         --cvs-user, and envvars CVS_USER, CVS_RSH.
30392
30393 2007-10-24  Jim Meyering  <meyering@redhat.com>
30394
30395         Avoid diagnostics from sha1sum when there is no cached checksum.
30396         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
30397         if the po.s1 file hasn't been created yet.
30398
30399         * build-aux/bootstrap: Sync from coreutils:
30400         2007-10-24  Jim Meyering  <meyering@redhat.com>
30401         Get gnulib from the git repository, not from an obsolete cvs one.
30402         * build-aux/bootstrap: Suggestion from Micah Cowan.
30403         2007-10-04  Jim Meyering  <jim@meyering.net>
30404         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
30405         (update_po_files): Work also when there are no .po files in po/.
30406
30407 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
30408
30409         * README: Append ".git" to git and cg examples.
30410         Problem reported by Benoit Sigoure.
30411
30412 2007-10-23  Micah Cowan  <micah@cowan.name>
30413
30414         * users.txt: Add wget.
30415
30416 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30417
30418         Fix linking of some unistdio tests on FreeBSD.
30419         * modules/unistdio/u16-vsnprintf-tests
30420         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
30421         * modules/unistdio/u16-vsprintf-tests
30422         (test_u16_vsnprintf1_LDADD): Likewise.
30423         * modules/unistdio/u32-vsnprintf-tests
30424         (test_u32_vsnprintf1_LDADD): Likewise.
30425         * modules/unistdio/u32-vsprintf-tests
30426         (test_u32_vsprintf1_LDADD): Likewise.
30427         * modules/unistdio/u8-vsnprintf-tests
30428         (test_u8_vsnprintf1_LDADD): Likewise.
30429         * modules/unistdio/u8-vsprintf-tests
30430         (test_u8_vsprintf1_LDADD): Likewise.
30431         * modules/unistdio/ulc-vsnprintf-tests
30432         (test_ulc_vsnprintf1_LDADD): Likewise.
30433         * modules/unistdio/ulc-vsprintf-tests
30434         (test_ulc_vsprintf1_LDADD): Likewise.
30435
30436         Fix linking of some uniconv tests on FreeBSD.
30437         * modules/uniconv/u16-conv-from-enc-tests
30438         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
30439         * modules/uniconv/u16-conv-to-enc-tests
30440         (test_u16_conv_to_enc_LDADD): Likewise.
30441         * modules/uniconv/u16-strconv-from-enc-tests
30442         (test_u16_strconv_from_enc_LDADD): Likewise.
30443         * modules/uniconv/u16-strconv-to-enc-tests
30444         (test_u16_strconv_to_enc_LDADD): Likewise.
30445         * modules/uniconv/u32-conv-from-enc-tests
30446         (test_u32_conv_from_enc_LDADD): Likewise.
30447         * modules/uniconv/u32-conv-to-enc-tests
30448         (test_u32_conv_to_enc_LDADD): Likewise.
30449         * modules/uniconv/u32-strconv-from-enc-tests
30450         (test_u32_strconv_from_enc_LDADD): Likewise.
30451         * modules/uniconv/u32-strconv-to-enc-tests
30452         (test_u32_strconv_to_enc_LDADD): Likewise.
30453         * modules/uniconv/u8-conv-from-enc-tests
30454         (test_u8_conv_from_enc_LDADD): Likewise.
30455         * modules/uniconv/u8-conv-to-enc-tests
30456         (test_u8_conv_to_enc_LDADD): Likewise.
30457         * modules/uniconv/u8-strconv-from-enc-tests
30458         (test_u8_strconv_from_enc_LDADD): Likewise.
30459         * modules/uniconv/u8-strconv-to-enc-tests
30460         (test_u8_strconv_to_enc_LDADD): Likewise.
30461
30462 2007-10-22  Bruno Haible  <bruno@clisp.org>
30463
30464         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
30465         size.
30466
30467 2007-10-22  Eric Blake  <ebb9@byu.net>
30468
30469         Tweak x*printf documentation.
30470         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
30471         variable name and comments.
30472         Suggested by Bruno Haible.
30473
30474 2007-10-22  Bruno Haible  <bruno@clisp.org>
30475
30476         * lib/acl.c (copy_acl): Fix file name in comment.
30477
30478 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
30479
30480         Fix Tru64 problem with stdbool.h.
30481         * lib/stdbool.in.h (false, true):
30482         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
30483         Don't declare as an enum in this situation; it runs afoul of Tru64.
30484         Problem reported by Steven M. Schweda in
30485         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
30486
30487 2007-10-22  Eric Blake  <ebb9@byu.net>
30488
30489         Also wrap vf?printf.
30490         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
30491         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
30492         (xvprintf, xvfprintf): New functions.
30493
30494 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30495
30496         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
30497         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
30498
30499         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
30500         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
30501
30502 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
30503
30504         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
30505         by Bruno Haible.
30506
30507 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30508
30509         * lib/getloadavg.c
30510         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
30511         Undef `sys' after including sys/table.h, for Tru64 4.0D.
30512
30513         * tests/test-i-ring.c: Work for C89.
30514
30515 2007-10-22  Bruno Haible  <bruno@clisp.org>
30516
30517         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
30518         -1u, in preprocessor expression, so that we don't test for the bug
30519         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
30520         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
30521
30522 2007-10-22  Eric Blake  <ebb9@byu.net>
30523
30524         * tests/test-yesno.sh: Silence stderr during test.
30525
30526 2007-10-22  Simon Josefsson  <simon@josefsson.org>
30527
30528         * modules/crypto/gc-camellia: New file.
30529
30530         * m4/gc-camellia.m4: New file.
30531
30532         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
30533
30534         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
30535
30536 2007-10-22  Simon Josefsson  <simon@josefsson.org>
30537
30538         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
30539         --help to stdout.  Reported by sms@antinode.org (Steven
30540         M. Schweda).
30541
30542 2007-10-22  Simon Josefsson  <simon@josefsson.org>
30543
30544         * users.txt: Fix link to libksba.
30545
30546 2007-10-21  Ben Pfaff  <blp@gnu.org>
30547
30548         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
30549         round.c roundf implementation that depends on floorf and ceilf to
30550         be tested unconditionally.
30551
30552 2007-10-21  Ben Pfaff  <blp@gnu.org>
30553
30554         * m4/check-libm-func.m4: Removed.
30555         * m4/check-math-lib.m4: New file.
30556         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
30557         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
30558         definition and lack of AC_LIBOBJ([roundf]).
30559         * m4/roundl.m4: Ditto, and similarly for roundl.
30560         * modules/round: Reference new m4 file.
30561         * modules/roundf: Ditto.
30562         * modules/roundl: Ditto.
30563         * tests/test-round2.c (main): Use ROUND instead of round.
30564         Bug report from Bruno Haible.
30565
30566 2007-10-21  Bruno Haible  <bruno@clisp.org>
30567
30568         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
30569         context.
30570
30571 2007-10-21  Bruno Haible  <bruno@clisp.org>
30572
30573         * tests/test-wcwidth.c (main): Allow negative result for some control
30574         characters.
30575
30576         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
30577         Needed on OSF/1 5.1.
30578
30579 2007-10-21  Bruno Haible  <bruno@clisp.org>
30580
30581         * tests/test-floorf1.c: Include isnanf.h.
30582         (main): Use isnanf() instead of isnan().
30583         * tests/test-ceilf1.c: Include isnanf.h.
30584         (main): Use isnanf() instead of isnan().
30585         * tests/test-truncf1.c: Include isnanf.h.
30586         (main): Use isnanf() instead of isnan().
30587         * tests/test-roundf1.c: Include isnanf.h.
30588         (main): Use isnanf() instead of isnan().
30589
30590 2007-10-21  Eric Blake  <ebb9@byu.net>
30591
30592         * users.txt: Update URL for m4.
30593
30594 2007-10-21  Bruno Haible  <bruno@clisp.org>
30595
30596         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
30597
30598 2007-10-21  Bruno Haible  <bruno@clisp.org>
30599
30600         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
30601         Git's management files if the CVS files are not present.
30602
30603 2007-10-20  Bruno Haible  <bruno@clisp.org>
30604
30605         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
30606         gcc-3.4.x.
30607
30608 2007-10-20  Ben Pfaff  <blp@gnu.org>
30609
30610         * lib/math.in.h: Declare round, roundf, roundl if we are providing
30611         implementations.
30612         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
30613         * lib/round.c: New file.
30614         * lib/roundf.c: New file.
30615         * lib/roundl.c: New file.
30616         * m4/round.m4: New file.
30617         * m4/roundf.m4: New file.
30618         * m4/roundl.m4: New file.
30619         * m4/check-libm-func-m4: New file.
30620         * modules/math: Replace round, roundf, roundl related @VARS@ in
30621         math.in.h.
30622         * modules/round: New file.
30623         * modules/round-tests: New file.
30624         * modules/roundf: New file.
30625         * modules/roundf-tests: New file.
30626         * modules/roundl: New file.
30627         * modules/roundl-tests: New file.
30628         * tests/test-round1.c: New file.
30629         * tests/test-round2.c: New file.
30630         * tests/test-roundf1.c: New file.
30631         * tests/test-roundf2.c: New file.
30632         * tests/test-roundl.c: New file.
30633         * doc/functions/round.texi: Mention round module.
30634         * doc/functions/roundf.texi: Mention roundf module.
30635         * doc/functions/roundl.texi: Mention roundl module.
30636         * MODULES.html.sh: Mention new modules.
30637         Thanks to Bruno Haible for suggestions.
30638
30639 2007-10-20  Jim Meyering  <meyering@redhat.com>
30640
30641         * lib/xprintf.c: Include <config.h> unconditionally.
30642
30643         Change xprintf's license to GPL.
30644         * modules/xprintf (License): s/LGPL/GPL/, since this module
30645         depends on modules (exit and exitfail) which are GPL.
30646         Suggestion from Bruno Haible.
30647
30648         xprintf fixes.
30649         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
30650         Use a clearer diagnostic.
30651         Patch from Bruno Haible.
30652
30653 2007-10-20  Bruno Haible  <bruno@clisp.org>
30654
30655         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
30656         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
30657         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30658
30659 2007-10-20  Bruno Haible  <bruno@clisp.org>
30660
30661         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
30662         precision in the comparison result > x - 1 or similar.
30663         * tests/test-ceilf2.c (correct_result_p): Likewise.
30664         * tests/test-truncf2.c (correct_result_p): Likewise.
30665         * tests/test-trunc2.c (correct_result_p): Likewise.
30666         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30667
30668 2007-10-20  Bruno Haible  <bruno@clisp.org>
30669
30670         * modules/ceil: New file.
30671         * m4/ceil.m4: New file.
30672         * doc/functions/ceil.texi: Mention the 'ceil' module.
30673
30674 2007-10-20  Bruno Haible  <bruno@clisp.org>
30675
30676         * modules/floor: New file.
30677         * m4/floor.m4: New file.
30678         * doc/functions/floor.texi: Mention the 'floor' module.
30679
30680 2007-10-20  Bruno Haible  <bruno@clisp.org>
30681
30682         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
30683         of %a.
30684         * modules/floorf-tests (Depends-on): Likewise.
30685         * modules/truncf-tests (Depends-on): Likewise.
30686         * modules/trunc-tests (Depends-on): Likewise.
30687         Reported by Ben Pfaff.
30688
30689 2007-10-19  Jim Meyering  <meyering@redhat.com>
30690
30691         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
30692         Don't bother testing specific errno values.  Just test ferror.
30693
30694         New module: xprintf
30695         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
30696
30697 2007-10-19  Bruno Haible  <bruno@clisp.org>
30698
30699         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
30700         syntax.
30701         * modules/javaexec (Makefile.am): Likewise.
30702         * modules/relocatable-prog (Makefile.am): Likewise.
30703         Suggested by Jim Meyering.
30704
30705 2007-10-18  Bruno Haible  <bruno@clisp.org>
30706
30707         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
30708         Reported by Jim Meyering.
30709
30710 2007-10-18  Eric Blake  <ebb9@byu.net>
30711
30712         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
30713
30714 2007-10-18  Bruno Haible  <bruno@clisp.org>
30715
30716         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
30717         the format string into writable memory. Needed in Fortify conditions.
30718
30719 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
30720             Bruno Haible  <bruno@clisp.org>
30721
30722         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
30723         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
30724         * modules/trim (Depends-on): Add mbchar.
30725         (configure.ac): Add gl_FUNC_MBRTOWC.
30726         (Makefile.am): Augment lib_SOURCES.
30727
30728 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
30729
30730         Modify glob.c to use fstatat and dirfd, to simplify it.
30731         Suggested by Eric Blake.
30732         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
30733         Don't include <stdbool.h>; not used.
30734         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
30735         (link_exists_p): Simplify implementation, since we can now assume
30736         dirfd and fstatat.
30737         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
30738
30739 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30740
30741         * gnulib-tool (func_get_dependencies): Fix sed script to
30742         match only tests.
30743
30744 2007-10-17  Bruno Haible  <bruno@clisp.org>
30745
30746         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
30747         allow locale names without encoding suffix.
30748         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
30749         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
30750
30751 2007-10-16  Bruno Haible  <bruno@clisp.org>
30752
30753         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
30754         * lib/getgroups.c (getgroups): Likewise.
30755         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
30756
30757 2007-10-16  Bruno Haible  <bruno@clisp.org>
30758
30759         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
30760         * modules/malloc-posix (License): Likewise.
30761         * modules/realloc-posix (License): Likewise.
30762         * modules/calloc-posix (License): Likewise.
30763         * modules/intprops (License): Change from GPL to LGPL, with
30764         Paul Eggert's approval.
30765
30766 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
30767
30768         Merge glibc changes into lib/glob.c.
30769
30770         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
30771         2007-10-15 04:59:03 UTC.  Here are the changes:
30772
30773         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
30774
30775         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
30776
30777         * lib/glob.c: Add some branch prediction throughout.
30778
30779         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
30780
30781         [BZ #5103]
30782         * lib/glob.c (glob): Recognize patterns starting \/.
30783
30784         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
30785
30786         [BZ #3996]
30787         * lib/glob.c (attribute_hidden): Define if not defined.
30788         (glob): Unescape dirname, filename or username when needed and not
30789         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
30790         is NULL.  Handle unescaped [ in pattern without closing ].
30791         Don't pass GLOB_CHECK down to recursive glob for directories.
30792         (__glob_pattern_type): New function.
30793         (__glob_pattern_p): Implement using __glob_pattern_type.
30794         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
30795         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
30796         Remove unreachable code.
30797
30798         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
30799
30800         * lib/glob.c (glob_in_dir): Add some comments and asserts to
30801         explain why there are no leaks.
30802
30803         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
30804
30805         [BZ #3253]
30806         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
30807         time, rather allocate increasingly bigger arrays of pointers, if
30808         possible with alloca, if too large with malloc.
30809
30810 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
30811
30812         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
30813         Problem reported by H.Merijn Brand in
30814         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
30815         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
30816         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
30817
30818 2007-10-15  Bruno Haible  <bruno@clisp.org>
30819
30820         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
30821         with explicit rpl_ prefix.
30822         * lib/fopen.c (fopen): Likewise.
30823         * lib/freopen.c (freopen): Likewise.
30824         * lib/iconv.c (iconv): Likewise.
30825         * lib/iconv_close.c (iconv_close): Likewise.
30826
30827 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30828
30829         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
30830
30831 2007-10-15  Bruno Haible  <bruno@clisp.org>
30832
30833         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
30834         <stddef.h> instead of <stdlib.h> since we only need NULL.
30835         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30836
30837 2007-10-15  Bruno Haible  <bruno@clisp.org>
30838
30839         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
30840         Replace paragraph talking about LIBOBJS.
30841         Reported by Colin Watson <cjwatson@debian.org>.
30842
30843 2007-10-15  Bruno Haible  <bruno@clisp.org>
30844
30845         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
30846         <stdlib.h> before using NULL.
30847
30848 2007-10-15  Simon Josefsson  <simon@josefsson.org>
30849
30850         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
30851         Reported by Albert Chin <china@thewrittenword.com>.
30852
30853 2007-10-14  Bruno Haible  <bruno@clisp.org>
30854
30855         * modules/iconv_open-utf-tests: New file.
30856         * tests/test-iconv-utf.c: New file.
30857
30858         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
30859         * modules/iconv_open-utf: New file.
30860         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
30861         (iconv, iconv_close): New declarations.
30862         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
30863         be defined.
30864         (iconv_open): Add special handling of conversion between UTF-8 and
30865         UTF-{16,32}{BE,LE}.
30866         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
30867         * lib/iconv_close.c: New file.
30868         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
30869         gl_FUNC_ICONV_OPEN.
30870         (gl_FUNC_ICONV_OPEN): Use it.
30871         (gl_FUNC_ICONV_OPEN_UTF): New macro.
30872         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
30873         and REPLACE_ICONV_UTF.
30874         * modules/iconv_open (Depends-on): Add c-strcase.
30875         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
30876         ICONV_CONST.
30877         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
30878
30879 2007-10-13  Albert Chin  <china@thewrittenword.com>
30880             Bruno Haible  <bruno@clisp.org>
30881
30882         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
30883         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
30884
30885 2007-10-13  Bruno Haible  <bruno@clisp.org>
30886
30887         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
30888         defined, use the ISO C99 inline semantics.
30889         * lib/argp.h (ARGP_EI): Likewise.
30890
30891 2007-10-13  Bruno Haible  <bruno@clisp.org>
30892
30893         Handle 'inline' change in gcc 4.3.0.
30894         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
30895         argp_fmtstream_write, argp_fmtstream_set_lmargin,
30896         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
30897         argp_fmtstream_point): Disable 'extern' declaration if the function
30898         definition is going to be provided inline.
30899         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
30900         semantics, not the ISO C99 inline semantics.
30901         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
30902         'extern' declaration if the function definition is going to be provided
30903         inline.
30904         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
30905         the GNU C inline semantics, not the ISO C99 inline semantics. With
30906         GCC 4.2, avoid a warning.
30907
30908 2007-10-13  Bruno Haible  <bruno@clisp.org>
30909
30910         * lib/freading.h (freading): Enable the use of __freading for
30911         glibc >= 2.7.
30912         * lib/freading.c (freading): Likewise.
30913
30914 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
30915
30916         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
30917         "warning: C99 inline functions are not supported; using GNU89".
30918
30919 2007-10-12  Bruno Haible  <bruno@clisp.org>
30920
30921         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
30922         of 2.
30923         * tests/test-ceilf2.c: New file.
30924         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
30925
30926         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
30927         * modules/ceilf-tests: Update.
30928
30929 2007-10-12  Bruno Haible  <bruno@clisp.org>
30930
30931         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
30932         of 2.
30933         * tests/test-floorf2.c: New file.
30934         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
30935
30936         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
30937         * modules/floorf-tests: Update.
30938
30939 2007-10-12  Bruno Haible  <bruno@clisp.org>
30940
30941         * tests/test-trunc2.c: New file.
30942         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
30943
30944         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
30945         * modules/trunc-tests: Update.
30946
30947 2007-10-12  Bruno Haible  <bruno@clisp.org>
30948
30949         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
30950         of 2.
30951         * tests/test-truncf2.c: New file.
30952         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
30953
30954         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
30955         * modules/truncf-tests: Update.
30956
30957 2007-10-11  Eric Blake  <ebb9@byu.net>
30958
30959         Don't claim strerror is broken on Interix.
30960         * doc/functions/strerror.texi (strerror): Known broken systems are
30961         now Solaris 8, and not Interix.
30962         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
30963         Interix on cross-compile.
30964         Reported by Martin Koeppe in
30965         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
30966
30967 2007-10-11  Bruno Haible  <bruno@clisp.org>
30968
30969         * modules/i-ring-tests: New file.
30970         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
30971         instead of assert.
30972
30973 2007-10-11  Bruno Haible  <bruno@clisp.org>
30974
30975         * modules/filenamecat-tests: New file.
30976         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
30977         * lib/filenamecat.c: Remove test code.
30978
30979 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
30980
30981         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
30982
30983         * lib/strerror.c: Include <string.h> always, to test interface,
30984         and to remove the need for the dummy.
30985         Include intprops.h to compute width instead of doing it ourselves
30986         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
30987         (strerror): Define it to return NULL if there's no system strerror.
30988         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
30989         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
30990         ancient pre-strerror Unix systems well any more.  Saying "unknown
30991         system error" is enough.
30992         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
30993         simpler strerror.c implementation.
30994         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
30995         Simplify the tests to reflect the simpler strerror implementation.
30996         * modules/strerror (Depends-on): Add intprops.
30997
30998 2007-10-09  Eric Blake  <ebb9@byu.net>
30999
31000         Silence test-fpending.
31001         * modules/fpending-tests (Files): Add wrapper script.
31002         * tests/test-fpending.sh: New file.
31003
31004 2007-10-09  Bruno Haible  <bruno@clisp.org>
31005
31006         * MODULES.html.sh (func_module): Don't create a hyperlink for
31007         function names like 'printf_frexp'.
31008         (Misc): Add crc, memxor.
31009         (Characteristics of floating types): New section.
31010         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
31011         isnanf-nolibm, signbit, trunc, truncf, truncl.
31012         (Enhancements for ISO C 99 functions): New subsection Input/output.
31013         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
31014         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
31015         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
31016         (Compatibility checks for POSIX:2001 functions): Add clock-time.
31017         (Enhancements for POSIX:2001 functions): Add chdir-long.
31018         (File system functions): Add areadlink, chdir-safer, read-file.
31019         Remove cycle-check.
31020         (File system as inode set): New section.
31021         (Date and time): Add gethrxtime.
31022         (Multithreading): Add openmp.
31023         (Internationalization functions): Add localename.
31024         (Unicode string functions): Add unistr/u*-mbsnlen.
31025         (Support for maintaining and releasing projects): Add git-version-gen.
31026         (Lone files): Remove directories.
31027
31028 2007-10-08  Ben Pfaff  <blp@gnu.org>
31029
31030         * lib/xmalloca.h: Fix typo in comment.
31031
31032 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
31033
31034         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
31035         when avoiding problems with integer overflow.  Use a portable test
31036         instead.
31037
31038 2007-10-08  Simon Josefsson  <simon@josefsson.org>
31039
31040         * modules/dummy (License): Change to LGPLv2+.
31041         * modules/float (License): Likewise
31042         * modules/realloc (License): Likewise
31043         * modules/stdlib (License): Likewise
31044
31045 2007-10-07  Bruno Haible  <bruno@clisp.org>
31046
31047         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
31048         * floor.c (TWO_MANT_DIG): Likewise.
31049         * ceil.c (TWO_MANT_DIG): Likewise.
31050         Reported by Ben Pfaff.
31051
31052 2007-10-07  Bruno Haible  <bruno@clisp.org>
31053
31054         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
31055         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
31056         * lib/frexp.c (FUNC): Likewise.
31057         * lib/printf-frexp.h (printf_frexp): Likewise.
31058         * lib/printf-frexpl.h (printf_frexpl): Likewise.
31059         * lib/printf-frexp.c (FUNC): Likewise.
31060         Suggested by Jim Meyering.
31061
31062 2007-10-07  Jim Meyering  <meyering@redhat.com>
31063
31064         Make xnanosleep's integer overflow test more robust.
31065         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
31066         so that gcc-4.3.0 doesn't optimize away this test for overflow.
31067
31068 2007-10-07  Bruno Haible  <bruno@clisp.org>
31069
31070         * NEWS: Mention the license change.
31071
31072         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
31073         abbreviations in the modules files.
31074
31075         Change copyright notice from GPLv2+ to GPLv3+.
31076         * README: Change copyright notice.
31077         * MODULES.html.sh: Likewise.
31078         * build-aux/bootstrap.conf: Likewise.
31079         * build-aux/config.libpath: Likewise.
31080         * build-aux/csharpcomp.sh.in: Likewise.
31081         * build-aux/csharpexec.sh.in: Likewise.
31082         * build-aux/install-reloc: Likewise.
31083         * build-aux/javacomp.sh.in: Likewise.
31084         * build-aux/javaexec.sh.in: Likewise.
31085         * build-aux/ldd.sh.in: Likewise.
31086         * build-aux/reloc-ldflags: Likewise.
31087         * build-aux/relocatable.sh.in: Likewise.
31088         * build-aux/x-to-1.in: Likewise.
31089         * check-module: Likewise.
31090         * config/srclistvars.sh: Likewise.
31091         * gnulib-tool: Likewise.
31092         * lib/acl-internal.h: Likewise.
31093         * lib/acl.c: Likewise.
31094         * lib/acl.h: Likewise.
31095         * lib/acl_entries.c: Likewise.
31096         * lib/areadlink-with-size.c: Likewise.
31097         * lib/areadlink.c: Likewise.
31098         * lib/areadlink.h: Likewise.
31099         * lib/argmatch.c: Likewise.
31100         * lib/argmatch.h: Likewise.
31101         * lib/argp-ba.c: Likewise.
31102         * lib/argp-eexst.c: Likewise.
31103         * lib/argp-fmtstream.c: Likewise.
31104         * lib/argp-fmtstream.h: Likewise.
31105         * lib/argp-fs-xinl.c: Likewise.
31106         * lib/argp-help.c: Likewise.
31107         * lib/argp-namefrob.h: Likewise.
31108         * lib/argp-parse.c: Likewise.
31109         * lib/argp-pin.c: Likewise.
31110         * lib/argp-pv.c: Likewise.
31111         * lib/argp-pvh.c: Likewise.
31112         * lib/argp-xinl.c: Likewise.
31113         * lib/argp.h: Likewise.
31114         * lib/at-func.c: Likewise.
31115         * lib/atanl.c: Likewise.
31116         * lib/backupfile.c: Likewise.
31117         * lib/backupfile.h: Likewise.
31118         * lib/basename.c: Likewise.
31119         * lib/binary-io.h: Likewise.
31120         * lib/byteswap.in.h: Likewise.
31121         * lib/c-stack.c: Likewise.
31122         * lib/c-stack.h: Likewise.
31123         * lib/c-strcasestr.c: Likewise.
31124         * lib/c-strcasestr.h: Likewise.
31125         * lib/c-strstr.c: Likewise.
31126         * lib/c-strstr.h: Likewise.
31127         * lib/c-strtod.c: Likewise.
31128         * lib/calloc.c: Likewise.
31129         * lib/canon-host.c: Likewise.
31130         * lib/canon-host.h: Likewise.
31131         * lib/canonicalize-lgpl.c: Likewise.
31132         * lib/canonicalize.c: Likewise.
31133         * lib/canonicalize.h: Likewise.
31134         * lib/ceil.c: Likewise.
31135         * lib/ceilf.c: Likewise.
31136         * lib/ceill.c: Likewise.
31137         * lib/chdir-long.c: Likewise.
31138         * lib/chdir-long.h: Likewise.
31139         * lib/chdir-safer.c: Likewise.
31140         * lib/chdir-safer.h: Likewise.
31141         * lib/chown.c: Likewise.
31142         * lib/classpath.c: Likewise.
31143         * lib/classpath.h: Likewise.
31144         * lib/clean-temp.c: Likewise.
31145         * lib/clean-temp.h: Likewise.
31146         * lib/cloexec.c: Likewise.
31147         * lib/close-stream.c: Likewise.
31148         * lib/closein.c: Likewise.
31149         * lib/closein.h: Likewise.
31150         * lib/closeout.c: Likewise.
31151         * lib/closeout.h: Likewise.
31152         * lib/concat-filename.c: Likewise.
31153         * lib/copy-file.c: Likewise.
31154         * lib/copy-file.h: Likewise.
31155         * lib/count-one-bits.h: Likewise.
31156         * lib/crc.c: Likewise.
31157         * lib/crc.h: Likewise.
31158         * lib/creat-safer.c: Likewise.
31159         * lib/csharpcomp.c: Likewise.
31160         * lib/csharpcomp.h: Likewise.
31161         * lib/csharpexec.c: Likewise.
31162         * lib/csharpexec.h: Likewise.
31163         * lib/cycle-check.c: Likewise.
31164         * lib/cycle-check.h: Likewise.
31165         * lib/diacrit.c: Likewise.
31166         * lib/diacrit.h: Likewise.
31167         * lib/diffseq.h: Likewise.
31168         * lib/dirchownmod.c: Likewise.
31169         * lib/dirent.in.h: Likewise.
31170         * lib/dirfd.c: Likewise.
31171         * lib/dirfd.h: Likewise.
31172         * lib/dirname.c: Likewise.
31173         * lib/dirname.h: Likewise.
31174         * lib/dummy.c: Likewise.
31175         * lib/dup-safer.c: Likewise.
31176         * lib/dup2.c: Likewise.
31177         * lib/eealloc.h: Likewise.
31178         * lib/error.c: Likewise.
31179         * lib/error.h: Likewise.
31180         * lib/euidaccess.c: Likewise.
31181         * lib/exclude.c: Likewise.
31182         * lib/exclude.h: Likewise.
31183         * lib/execute.c: Likewise.
31184         * lib/execute.h: Likewise.
31185         * lib/exitfail.c: Likewise.
31186         * lib/exitfail.h: Likewise.
31187         * lib/expl.c: Likewise.
31188         * lib/fatal-signal.c: Likewise.
31189         * lib/fatal-signal.h: Likewise.
31190         * lib/fbufmode.c: Likewise.
31191         * lib/fbufmode.h: Likewise.
31192         * lib/fchdir.c: Likewise.
31193         * lib/fchmodat.c: Likewise.
31194         * lib/fchownat.c: Likewise.
31195         * lib/fcntl--.h: Likewise.
31196         * lib/fcntl-safer.h: Likewise.
31197         * lib/fcntl.in.h: Likewise.
31198         * lib/fd-safer.c: Likewise.
31199         * lib/fflush.c: Likewise.
31200         * lib/file-has-acl.c: Likewise.
31201         * lib/file-set.c: Likewise.
31202         * lib/file-type.c: Likewise.
31203         * lib/file-type.h: Likewise.
31204         * lib/fileblocks.c: Likewise.
31205         * lib/filemode.c: Likewise.
31206         * lib/filemode.h: Likewise.
31207         * lib/filename.h: Likewise.
31208         * lib/filenamecat.c: Likewise.
31209         * lib/filenamecat.h: Likewise.
31210         * lib/findprog.c: Likewise.
31211         * lib/findprog.h: Likewise.
31212         * lib/float.in.h: Likewise.
31213         * lib/floor.c: Likewise.
31214         * lib/floorf.c: Likewise.
31215         * lib/floorl.c: Likewise.
31216         * lib/fopen-safer.c: Likewise.
31217         * lib/fopen.c: Likewise.
31218         * lib/fpending.c: Likewise.
31219         * lib/fpending.h: Likewise.
31220         * lib/fprintf.c: Likewise.
31221         * lib/fprintftime.h: Likewise.
31222         * lib/fpucw.h: Likewise.
31223         * lib/fpurge.c: Likewise.
31224         * lib/fpurge.h: Likewise.
31225         * lib/freadable.c: Likewise.
31226         * lib/freadable.h: Likewise.
31227         * lib/freadahead.c: Likewise.
31228         * lib/freadahead.h: Likewise.
31229         * lib/freading.c: Likewise.
31230         * lib/freading.h: Likewise.
31231         * lib/free.c: Likewise.
31232         * lib/freopen.c: Likewise.
31233         * lib/frexp.c: Likewise.
31234         * lib/frexpl.c: Likewise.
31235         * lib/fseek.c: Likewise.
31236         * lib/fseterr.c: Likewise.
31237         * lib/fseterr.h: Likewise.
31238         * lib/fstatat.c: Likewise.
31239         * lib/fstrcmp.c: Likewise.
31240         * lib/fstrcmp.h: Likewise.
31241         * lib/fsusage.c: Likewise.
31242         * lib/fsusage.h: Likewise.
31243         * lib/ftell.c: Likewise.
31244         * lib/ftello.c: Likewise.
31245         * lib/fts-cycle.c: Likewise.
31246         * lib/fts.c: Likewise.
31247         * lib/fts_.h: Likewise.
31248         * lib/full-read.c: Likewise.
31249         * lib/full-read.h: Likewise.
31250         * lib/full-write.c: Likewise.
31251         * lib/full-write.h: Likewise.
31252         * lib/fwritable.c: Likewise.
31253         * lib/fwritable.h: Likewise.
31254         * lib/fwriteerror.c: Likewise.
31255         * lib/fwriteerror.h: Likewise.
31256         * lib/fwriting.c: Likewise.
31257         * lib/fwriting.h: Likewise.
31258         * lib/gcd.c: Likewise.
31259         * lib/gcd.h: Likewise.
31260         * lib/getcwd.c: Likewise.
31261         * lib/getdate.h: Likewise.
31262         * lib/getdate.y: Likewise.
31263         * lib/getdomainname.c: Likewise.
31264         * lib/getdomainname.h: Likewise.
31265         * lib/getgroups.c: Likewise.
31266         * lib/gethostname.c: Likewise.
31267         * lib/gethrxtime.c: Likewise.
31268         * lib/gethrxtime.h: Likewise.
31269         * lib/getloadavg.c: Likewise.
31270         * lib/getndelim2.c: Likewise.
31271         * lib/getndelim2.h: Likewise.
31272         * lib/getnline.c: Likewise.
31273         * lib/getnline.h: Likewise.
31274         * lib/getopt.c: Likewise.
31275         * lib/getopt.in.h: Likewise.
31276         * lib/getopt1.c: Likewise.
31277         * lib/getopt_int.h: Likewise.
31278         * lib/getpagesize.h: Likewise.
31279         * lib/getsubopt.c: Likewise.
31280         * lib/gettime.c: Likewise.
31281         * lib/getugroups.c: Likewise.
31282         * lib/getugroups.h: Likewise.
31283         * lib/getusershell.c: Likewise.
31284         * lib/gl_anyavltree_list1.h: Likewise.
31285         * lib/gl_anyavltree_list2.h: Likewise.
31286         * lib/gl_anyhash_list1.h: Likewise.
31287         * lib/gl_anyhash_list2.h: Likewise.
31288         * lib/gl_anylinked_list1.h: Likewise.
31289         * lib/gl_anylinked_list2.h: Likewise.
31290         * lib/gl_anyrbtree_list1.h: Likewise.
31291         * lib/gl_anyrbtree_list2.h: Likewise.
31292         * lib/gl_anytree_list1.h: Likewise.
31293         * lib/gl_anytree_list2.h: Likewise.
31294         * lib/gl_anytree_oset.h: Likewise.
31295         * lib/gl_anytreehash_list1.h: Likewise.
31296         * lib/gl_anytreehash_list2.h: Likewise.
31297         * lib/gl_array_list.c: Likewise.
31298         * lib/gl_array_list.h: Likewise.
31299         * lib/gl_array_oset.c: Likewise.
31300         * lib/gl_array_oset.h: Likewise.
31301         * lib/gl_avltree_list.c: Likewise.
31302         * lib/gl_avltree_list.h: Likewise.
31303         * lib/gl_avltree_oset.c: Likewise.
31304         * lib/gl_avltree_oset.h: Likewise.
31305         * lib/gl_avltreehash_list.c: Likewise.
31306         * lib/gl_avltreehash_list.h: Likewise.
31307         * lib/gl_carray_list.c: Likewise.
31308         * lib/gl_carray_list.h: Likewise.
31309         * lib/gl_linked_list.c: Likewise.
31310         * lib/gl_linked_list.h: Likewise.
31311         * lib/gl_linkedhash_list.c: Likewise.
31312         * lib/gl_linkedhash_list.h: Likewise.
31313         * lib/gl_list.c: Likewise.
31314         * lib/gl_list.h: Likewise.
31315         * lib/gl_oset.c: Likewise.
31316         * lib/gl_oset.h: Likewise.
31317         * lib/gl_rbtree_list.c: Likewise.
31318         * lib/gl_rbtree_list.h: Likewise.
31319         * lib/gl_rbtree_oset.c: Likewise.
31320         * lib/gl_rbtree_oset.h: Likewise.
31321         * lib/gl_rbtreehash_list.c: Likewise.
31322         * lib/gl_rbtreehash_list.h: Likewise.
31323         * lib/gl_sublist.c: Likewise.
31324         * lib/gl_sublist.h: Likewise.
31325         * lib/group-member.c: Likewise.
31326         * lib/group-member.h: Likewise.
31327         * lib/hard-locale.c: Likewise.
31328         * lib/hard-locale.h: Likewise.
31329         * lib/hash-pjw.c: Likewise.
31330         * lib/hash-pjw.h: Likewise.
31331         * lib/hash-triple.c: Likewise.
31332         * lib/hash.c: Likewise.
31333         * lib/hash.h: Likewise.
31334         * lib/human.c: Likewise.
31335         * lib/human.h: Likewise.
31336         * lib/i-ring.c: Likewise.
31337         * lib/i-ring.h: Likewise.
31338         * lib/idcache.c: Likewise.
31339         * lib/imaxabs.c: Likewise.
31340         * lib/imaxdiv.c: Likewise.
31341         * lib/inet_pton.c: Likewise.
31342         * lib/inet_pton.h: Likewise.
31343         * lib/intprops.h: Likewise.
31344         * lib/inttostr.c: Likewise.
31345         * lib/inttostr.h: Likewise.
31346         * lib/inttypes.in.h: Likewise.
31347         * lib/isapipe.c: Likewise.
31348         * lib/isdir.c: Likewise.
31349         * lib/isnan.c: Likewise.
31350         * lib/isnan.h: Likewise.
31351         * lib/isnanf.c: Likewise.
31352         * lib/isnanf.h: Likewise.
31353         * lib/isnanl-nolibm.h: Likewise.
31354         * lib/isnanl.c: Likewise.
31355         * lib/isnanl.h: Likewise.
31356         * lib/javacomp.c: Likewise.
31357         * lib/javacomp.h: Likewise.
31358         * lib/javaexec.c: Likewise.
31359         * lib/javaexec.h: Likewise.
31360         * lib/javaversion.c: Likewise.
31361         * lib/javaversion.h: Likewise.
31362         * lib/javaversion.java: Likewise.
31363         * lib/lbrkprop.h: Likewise.
31364         * lib/lchmod.h: Likewise.
31365         * lib/lchown.c: Likewise.
31366         * lib/ldexpl.c: Likewise.
31367         * lib/linebreak.c: Likewise.
31368         * lib/linebreak.h: Likewise.
31369         * lib/linebuffer.c: Likewise.
31370         * lib/linebuffer.h: Likewise.
31371         * lib/locale.in.h: Likewise.
31372         * lib/logl.c: Likewise.
31373         * lib/long-options.c: Likewise.
31374         * lib/long-options.h: Likewise.
31375         * lib/lstat.c: Likewise.
31376         * lib/lstat.h: Likewise.
31377         * lib/math.in.h: Likewise.
31378         * lib/mbchar.c: Likewise.
31379         * lib/mbchar.h: Likewise.
31380         * lib/mbfile.h: Likewise.
31381         * lib/mbiter.h: Likewise.
31382         * lib/mbscasecmp.c: Likewise.
31383         * lib/mbscasestr.c: Likewise.
31384         * lib/mbschr.c: Likewise.
31385         * lib/mbscspn.c: Likewise.
31386         * lib/mbslen.c: Likewise.
31387         * lib/mbsncasecmp.c: Likewise.
31388         * lib/mbsnlen.c: Likewise.
31389         * lib/mbspbrk.c: Likewise.
31390         * lib/mbspcasecmp.c: Likewise.
31391         * lib/mbsrchr.c: Likewise.
31392         * lib/mbssep.c: Likewise.
31393         * lib/mbsspn.c: Likewise.
31394         * lib/mbsstr.c: Likewise.
31395         * lib/mbstok_r.c: Likewise.
31396         * lib/mbswidth.c: Likewise.
31397         * lib/mbswidth.h: Likewise.
31398         * lib/mbuiter.h: Likewise.
31399         * lib/memcasecmp.c: Likewise.
31400         * lib/memcasecmp.h: Likewise.
31401         * lib/memchr.c: Likewise.
31402         * lib/memcmp.c: Likewise.
31403         * lib/memcoll.c: Likewise.
31404         * lib/memcoll.h: Likewise.
31405         * lib/memcpy.c: Likewise.
31406         * lib/memrchr.c: Likewise.
31407         * lib/mkancesdirs.c: Likewise.
31408         * lib/mkdir-p.c: Likewise.
31409         * lib/mkdir-p.h: Likewise.
31410         * lib/mkdir.c: Likewise.
31411         * lib/mkdirat.c: Likewise.
31412         * lib/mkdtemp.c: Likewise.
31413         * lib/mkstemp-safer.c: Likewise.
31414         * lib/mkstemp.c: Likewise.
31415         * lib/modechange.c: Likewise.
31416         * lib/modechange.h: Likewise.
31417         * lib/mountlist.c: Likewise.
31418         * lib/mountlist.h: Likewise.
31419         * lib/mpsort.c: Likewise.
31420         * lib/nanosleep.c: Likewise.
31421         * lib/obstack.c: Likewise.
31422         * lib/obstack.h: Likewise.
31423         * lib/open-safer.c: Likewise.
31424         * lib/open.c: Likewise.
31425         * lib/openat-die.c: Likewise.
31426         * lib/openat-priv.h: Likewise.
31427         * lib/openat-proc.c: Likewise.
31428         * lib/openat.c: Likewise.
31429         * lib/openat.h: Likewise.
31430         * lib/pagealign_alloc.c: Likewise.
31431         * lib/pagealign_alloc.h: Likewise.
31432         * lib/physmem.c: Likewise.
31433         * lib/physmem.h: Likewise.
31434         * lib/pipe-safer.c: Likewise.
31435         * lib/pipe.c: Likewise.
31436         * lib/pipe.h: Likewise.
31437         * lib/posixtm.c: Likewise.
31438         * lib/posixtm.h: Likewise.
31439         * lib/posixver.c: Likewise.
31440         * lib/printf-frexp.c: Likewise.
31441         * lib/printf-frexp.h: Likewise.
31442         * lib/printf-frexpl.c: Likewise.
31443         * lib/printf-frexpl.h: Likewise.
31444         * lib/printf.c: Likewise.
31445         * lib/progname.c: Likewise.
31446         * lib/progname.h: Likewise.
31447         * lib/progreloc.c: Likewise.
31448         * lib/putenv.c: Likewise.
31449         * lib/quote.c: Likewise.
31450         * lib/quote.h: Likewise.
31451         * lib/quotearg.c: Likewise.
31452         * lib/quotearg.h: Likewise.
31453         * lib/raise.c: Likewise.
31454         * lib/readline.c: Likewise.
31455         * lib/readline.h: Likewise.
31456         * lib/readlink.c: Likewise.
31457         * lib/readtokens.c: Likewise.
31458         * lib/readtokens.h: Likewise.
31459         * lib/readtokens0.c: Likewise.
31460         * lib/readtokens0.h: Likewise.
31461         * lib/readutmp.c: Likewise.
31462         * lib/readutmp.h: Likewise.
31463         * lib/realloc.c: Likewise.
31464         * lib/relocwrapper.c: Likewise.
31465         * lib/rename-dest-slash.c: Likewise.
31466         * lib/rename.c: Likewise.
31467         * lib/rmdir.c: Likewise.
31468         * lib/rpmatch.c: Likewise.
31469         * lib/safe-read.c: Likewise.
31470         * lib/safe-read.h: Likewise.
31471         * lib/safe-write.c: Likewise.
31472         * lib/safe-write.h: Likewise.
31473         * lib/same-inode.h: Likewise.
31474         * lib/same.c: Likewise.
31475         * lib/same.h: Likewise.
31476         * lib/save-cwd.c: Likewise.
31477         * lib/save-cwd.h: Likewise.
31478         * lib/savedir.c: Likewise.
31479         * lib/savedir.h: Likewise.
31480         * lib/savewd.c: Likewise.
31481         * lib/savewd.h: Likewise.
31482         * lib/search.in.h: Likewise.
31483         * lib/setenv.c: Likewise.
31484         * lib/setenv.h: Likewise.
31485         * lib/settime.c: Likewise.
31486         * lib/sh-quote.c: Likewise.
31487         * lib/sh-quote.h: Likewise.
31488         * lib/sig2str.c: Likewise.
31489         * lib/sig2str.h: Likewise.
31490         * lib/signal.in.h: Likewise.
31491         * lib/signbitd.c: Likewise.
31492         * lib/signbitf.c: Likewise.
31493         * lib/signbitl.c: Likewise.
31494         * lib/sigprocmask.c: Likewise.
31495         * lib/sincosl.c: Likewise.
31496         * lib/sleep.c: Likewise.
31497         * lib/sprintf.c: Likewise.
31498         * lib/sqrtl.c: Likewise.
31499         * lib/stat-time.h: Likewise.
31500         * lib/stdio--.h: Likewise.
31501         * lib/stdio-safer.h: Likewise.
31502         * lib/stdlib--.h: Likewise.
31503         * lib/stdlib-safer.h: Likewise.
31504         * lib/stdlib.in.h: Likewise.
31505         * lib/stpcpy.c: Likewise.
31506         * lib/stpncpy.c: Likewise.
31507         * lib/strchrnul.c: Likewise.
31508         * lib/strcspn.c: Likewise.
31509         * lib/strerror.c: Likewise.
31510         * lib/strftime.c: Likewise.
31511         * lib/strftime.h: Likewise.
31512         * lib/striconveh.c: Likewise.
31513         * lib/striconveh.h: Likewise.
31514         * lib/striconveha.c: Likewise.
31515         * lib/striconveha.h: Likewise.
31516         * lib/stripslash.c: Likewise.
31517         * lib/strnlen1.c: Likewise.
31518         * lib/strnlen1.h: Likewise.
31519         * lib/strtod.c: Likewise.
31520         * lib/strtoimax.c: Likewise.
31521         * lib/strtok_r.c: Likewise.
31522         * lib/strtol.c: Likewise.
31523         * lib/strtoll.c: Likewise.
31524         * lib/strtoul.c: Likewise.
31525         * lib/strtoull.c: Likewise.
31526         * lib/sysexits.in.h: Likewise.
31527         * lib/tempname.c: Likewise.
31528         * lib/tempname.h: Likewise.
31529         * lib/timespec.h: Likewise.
31530         * lib/tls.c: Likewise.
31531         * lib/tls.h: Likewise.
31532         * lib/tmpdir.c: Likewise.
31533         * lib/tmpdir.h: Likewise.
31534         * lib/tmpfile-safer.c: Likewise.
31535         * lib/tmpfile.c: Likewise.
31536         * lib/trigl.c: Likewise.
31537         * lib/trigl.h: Likewise.
31538         * lib/trim.c: Likewise.
31539         * lib/trim.h: Likewise.
31540         * lib/trunc.c: Likewise.
31541         * lib/truncf.c: Likewise.
31542         * lib/truncl.c: Likewise.
31543         * lib/tsearch.c: Likewise.
31544         * lib/unicodeio.c: Likewise.
31545         * lib/unicodeio.h: Likewise.
31546         * lib/unistd--.h: Likewise.
31547         * lib/unistd-safer.h: Likewise.
31548         * lib/unistdio/ulc-fprintf.c: Likewise.
31549         * lib/unistdio/ulc-vfprintf.c: Likewise.
31550         * lib/unlinkdir.c: Likewise.
31551         * lib/unlinkdir.h: Likewise.
31552         * lib/unlocked-io.h: Likewise.
31553         * lib/unsetenv.c: Likewise.
31554         * lib/userspec.c: Likewise.
31555         * lib/utime.c: Likewise.
31556         * lib/utimecmp.c: Likewise.
31557         * lib/utimecmp.h: Likewise.
31558         * lib/utimens.c: Likewise.
31559         * lib/verify.h: Likewise.
31560         * lib/verror.c: Likewise.
31561         * lib/verror.h: Likewise.
31562         * lib/version-etc-fsf.c: Likewise.
31563         * lib/version-etc.c: Likewise.
31564         * lib/version-etc.h: Likewise.
31565         * lib/vfprintf.c: Likewise.
31566         * lib/vprintf.c: Likewise.
31567         * lib/vsprintf.c: Likewise.
31568         * lib/w32spawn.h: Likewise.
31569         * lib/wait-process.c: Likewise.
31570         * lib/wait-process.h: Likewise.
31571         * lib/wcwidth.c: Likewise.
31572         * lib/write-any-file.c: Likewise.
31573         * lib/xalloc-die.c: Likewise.
31574         * lib/xalloc.h: Likewise.
31575         * lib/xasprintf.c: Likewise.
31576         * lib/xgetcwd.c: Likewise.
31577         * lib/xgetcwd.h: Likewise.
31578         * lib/xgetdomainname.c: Likewise.
31579         * lib/xgetdomainname.h: Likewise.
31580         * lib/xgethostname.c: Likewise.
31581         * lib/xmalloc.c: Likewise.
31582         * lib/xmalloca.c: Likewise.
31583         * lib/xmalloca.h: Likewise.
31584         * lib/xmemcoll.c: Likewise.
31585         * lib/xnanosleep.c: Likewise.
31586         * lib/xreadlink.c: Likewise.
31587         * lib/xreadlink.h: Likewise.
31588         * lib/xsetenv.c: Likewise.
31589         * lib/xsetenv.h: Likewise.
31590         * lib/xstriconv.c: Likewise.
31591         * lib/xstriconv.h: Likewise.
31592         * lib/xstrndup.c: Likewise.
31593         * lib/xstrndup.h: Likewise.
31594         * lib/xstrtod.c: Likewise.
31595         * lib/xstrtod.h: Likewise.
31596         * lib/xstrtol-error.c: Likewise.
31597         * lib/xstrtol.c: Likewise.
31598         * lib/xstrtol.h: Likewise.
31599         * lib/xtime.h: Likewise.
31600         * lib/xvasprintf.c: Likewise.
31601         * lib/xvasprintf.h: Likewise.
31602         * lib/yesno.c: Likewise.
31603         * lib/yesno.h: Likewise.
31604         * posix-modules: Likewise.
31605         * tests/test-alloca-opt.c: Likewise.
31606         * tests/test-arcfour.c: Likewise.
31607         * tests/test-arctwo.c: Likewise.
31608         * tests/test-argmatch.c: Likewise.
31609         * tests/test-argp-2.sh: Likewise.
31610         * tests/test-argp.c: Likewise.
31611         * tests/test-arpa_inet.c: Likewise.
31612         * tests/test-array_list.c: Likewise.
31613         * tests/test-array_oset.c: Likewise.
31614         * tests/test-atexit.c: Likewise.
31615         * tests/test-avltree_list.c: Likewise.
31616         * tests/test-avltree_oset.c: Likewise.
31617         * tests/test-avltreehash_list.c: Likewise.
31618         * tests/test-base64.c: Likewise.
31619         * tests/test-binary-io.c: Likewise.
31620         * tests/test-byteswap.c: Likewise.
31621         * tests/test-c-ctype.c: Likewise.
31622         * tests/test-c-strcasecmp.c: Likewise.
31623         * tests/test-c-strcasestr.c: Likewise.
31624         * tests/test-c-strncasecmp.c: Likewise.
31625         * tests/test-c-strstr.c: Likewise.
31626         * tests/test-canonicalize-lgpl.c: Likewise.
31627         * tests/test-canonicalize.c: Likewise.
31628         * tests/test-carray_list.c: Likewise.
31629         * tests/test-ceilf.c: Likewise.
31630         * tests/test-ceill.c: Likewise.
31631         * tests/test-count-one-bits.c: Likewise.
31632         * tests/test-crc.c: Likewise.
31633         * tests/test-dirname.c: Likewise.
31634         * tests/test-fbufmode.c: Likewise.
31635         * tests/test-fcntl.c: Likewise.
31636         * tests/test-fflush.c: Likewise.
31637         * tests/test-floorf.c: Likewise.
31638         * tests/test-floorl.c: Likewise.
31639         * tests/test-fopen.c: Likewise.
31640         * tests/test-fprintf-posix.c: Likewise.
31641         * tests/test-fprintf-posix.h: Likewise.
31642         * tests/test-fpurge.c: Likewise.
31643         * tests/test-freadable.c: Likewise.
31644         * tests/test-freadahead.c: Likewise.
31645         * tests/test-freading.c: Likewise.
31646         * tests/test-freopen.c: Likewise.
31647         * tests/test-frexp.c: Likewise.
31648         * tests/test-frexpl.c: Likewise.
31649         * tests/test-fseek.c: Likewise.
31650         * tests/test-fseeko.c: Likewise.
31651         * tests/test-fseterr.c: Likewise.
31652         * tests/test-fstrcmp.c: Likewise.
31653         * tests/test-ftell.c: Likewise.
31654         * tests/test-ftello.c: Likewise.
31655         * tests/test-fwritable.c: Likewise.
31656         * tests/test-fwriting.c: Likewise.
31657         * tests/test-getaddrinfo.c: Likewise.
31658         * tests/test-getpass.c: Likewise.
31659         * tests/test-gettimeofday.c: Likewise.
31660         * tests/test-hmac-md5.c: Likewise.
31661         * tests/test-hmac-sha1.c: Likewise.
31662         * tests/test-iconv.c: Likewise.
31663         * tests/test-iconvme.c: Likewise.
31664         * tests/test-inttypes.c: Likewise.
31665         * tests/test-isnan.c: Likewise.
31666         * tests/test-isnanf.c: Likewise.
31667         * tests/test-isnanl-nolibm.c: Likewise.
31668         * tests/test-isnanl.c: Likewise.
31669         * tests/test-isnanl.h: Likewise.
31670         * tests/test-ldexpl.c: Likewise.
31671         * tests/test-linked_list.c: Likewise.
31672         * tests/test-linkedhash_list.c: Likewise.
31673         * tests/test-locale.c: Likewise.
31674         * tests/test-localename.c: Likewise.
31675         * tests/test-lock.c: Likewise.
31676         * tests/test-lseek.c: Likewise.
31677         * tests/test-malloca.c: Likewise.
31678         * tests/test-math.c: Likewise.
31679         * tests/test-mbscasecmp.c: Likewise.
31680         * tests/test-mbscasestr1.c: Likewise.
31681         * tests/test-mbscasestr2.c: Likewise.
31682         * tests/test-mbscasestr3.c: Likewise.
31683         * tests/test-mbscasestr4.c: Likewise.
31684         * tests/test-mbschr.c: Likewise.
31685         * tests/test-mbscspn.c: Likewise.
31686         * tests/test-mbsncasecmp.c: Likewise.
31687         * tests/test-mbspbrk.c: Likewise.
31688         * tests/test-mbspcasecmp.c: Likewise.
31689         * tests/test-mbsrchr.c: Likewise.
31690         * tests/test-mbsspn.c: Likewise.
31691         * tests/test-mbsstr1.c: Likewise.
31692         * tests/test-mbsstr2.c: Likewise.
31693         * tests/test-mbsstr3.c: Likewise.
31694         * tests/test-md5.c: Likewise.
31695         * tests/test-memmem.c: Likewise.
31696         * tests/test-netinet_in.c: Likewise.
31697         * tests/test-open.c: Likewise.
31698         * tests/test-printf-frexp.c: Likewise.
31699         * tests/test-printf-frexpl.c: Likewise.
31700         * tests/test-printf-posix.c: Likewise.
31701         * tests/test-printf-posix.h: Likewise.
31702         * tests/test-rbtree_list.c: Likewise.
31703         * tests/test-rbtree_oset.c: Likewise.
31704         * tests/test-rbtreehash_list.c: Likewise.
31705         * tests/test-read-file.c: Likewise.
31706         * tests/test-rijndael.c: Likewise.
31707         * tests/test-search.c: Likewise.
31708         * tests/test-signbit.c: Likewise.
31709         * tests/test-sleep.c: Likewise.
31710         * tests/test-snprintf-posix.c: Likewise.
31711         * tests/test-snprintf-posix.h: Likewise.
31712         * tests/test-snprintf.c: Likewise.
31713         * tests/test-sprintf-posix.c: Likewise.
31714         * tests/test-sprintf-posix.h: Likewise.
31715         * tests/test-stat-time.c: Likewise.
31716         * tests/test-stdbool.c: Likewise.
31717         * tests/test-stdint.c: Likewise.
31718         * tests/test-stdio.c: Likewise.
31719         * tests/test-stdlib.c: Likewise.
31720         * tests/test-stpncpy.c: Likewise.
31721         * tests/test-strcasestr.c: Likewise.
31722         * tests/test-striconv.c: Likewise.
31723         * tests/test-striconveh.c: Likewise.
31724         * tests/test-striconveha.c: Likewise.
31725         * tests/test-string.c: Likewise.
31726         * tests/test-sys_select.c: Likewise.
31727         * tests/test-sys_socket.c: Likewise.
31728         * tests/test-sys_stat.c: Likewise.
31729         * tests/test-sys_time.c: Likewise.
31730         * tests/test-sysexits.c: Likewise.
31731         * tests/test-time.c: Likewise.
31732         * tests/test-tls.c: Likewise.
31733         * tests/test-trunc.c: Likewise.
31734         * tests/test-truncf.c: Likewise.
31735         * tests/test-truncl.c: Likewise.
31736         * tests/test-unistd.c: Likewise.
31737         * tests/test-vasnprintf-posix.c: Likewise.
31738         * tests/test-vasnprintf-posix2.c: Likewise.
31739         * tests/test-vasnprintf.c: Likewise.
31740         * tests/test-vasprintf-posix.c: Likewise.
31741         * tests/test-vasprintf.c: Likewise.
31742         * tests/test-verify.c: Likewise.
31743         * tests/test-vfprintf-posix.c: Likewise.
31744         * tests/test-vprintf-posix.c: Likewise.
31745         * tests/test-vsnprintf-posix.c: Likewise.
31746         * tests/test-vsnprintf.c: Likewise.
31747         * tests/test-vsprintf-posix.c: Likewise.
31748         * tests/test-wchar.c: Likewise.
31749         * tests/test-wctype.c: Likewise.
31750         * tests/test-wcwidth.c: Likewise.
31751         * tests/test-xstrtol.c: Likewise.
31752         * tests/test-xvasprintf.c: Likewise.
31753         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
31754         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
31755         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
31756         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
31757         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
31758         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
31759         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
31760         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
31761         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
31762         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
31763         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
31764         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
31765         * tests/uniname/test-uninames.c: Likewise.
31766         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
31767         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
31768         * tests/unistdio/test-u16-printf1.h: Likewise.
31769         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
31770         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
31771         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
31772         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
31773         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
31774         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
31775         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
31776         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
31777         * tests/unistdio/test-u32-printf1.h: Likewise.
31778         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
31779         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
31780         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
31781         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
31782         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
31783         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
31784         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
31785         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
31786         * tests/unistdio/test-u8-printf1.h: Likewise.
31787         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
31788         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
31789         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
31790         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
31791         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
31792         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
31793         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
31794         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
31795         * tests/unistdio/test-ulc-printf1.h: Likewise.
31796         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
31797         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
31798         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
31799         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
31800         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
31801         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
31802         * tests/uniwidth/test-u16-strwidth.c: Likewise.
31803         * tests/uniwidth/test-u16-width.c: Likewise.
31804         * tests/uniwidth/test-u32-strwidth.c: Likewise.
31805         * tests/uniwidth/test-u32-width.c: Likewise.
31806         * tests/uniwidth/test-u8-strwidth.c: Likewise.
31807         * tests/uniwidth/test-u8-width.c: Likewise.
31808         * tests/uniwidth/test-uc_width.c: Likewise.
31809         * config/srclist-update: Likewise.
31810         (fixlicense): Update to GPLv3+.
31811
31812         Change copyright notice from LGPLv2.1+ to LGPLv3+.
31813         * tests/test-tsearch.c: Change copyright notice.
31814
31815         Change copyright notice from LGPLv2.0+ to LGPLv3+.
31816         * lib/c-strcaseeq.h: Change copyright notice.
31817         * lib/streq.h: Likewise.
31818         * lib/uniconv.h: Likewise.
31819         * lib/uniconv/u-conv-from-enc.h: Likewise.
31820         * lib/uniconv/u-conv-to-enc.h: Likewise.
31821         * lib/uniconv/u-strconv-from-enc.h: Likewise.
31822         * lib/uniconv/u-strconv-to-enc.h: Likewise.
31823         * lib/uniconv/u16-conv-from-enc.c: Likewise.
31824         * lib/uniconv/u16-conv-to-enc.c: Likewise.
31825         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
31826         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
31827         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
31828         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
31829         * lib/uniconv/u32-conv-from-enc.c: Likewise.
31830         * lib/uniconv/u32-conv-to-enc.c: Likewise.
31831         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
31832         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
31833         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
31834         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
31835         * lib/uniconv/u8-conv-from-enc.c: Likewise.
31836         * lib/uniconv/u8-conv-to-enc.c: Likewise.
31837         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
31838         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
31839         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
31840         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
31841         * lib/uniname.h: Likewise.
31842         * lib/uniname/uniname.c: Likewise.
31843         * lib/unistdio.h: Likewise.
31844         * lib/unistdio/u-asnprintf.h: Likewise.
31845         * lib/unistdio/u-asprintf.h: Likewise.
31846         * lib/unistdio/u-printf-args.c: Likewise.
31847         * lib/unistdio/u-printf-args.h: Likewise.
31848         * lib/unistdio/u-printf-parse.h: Likewise.
31849         * lib/unistdio/u-snprintf.h: Likewise.
31850         * lib/unistdio/u-sprintf.h: Likewise.
31851         * lib/unistdio/u-vasprintf.h: Likewise.
31852         * lib/unistdio/u-vsnprintf.h: Likewise.
31853         * lib/unistdio/u-vsprintf.h: Likewise.
31854         * lib/unistdio/u16-asnprintf.c: Likewise.
31855         * lib/unistdio/u16-asprintf.c: Likewise.
31856         * lib/unistdio/u16-printf-parse.c: Likewise.
31857         * lib/unistdio/u16-snprintf.c: Likewise.
31858         * lib/unistdio/u16-sprintf.c: Likewise.
31859         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
31860         * lib/unistdio/u16-u16-asprintf.c: Likewise.
31861         * lib/unistdio/u16-u16-snprintf.c: Likewise.
31862         * lib/unistdio/u16-u16-sprintf.c: Likewise.
31863         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
31864         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
31865         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
31866         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
31867         * lib/unistdio/u16-vasnprintf.c: Likewise.
31868         * lib/unistdio/u16-vasprintf.c: Likewise.
31869         * lib/unistdio/u16-vsnprintf.c: Likewise.
31870         * lib/unistdio/u16-vsprintf.c: Likewise.
31871         * lib/unistdio/u32-asnprintf.c: Likewise.
31872         * lib/unistdio/u32-asprintf.c: Likewise.
31873         * lib/unistdio/u32-printf-parse.c: Likewise.
31874         * lib/unistdio/u32-snprintf.c: Likewise.
31875         * lib/unistdio/u32-sprintf.c: Likewise.
31876         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
31877         * lib/unistdio/u32-u32-asprintf.c: Likewise.
31878         * lib/unistdio/u32-u32-snprintf.c: Likewise.
31879         * lib/unistdio/u32-u32-sprintf.c: Likewise.
31880         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
31881         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
31882         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
31883         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
31884         * lib/unistdio/u32-vasnprintf.c: Likewise.
31885         * lib/unistdio/u32-vasprintf.c: Likewise.
31886         * lib/unistdio/u32-vsnprintf.c: Likewise.
31887         * lib/unistdio/u32-vsprintf.c: Likewise.
31888         * lib/unistdio/u8-asnprintf.c: Likewise.
31889         * lib/unistdio/u8-asprintf.c: Likewise.
31890         * lib/unistdio/u8-printf-parse.c: Likewise.
31891         * lib/unistdio/u8-snprintf.c: Likewise.
31892         * lib/unistdio/u8-sprintf.c: Likewise.
31893         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
31894         * lib/unistdio/u8-u8-asprintf.c: Likewise.
31895         * lib/unistdio/u8-u8-snprintf.c: Likewise.
31896         * lib/unistdio/u8-u8-sprintf.c: Likewise.
31897         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
31898         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
31899         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
31900         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
31901         * lib/unistdio/u8-vasnprintf.c: Likewise.
31902         * lib/unistdio/u8-vasprintf.c: Likewise.
31903         * lib/unistdio/u8-vsnprintf.c: Likewise.
31904         * lib/unistdio/u8-vsprintf.c: Likewise.
31905         * lib/unistdio/ulc-asnprintf.c: Likewise.
31906         * lib/unistdio/ulc-asprintf.c: Likewise.
31907         * lib/unistdio/ulc-printf-parse.c: Likewise.
31908         * lib/unistdio/ulc-snprintf.c: Likewise.
31909         * lib/unistdio/ulc-sprintf.c: Likewise.
31910         * lib/unistdio/ulc-vasnprintf.c: Likewise.
31911         * lib/unistdio/ulc-vasprintf.c: Likewise.
31912         * lib/unistdio/ulc-vsnprintf.c: Likewise.
31913         * lib/unistdio/ulc-vsprintf.c: Likewise.
31914         * lib/unistr.h: Likewise.
31915         * lib/unistr/u-cpy-alloc.h: Likewise.
31916         * lib/unistr/u-cpy.h: Likewise.
31917         * lib/unistr/u-endswith.h: Likewise.
31918         * lib/unistr/u-move.h: Likewise.
31919         * lib/unistr/u-set.h: Likewise.
31920         * lib/unistr/u-startswith.h: Likewise.
31921         * lib/unistr/u-stpcpy.h: Likewise.
31922         * lib/unistr/u-stpncpy.h: Likewise.
31923         * lib/unistr/u-strcat.h: Likewise.
31924         * lib/unistr/u-strcpy.h: Likewise.
31925         * lib/unistr/u-strcspn.h: Likewise.
31926         * lib/unistr/u-strdup.h: Likewise.
31927         * lib/unistr/u-strlen.h: Likewise.
31928         * lib/unistr/u-strncat.h: Likewise.
31929         * lib/unistr/u-strncpy.h: Likewise.
31930         * lib/unistr/u-strnlen.h: Likewise.
31931         * lib/unistr/u-strpbrk.h: Likewise.
31932         * lib/unistr/u-strspn.h: Likewise.
31933         * lib/unistr/u-strstr.h: Likewise.
31934         * lib/unistr/u-strtok.h: Likewise.
31935         * lib/unistr/u16-check.c: Likewise.
31936         * lib/unistr/u16-chr.c: Likewise.
31937         * lib/unistr/u16-cmp.c: Likewise.
31938         * lib/unistr/u16-cpy-alloc.c: Likewise.
31939         * lib/unistr/u16-cpy.c: Likewise.
31940         * lib/unistr/u16-endswith.c: Likewise.
31941         * lib/unistr/u16-mblen.c: Likewise.
31942         * lib/unistr/u16-mbsnlen.c: Likewise.
31943         * lib/unistr/u16-mbtouc-aux.c: Likewise.
31944         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
31945         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
31946         * lib/unistr/u16-mbtouc.c: Likewise.
31947         * lib/unistr/u16-mbtoucr.c: Likewise.
31948         * lib/unistr/u16-move.c: Likewise.
31949         * lib/unistr/u16-next.c: Likewise.
31950         * lib/unistr/u16-prev.c: Likewise.
31951         * lib/unistr/u16-set.c: Likewise.
31952         * lib/unistr/u16-startswith.c: Likewise.
31953         * lib/unistr/u16-stpcpy.c: Likewise.
31954         * lib/unistr/u16-stpncpy.c: Likewise.
31955         * lib/unistr/u16-strcat.c: Likewise.
31956         * lib/unistr/u16-strchr.c: Likewise.
31957         * lib/unistr/u16-strcmp.c: Likewise.
31958         * lib/unistr/u16-strcpy.c: Likewise.
31959         * lib/unistr/u16-strcspn.c: Likewise.
31960         * lib/unistr/u16-strdup.c: Likewise.
31961         * lib/unistr/u16-strlen.c: Likewise.
31962         * lib/unistr/u16-strmblen.c: Likewise.
31963         * lib/unistr/u16-strmbtouc.c: Likewise.
31964         * lib/unistr/u16-strncat.c: Likewise.
31965         * lib/unistr/u16-strncmp.c: Likewise.
31966         * lib/unistr/u16-strncpy.c: Likewise.
31967         * lib/unistr/u16-strnlen.c: Likewise.
31968         * lib/unistr/u16-strpbrk.c: Likewise.
31969         * lib/unistr/u16-strrchr.c: Likewise.
31970         * lib/unistr/u16-strspn.c: Likewise.
31971         * lib/unistr/u16-strstr.c: Likewise.
31972         * lib/unistr/u16-strtok.c: Likewise.
31973         * lib/unistr/u16-to-u32.c: Likewise.
31974         * lib/unistr/u16-to-u8.c: Likewise.
31975         * lib/unistr/u16-uctomb-aux.c: Likewise.
31976         * lib/unistr/u16-uctomb.c: Likewise.
31977         * lib/unistr/u32-check.c: Likewise.
31978         * lib/unistr/u32-chr.c: Likewise.
31979         * lib/unistr/u32-cmp.c: Likewise.
31980         * lib/unistr/u32-cpy-alloc.c: Likewise.
31981         * lib/unistr/u32-cpy.c: Likewise.
31982         * lib/unistr/u32-endswith.c: Likewise.
31983         * lib/unistr/u32-mblen.c: Likewise.
31984         * lib/unistr/u32-mbsnlen.c: Likewise.
31985         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
31986         * lib/unistr/u32-mbtouc.c: Likewise.
31987         * lib/unistr/u32-mbtoucr.c: Likewise.
31988         * lib/unistr/u32-move.c: Likewise.
31989         * lib/unistr/u32-next.c: Likewise.
31990         * lib/unistr/u32-prev.c: Likewise.
31991         * lib/unistr/u32-set.c: Likewise.
31992         * lib/unistr/u32-startswith.c: Likewise.
31993         * lib/unistr/u32-stpcpy.c: Likewise.
31994         * lib/unistr/u32-stpncpy.c: Likewise.
31995         * lib/unistr/u32-strcat.c: Likewise.
31996         * lib/unistr/u32-strchr.c: Likewise.
31997         * lib/unistr/u32-strcmp.c: Likewise.
31998         * lib/unistr/u32-strcpy.c: Likewise.
31999         * lib/unistr/u32-strcspn.c: Likewise.
32000         * lib/unistr/u32-strdup.c: Likewise.
32001         * lib/unistr/u32-strlen.c: Likewise.
32002         * lib/unistr/u32-strmblen.c: Likewise.
32003         * lib/unistr/u32-strmbtouc.c: Likewise.
32004         * lib/unistr/u32-strncat.c: Likewise.
32005         * lib/unistr/u32-strncmp.c: Likewise.
32006         * lib/unistr/u32-strncpy.c: Likewise.
32007         * lib/unistr/u32-strnlen.c: Likewise.
32008         * lib/unistr/u32-strpbrk.c: Likewise.
32009         * lib/unistr/u32-strrchr.c: Likewise.
32010         * lib/unistr/u32-strspn.c: Likewise.
32011         * lib/unistr/u32-strstr.c: Likewise.
32012         * lib/unistr/u32-strtok.c: Likewise.
32013         * lib/unistr/u32-to-u16.c: Likewise.
32014         * lib/unistr/u32-to-u8.c: Likewise.
32015         * lib/unistr/u32-uctomb.c: Likewise.
32016         * lib/unistr/u8-check.c: Likewise.
32017         * lib/unistr/u8-chr.c: Likewise.
32018         * lib/unistr/u8-cmp.c: Likewise.
32019         * lib/unistr/u8-cpy-alloc.c: Likewise.
32020         * lib/unistr/u8-cpy.c: Likewise.
32021         * lib/unistr/u8-endswith.c: Likewise.
32022         * lib/unistr/u8-mblen.c: Likewise.
32023         * lib/unistr/u8-mbsnlen.c: Likewise.
32024         * lib/unistr/u8-mbtouc-aux.c: Likewise.
32025         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
32026         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
32027         * lib/unistr/u8-mbtouc.c: Likewise.
32028         * lib/unistr/u8-mbtoucr.c: Likewise.
32029         * lib/unistr/u8-move.c: Likewise.
32030         * lib/unistr/u8-next.c: Likewise.
32031         * lib/unistr/u8-prev.c: Likewise.
32032         * lib/unistr/u8-set.c: Likewise.
32033         * lib/unistr/u8-startswith.c: Likewise.
32034         * lib/unistr/u8-stpcpy.c: Likewise.
32035         * lib/unistr/u8-stpncpy.c: Likewise.
32036         * lib/unistr/u8-strcat.c: Likewise.
32037         * lib/unistr/u8-strchr.c: Likewise.
32038         * lib/unistr/u8-strcmp.c: Likewise.
32039         * lib/unistr/u8-strcpy.c: Likewise.
32040         * lib/unistr/u8-strcspn.c: Likewise.
32041         * lib/unistr/u8-strdup.c: Likewise.
32042         * lib/unistr/u8-strlen.c: Likewise.
32043         * lib/unistr/u8-strmblen.c: Likewise.
32044         * lib/unistr/u8-strmbtouc.c: Likewise.
32045         * lib/unistr/u8-strncat.c: Likewise.
32046         * lib/unistr/u8-strncmp.c: Likewise.
32047         * lib/unistr/u8-strncpy.c: Likewise.
32048         * lib/unistr/u8-strnlen.c: Likewise.
32049         * lib/unistr/u8-strpbrk.c: Likewise.
32050         * lib/unistr/u8-strrchr.c: Likewise.
32051         * lib/unistr/u8-strspn.c: Likewise.
32052         * lib/unistr/u8-strstr.c: Likewise.
32053         * lib/unistr/u8-strtok.c: Likewise.
32054         * lib/unistr/u8-to-u16.c: Likewise.
32055         * lib/unistr/u8-to-u32.c: Likewise.
32056         * lib/unistr/u8-uctomb-aux.c: Likewise.
32057         * lib/unistr/u8-uctomb.c: Likewise.
32058         * lib/unitypes.h: Likewise.
32059         * lib/uniwidth.h: Likewise.
32060         * lib/uniwidth/cjk.h: Likewise.
32061         * lib/uniwidth/u16-strwidth.c: Likewise.
32062         * lib/uniwidth/u16-width.c: Likewise.
32063         * lib/uniwidth/u32-strwidth.c: Likewise.
32064         * lib/uniwidth/u32-width.c: Likewise.
32065         * lib/uniwidth/u8-strwidth.c: Likewise.
32066         * lib/uniwidth/u8-width.c: Likewise.
32067         * lib/uniwidth/width.c: Likewise.
32068
32069 2007-10-07  Bruno Haible  <bruno@clisp.org>
32070
32071         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
32072         The file is still under LGPL (see modules/inttypes).
32073
32074 2007-10-06  Bruno Haible  <bruno@clisp.org>
32075
32076         * modules/trunc (Dependencies): Add 'extensions'.
32077         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
32078         Reported by Ben Pfaff <blp@gnu.org>.
32079
32080 2007-10-06  Bruno Haible  <bruno@clisp.org>
32081
32082         * modules/freopen-tests: New file.
32083         * tests/test-freopen.c: New file.
32084
32085         * modules/fopen-tests: New file.
32086         * tests/test-fopen.c: New file.
32087
32088         * modules/fopen: New file.
32089         * lib/fopen.c: New file.
32090         * m4/fopen.m4: New file.
32091         * modules/freopen: New file.
32092         * lib/freopen.c: New file.
32093         * m4/freopen.m4: New file.
32094         * lib/stdio.in.h (fopen, freopen): New declarations.
32095         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
32096         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
32097         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
32098         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
32099         * doc/functions/fopen.texi: Mention the 'fopen' module.
32100         * doc/functions/freopen.texi: Mention the 'freopen' module.
32101
32102 2007-10-06  Bruno Haible  <bruno@clisp.org>
32103
32104         * modules/open-tests: New file.
32105         * tests/test-open.c: New file.
32106
32107         * modules/open: New file.
32108         * lib/open.c: New file.
32109         * m4/open.m4: New file.
32110         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
32111         lib/open.c does.
32112         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
32113         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
32114         macros.
32115         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
32116         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
32117         REPLACE_OPEN.
32118         * doc/functions/open.texi: Mention the 'open' module.
32119
32120 2007-10-04  Bruno Haible  <bruno@clisp.org>
32121
32122         * modules/ceill-tests: New file.
32123         * tests/test-ceill.c: New file.
32124
32125         * modules/ceill: New file.
32126         * lib/ceill.c: Replace entire file.
32127         * m4/ceill.m4: New file.
32128         * lib/math.in.h (ceill): Replace declaration.
32129         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
32130         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
32131         * doc/functions/ceill.texi: Mention the 'ceill' module.
32132         * modules/mathl (Files): Remove lib/ceill.c.
32133         (Depends-on): Add ceill.
32134
32135 2007-10-04  Bruno Haible  <bruno@clisp.org>
32136
32137         * modules/ceilf-tests: New file.
32138         * tests/test-ceilf.c: New file.
32139
32140         * modules/ceilf: New file.
32141         * lib/ceil.c: New file.
32142         * lib/ceilf.c: New file.
32143         * m4/ceilf.m4: New file.
32144         * lib/math.in.h (ceilf): New declaration.
32145         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
32146         HAVE_DECL_CEILF.
32147         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
32148         HAVE_DECL_CEILF.
32149         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
32150
32151 2007-10-04  Bruno Haible  <bruno@clisp.org>
32152
32153         * modules/floorl-tests: New file.
32154         * tests/test-floorl.c: New file.
32155
32156         * modules/floorl: New file.
32157         * lib/floorl.c: Replace entire file.
32158         * m4/floorl.m4: New file.
32159         * lib/math.in.h (floorl): Replace declaration.
32160         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
32161         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
32162         * doc/functions/floorl.texi: Mention the 'floorl' module.
32163         * modules/mathl (Files): Remove lib/floorl.c.
32164         (Depends-on): Add floorl.
32165
32166 2007-10-04  Bruno Haible  <bruno@clisp.org>
32167
32168         * modules/floorf-tests: New file.
32169         * tests/test-floorf.c: New file.
32170
32171         * modules/floorf: New file.
32172         * lib/floor.c: New file.
32173         * lib/floorf.c: New file.
32174         * m4/floorf.m4: New file.
32175         * lib/math.in.h (floorf): New declaration.
32176         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
32177         HAVE_DECL_FLOORF.
32178         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
32179         HAVE_DECL_FLOORF.
32180         * doc/functions/floorf.texi: Mention the 'floorf' module.
32181
32182 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
32183             Bruno Haible  <bruno@clisp.org>
32184
32185         Advertise for the Git server instead of the CVS server.
32186         * doc/gnulib-intro.texi (Steady Development): Mention the Git
32187         repository instead of the CVS one.
32188         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
32189         about all VCS systems generically.
32190         * doc/gnulib.texi (Introduction): Capitalize `Git'.
32191
32192 2007-10-04  Bruno Haible  <bruno@clisp.org>
32193
32194         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
32195         means.
32196         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
32197
32198 2007-10-04  Bruno Haible  <bruno@clisp.org>
32199
32200         * modules/truncl-tests: New file.
32201         * tests/test-truncl.c: New file.
32202
32203         * modules/truncl: New file.
32204         * lib/truncl.c: New file.
32205         * m4/truncl.m4: New file.
32206         * lib/math.in.h (truncl): New declaration.
32207         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
32208         HAVE_DECL_TRUNCL.
32209         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
32210         HAVE_DECL_TRUNCL.
32211         * doc/functions/truncl.texi: Mention the 'truncl' module.
32212
32213 2007-10-04  Bruno Haible  <bruno@clisp.org>
32214
32215         * modules/truncf-tests: New file.
32216         * tests/test-truncf.c: New file.
32217
32218         * modules/truncf: New file.
32219         * lib/trunc.c: Make paramerizable through USE_* macros.
32220         * lib/truncf.c: New file.
32221         * m4/truncf.m4: New file.
32222         * lib/math.in.h (truncf): New declaration.
32223         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
32224         HAVE_DECL_TRUNCF.
32225         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
32226         HAVE_DECL_TRUNCF.
32227         * doc/functions/truncf.texi: Mention the 'truncf' module.
32228
32229 2007-10-03  Bruno Haible  <bruno@clisp.org>
32230
32231         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
32232         augmentation also for tests modules.
32233         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
32234         * modules/atexit-tests (Makefile.am): Likewise.
32235         * modules/binary-io-tests (Makefile.am): Likewise.
32236         * modules/c-strcase-tests (Makefile.am): Likewise.
32237         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
32238         * modules/canonicalize-tests (Makefile.am): Likewise.
32239         * modules/closein-tests (Makefile.am): Likewise.
32240         * modules/fprintf-posix-tests (Makefile.am): Likewise.
32241         * modules/freadahead-tests (Makefile.am): Likewise.
32242         * modules/fseek-tests (Makefile.am): Likewise.
32243         * modules/fseeko-tests (Makefile.am): Likewise.
32244         * modules/ftell-tests (Makefile.am): Likewise.
32245         * modules/ftello-tests (Makefile.am): Likewise.
32246         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
32247         * modules/isnanl-tests (Makefile.am): Likewise.
32248         * modules/lseek-tests (Makefile.am): Likewise.
32249         * modules/mbscasecmp-tests (Makefile.am): Likewise.
32250         * modules/mbscasestr-tests (Makefile.am): Likewise.
32251         * modules/mbschr-tests (Makefile.am): Likewise.
32252         * modules/mbscspn-tests (Makefile.am): Likewise.
32253         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
32254         * modules/mbspbrk-tests (Makefile.am): Likewise.
32255         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
32256         * modules/mbsrchr-tests (Makefile.am): Likewise.
32257         * modules/mbsspn-tests (Makefile.am): Likewise.
32258         * modules/mbsstr-tests (Makefile.am): Likewise.
32259         * modules/printf-posix-tests (Makefile.am): Likewise.
32260         * modules/snprintf-posix-tests (Makefile.am): Likewise.
32261         * modules/sprintf-posix-tests (Makefile.am): Likewise.
32262         * modules/tsearch-tests (Makefile.am): Likewise.
32263         * modules/uniname/uniname-tests (Makefile.am): Likewise.
32264         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
32265         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
32266         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
32267         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
32268         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
32269         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
32270         * modules/vprintf-posix-tests (Makefile.am): Likewise.
32271         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
32272         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
32273         * modules/xstrtoimax-tests (Makefile.am): Likewise.
32274         * modules/xstrtol-tests (Makefile.am): Likewise.
32275         * modules/xstrtoumax-tests (Makefile.am): Likewise.
32276         * modules/yesno-tests (Makefile.am): Likewise.
32277
32278 2007-10-03  Bruno Haible  <bruno@clisp.org>
32279
32280         * modules/trunc-tests: New file.
32281         * tests/test-trunc.c: New file.
32282
32283         * modules/trunc: New file.
32284         * lib/trunc.c: New file.
32285         * m4/trunc.m4: New file.
32286         * lib/math.in.h (trunc): New declaration.
32287         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
32288         HAVE_DECL_TRUNC.
32289         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
32290         HAVE_DECL_TRUNC.
32291         * doc/functions/trunc.texi: Mention the 'trunc' module.
32292
32293 2007-10-03  Bruno Haible  <bruno@clisp.org>
32294
32295         * tests/test-fpending.c: New file, mostly copied
32296         from coreutils/lib/t-fpending.c.
32297         * modules/fpending-tests: New file.
32298
32299 2007-10-03  Bruno Haible  <bruno@clisp.org>
32300
32301         Port the stdio extensions to QNX (untested).
32302         * lib/fseterr.c (fseterr): Add support for QNX.
32303         * lib/fbufmode.c (fbufmode): Likewise.
32304         * lib/freadable.c (freadable): Likewise.
32305         * lib/fwritable.c (fwritable): Likewise.
32306         * lib/freading.c (freading): Likewise.
32307         * lib/fwriting.c (fwriting): Likewise.
32308         * lib/freadahead.c (freadahed): Likewise.
32309         * lib/fpurge.c (fpurge): Likewise.
32310         * lib/fseeko.c (rpl_fseeko): Likewise.
32311
32312 2007-10-03  Bruno Haible  <bruno@clisp.org>
32313             Jim Meyering  <jim@meyering.net>
32314             Eric Blake  <ebb9@byu.net>
32315
32316         * doc/relocatable.texi: Use @command instead of @program.
32317
32318 2007-10-02  Jim Meyering  <jim@meyering.net>
32319
32320         Perform one more "_.h" -> ".in.h" substitution.
32321         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
32322         instead of unistd_.h here, too.
32323
32324 2007-10-01  Bruno Haible  <bruno@clisp.org>
32325
32326         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
32327         Needed for the alloca-opt module.
32328
32329 2007-09-30  Bruno Haible  <bruno@clisp.org>
32330
32331         * lib/alloca.in.h: Renamed from lib/alloca_.h.
32332         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
32333         alloca_.h.
32334         * lib/argz.in.h: Renamed from lib/argz_.h.
32335         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
32336         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
32337         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
32338         byteswap_.h.
32339         * lib/dirent.in.h: Renamed from lib/dirent_.h.
32340         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
32341         dirent_.h.
32342         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
32343         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
32344         fcntl_.h.
32345         * lib/float.in.h: Renamed from lib/float_.h.
32346         * modules/float (Files, Makefile.am): Use float.in.h instead of
32347         float_.h.
32348         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
32349         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
32350         fnmatch_.h.
32351         * lib/getopt.in.h: Renamed from lib/getopt_.h.
32352         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
32353         getopt_.h.
32354         * lib/glob.in.h: Renamed from lib/glob_.h.
32355         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
32356         * lib/iconv.in.h: Renamed from lib/iconv_.h.
32357         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
32358         iconv_.h.
32359         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
32360         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
32361         inttypes_.h.
32362         * lib/locale.in.h: Renamed from lib/locale_.h.
32363         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
32364         locale_.h.
32365         * lib/math.in.h: Renamed from lib/math_.h.
32366         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
32367         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
32368         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
32369         of netinet_in_.h. Add dependency.
32370         * lib/poll.in.h: Renamed from lib/poll_.h.
32371         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
32372         * lib/search.in.h: Renamed from lib/search_.h.
32373         * modules/search (Files, Makefile.am): Use search.in.h instead of
32374         search_.h.
32375         * lib/signal.in.h: Renamed from lib/signal_.h.
32376         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
32377         _signal.h.
32378         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
32379         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
32380         stdbool_.h.
32381         * lib/stdint.in.h: Renamed from lib/stdint_.h.
32382         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
32383         stdint_.h.
32384         * lib/stdio.in.h: Renamed from lib/stdio_.h.
32385         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
32386         stdio_.h.
32387         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
32388         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
32389         stdlib_.h.
32390         * lib/string.in.h: Renamed from lib/string_.h.
32391         * modules/string (Files, Makefile.am): Use string.in.h instead of
32392         string_.h.
32393         * doc/gnulib-tool.texi (Initial import): Update.
32394         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
32395         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
32396         of sys_select_.h. Add dependency.
32397         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
32398         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
32399         of sys_socket_.h.
32400         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
32401         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
32402         sys_stat_.h.
32403         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
32404         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
32405         sys_time_.h.
32406         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
32407         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
32408         sysexits_.h.
32409         * lib/time.in.h: Renamed from lib/time_.h.
32410         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
32411         * lib/unistd.in.h: Renamed from lib/unistd_.h.
32412         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
32413         unistd_.h.
32414         * lib/wchar.in.h: Renamed from lib/wchar_.h.
32415         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
32416         wchar_.h.
32417         * lib/wctype.in.h: Renamed from lib/wctype_.h.
32418         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
32419         wctype_.h.
32420         * build-aux/bootstrap (slurp): Update.
32421         * lib/.cppi-disable: Update.
32422
32423 2007-09-30  Bruno Haible  <bruno@clisp.org>
32424
32425         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
32426         Needed on BeOS.
32427
32428 2007-09-30  Bruno Haible  <bruno@clisp.org>
32429
32430         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
32431
32432 2007-09-29  Bruno Haible  <bruno@clisp.org>
32433
32434         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
32435
32436 2007-09-29  Bruno Haible  <bruno@clisp.org>
32437
32438         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
32439         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
32440         * build-aux/install-reloc: Compile also areadlink.c.
32441         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
32442
32443 2007-09-29  Bruno Haible  <bruno@clisp.org>
32444
32445         * gnulib-tool (func_emit_initmacro_done): Indentation.
32446
32447 2007-09-29  Bruno Haible  <bruno@clisp.org>
32448
32449         * README: Add CVS checkout update instructions.
32450         Info from Bob Proulx <bob@proulx.com>.
32451
32452 2007-09-28  Eric Blake  <ebb9@byu.net>
32453
32454         Provide move-if-change.
32455         * build-aux/move-if-change: New file, based on best practice
32456         rather than any canonical upstream location.
32457
32458 2007-09-28  Jim Meyering  <jim@meyering.net>
32459
32460         Fix canonicalize loop-detection corner case.
32461         Do not attempt to stat the symlink values stored via seen_triple.
32462         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
32463         on linux-2.6.18, (but not 2.6.22).
32464         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
32465         triple_compare.  The former compares dev,ino,filename, while the latter
32466         would actually stat dirname(filename) when dev and ino were equal.
32467         * lib/hash-triple.c: Install <string.h>.
32468         (STREQ): Define.
32469         (triple_compare_ino_str): New function.
32470         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
32471
32472 2007-09-28  Eric Blake  <ebb9@byu.net>
32473
32474         Enforce that AC_REPLACE_FUNCS files exist.
32475         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
32476         override check for typos.
32477
32478         Fix test-closein on Solaris 10.
32479         * tests/test-closein.c (main): Don't assume stdin can be inherited
32480         closed on all systems.
32481         * tests/test-closein.sh: Likewise.
32482         Reported by Piotr Tarnowski.
32483
32484 2007-09-28  Jim Meyering  <jim@meyering.net>
32485
32486         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
32487
32488 2007-09-27  Jim Meyering  <jim@meyering.net>
32489
32490         canonicalize: Avoid a false-positive cycle failure.
32491         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
32492         Sort.  Remove cycle-check.
32493         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
32494         not cycle-check.h.
32495         (seen_triple): New function.
32496         (canonicalize_filename_mode): Use it instead of cycle-check.
32497         * tests/test-canonicalize.c: Add a test for this bug.
32498         * tests/test-canonicalize.sh: Set up and run the test.
32499
32500         New module, file-set, from coreutils.
32501         * modules/file-set: Define it.
32502         * lib/file-set.c, lib/file-set.h: Implement.
32503
32504         New module, hash-triple, from coreutils.
32505         * modules/hash-triple: Define it.
32506         * lib/hash-triple.c, lib/hash-triple.h: Implement.
32507
32508 2007-09-25  Eric Blake  <ebb9@byu.net>
32509
32510         Fix strerror on Interix.
32511         * lib/string_.h (strerror): Declare replacement.
32512         * doc/functions/strerror.texi (strerror): Document the Interix
32513         shortcoming.
32514         * modules/string (Makefile.am): Support new hooks.
32515         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
32516         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
32517         gl_FUNC_STRERROR_SEPARATE.
32518         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
32519         * lib/strerror.c (rpl_strerror): Provide replacement.
32520         * modules/strerror (Depends-on): Add string.
32521         (configure.ac): Detect use of module.
32522         * tests/test-strerror.c: New file.
32523         * modules/strerror-tests: New test module.
32524         * modules/argp (Depends-on): Add strerror.
32525         * modules/error (Depends-on): Likewise.
32526         Reported by Martin Koeppe.
32527
32528 2007-09-24  Bruno Haible  <bruno@clisp.org>
32529
32530         * README: Update git instructions.
32531
32532 2007-09-24  Eric Blake  <ebb9@byu.net>
32533
32534         Revert fpending breakage from 2007-09-08.
32535         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
32536         __fpending.c.
32537
32538 2007-09-24  Jim Meyering  <jim@meyering.net>
32539
32540         filenamecat.c: Add a test.
32541         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
32542         showing how the function works when DIR is the empty string.
32543
32544 2007-09-21  Simon Josefsson  <simon@josefsson.org>
32545
32546         * tests/test-canonicalize.sh: Turn on executable bit.
32547
32548 2007-09-19  Eric Blake  <ebb9@byu.net>
32549
32550         * README: Update CVS instructions.
32551
32552 2007-09-18  Bruno Haible  <bruno@clisp.org>
32553
32554         * modules/areadlink: New file.
32555         * lib/areadlink.h (areadlink): New declaration.
32556         * lib/areadlink.c: New file, based on lib/xreadlink.c.
32557
32558 2007-09-17  Jim Meyering  <jim@meyering.net>
32559
32560         * lib/savewd.c (ESTALE) [!defined]: Define.
32561         Reported to be required on Interix by Martin Koeppe.
32562
32563 2007-09-17  Bruno Haible  <bruno@clisp.org>
32564
32565         * gnulib-tool (func_version): Use $version.
32566
32567 2007-09-16  Bruno Haible  <bruno@clisp.org>
32568
32569         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
32570         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
32571         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
32572         Reported by Greg Schafer <gschafer@zip.com.au>.
32573
32574 2007-09-15  Bruno Haible  <bruno@clisp.org>
32575
32576         * gnulib-tool (sed): Try a little harder to make bash understand the
32577         alias.
32578         Reported by Bruce Korb <bruce.korb@gmail.com>.
32579
32580 2007-09-13  Eric Blake  <ebb9@byu.net>
32581
32582         * ChangeLog: Remove conflict markers.
32583
32584 2007-09-13  Simon Josefsson  <simon@josefsson.org>
32585
32586         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
32587         Reported by Bruno Haible <bruno@clisp.org>.
32588
32589 2007-09-12  Bruno Haible  <bruno@clisp.org>
32590
32591         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
32592         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
32593         is not defined.
32594
32595 2007-09-12  Eric Blake  <ebb9@byu.net>
32596
32597         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
32598         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
32599         Autoconf definition.
32600         * modules/euidaccess (Depends-on): Add extensions, for
32601         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
32602         * modules/fnmatch (Depends-on): Likewise.
32603         * modules/getaddrinfo (Depends-on): Likewise.
32604         * modules/getdelim (Depends-on): Likewise.
32605         * modules/getline (Depends-on): Likewise.
32606         * modules/getsubopt (Depends-on): Likewise.
32607         * modules/gettext (Depends-on): Likewise.
32608         * modules/group-member (Depends-on): Likewise.
32609         * modules/mbchar (Depends-on): Likewise.
32610         * modules/memmem (Depends-on): Likewise.
32611         * modules/mempcpy (Depends-on): Likewise.
32612         * modules/memrchr (Depends-on): Likewise.
32613         * modules/pagealign_alloc (Depends-on): Likewise.
32614         * modules/readutmp (Depends-on): Likewise.
32615         * modules/stpcpy (Depends-on): Likewise.
32616         * modules/stpncpy (Depends-on): Likewise.
32617         * modules/strchrnul (Depends-on): Likewise.
32618         * modules/strndup (Depends-on): Likewise.
32619         * modules/strsep (Depends-on): Likewise.
32620         * modules/strverscmp (Depends-on): Likewise.
32621         * modules/vasprintf (Depends-on): Likewise.
32622         * modules/wcwidth (Depends-on): Likewise.
32623         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
32624         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
32625         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
32626         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
32627         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
32628         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
32629         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
32630         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
32631         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
32632         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
32633         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
32634         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
32635         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
32636         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
32637         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
32638         * m4/readutmp.m4 (gl_READUTMP): Likewise.
32639         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
32640         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
32641         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
32642         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
32643         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
32644         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
32645         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
32646         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
32647         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
32648         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
32649         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
32650         so that lock.m4 can be used in gettext without extensions module.
32651
32652 2007-09-11  Bruno Haible  <bruno@clisp.org>
32653
32654         * m4/isc-posix.m4: Remove file.
32655         Suggested by Eric Blake.
32656
32657 2007-09-11  Eric Blake  <ebb9@byu.net>
32658
32659         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
32660
32661 2007-09-10  Bruno Haible  <bruno@clisp.org>
32662
32663         * posix-modules: Fix typo in error message.
32664         Reported by Matt <mkraai@beckman.com>.
32665
32666 2007-09-09  Bruno Haible  <bruno@clisp.org>
32667
32668         * doc/functions/getdelim.texi: Update list of platforms lacking the
32669         function.
32670         * doc/functions/getline.texi: Likewise.
32671
32672 2007-09-09  Jim Meyering  <jim@meyering.net>
32673
32674         * lib/hash.c (hash_initialize): Detect calloc failure.
32675         Reported by Bruno Haible.
32676
32677 2007-09-09  Bruno Haible  <bruno@clisp.org>
32678
32679         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
32680         malloc or realloc fails.
32681
32682 2007-09-09  Bruno Haible  <bruno@clisp.org>
32683
32684         * modules/getcwd (Depends-on): Add malloc-posix.
32685         * modules/glob (Depends-on): Likewise.
32686         * modules/putenv (Depends-on): Likewise.
32687         * modules/strdup (Depends-on): Likewise.
32688         * modules/getdelim (Depends-on): Add realloc-posix.
32689         * modules/read-file (Depends-on): Likewise.
32690
32691 2007-09-09  Bruno Haible  <bruno@clisp.org>
32692
32693         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
32694         (gl_FUNC_MALLOC_POSIX): Require it.
32695         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
32696         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
32697         * modules/realloc (Files): Add m4/malloc.m4.
32698         * modules/calloc (Files): Likewise.
32699
32700 2007-09-09  Bruno Haible  <bruno@clisp.org>
32701
32702         * modules/malloc-posix: New file.
32703         * modules/malloc (Depends-on): Add malloc-posix.
32704         * lib/malloc.c: Include errno.h.
32705         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
32706         and a POSIX-compatible malloc into a single function. Set ENOMEM
32707         when returning NULL.
32708         * m4/malloc.m4: New file.
32709         * doc/functions/malloc.texi: Mention the malloc-posix module.
32710         * lib/stdlib_.h (malloc): New declaration.
32711         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
32712         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
32713         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
32714         and HAVE_MALLOC_POSIX.
32715
32716 2007-09-09  Bruno Haible  <bruno@clisp.org>
32717
32718         * modules/realloc-posix: New file.
32719         * modules/realloc (Depends-on): Add realloc-posix.
32720         * lib/realloc.c: Include errno.h.
32721         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
32722         and a POSIX-compatible realloc into a single function. Set ENOMEM
32723         when returning NULL.
32724         * m4/realloc.m4: New file.
32725         * doc/functions/realloc.texi: Mention the realloc-posix module.
32726         * lib/stdlib_.h (realloc): New declaration.
32727         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
32728         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
32729         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
32730         and HAVE_REALLOC_POSIX.
32731
32732 2007-09-09  Bruno Haible  <bruno@clisp.org>
32733
32734         * modules/calloc-posix: New file.
32735         * modules/calloc (Depends-on): Add calloc-posix.
32736         * lib/calloc.c: Include errno.h.
32737         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
32738         and a POSIX-compatible calloc into a single function. Set ENOMEM
32739         when returning NULL.
32740         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
32741         * doc/functions/calloc.texi: Mention the calloc-posix module.
32742         * lib/stdlib_.h (calloc): New declaration.
32743         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
32744         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
32745         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
32746         and HAVE_CALLOC_POSIX.
32747
32748 2007-09-09  Bruno Haible  <bruno@clisp.org>
32749
32750         Allow for modules to show an arbitrary notice.
32751         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
32752         * gnulib-tool: New option --extract-notice.
32753         (func_usage): Document it.
32754         (sed_extract_prog): Update.
32755         (func_get_notice): New function.
32756         (func_modules_notice): New function.
32757         (func_import, func_create_testdir): Invoke it.
32758         Suggested by Jim Meyering.
32759
32760 2007-09-09  Bruno Haible  <bruno@clisp.org>
32761
32762         * gnulib-tool: New options --verbose, --quiet.
32763         (func_usage): Document them.
32764         (verbose): New variable.
32765         (func_execute_command): New function.
32766         (func_import): Don't show the module list and the file list if
32767         $verbose < 0.
32768         (func_create_testdir): Likewise. Use func_execute_command.
32769         (func_create_megatestdir): Use func_execute_command.
32770
32771 2007-09-08  Bruno Haible  <bruno@clisp.org>
32772
32773         * gnulib-tool (func_import): Prefer rsync over wget when available,
32774         for fetching the PO files.
32775
32776 2007-09-08  Bruno Haible  <bruno@clisp.org>
32777
32778         * posix-modules: New file. Portions copied from gnulib-tool.
32779         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
32780
32781 2007-09-08  Jim Meyering  <jim@meyering.net>
32782
32783         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
32784         * lib/fpending.h: Rename from __fpending.h.
32785         * lib/fpending.c: Rename from __fpending.c.
32786         Include "fpending.h", not "__fpending.h".
32787         * lib/__fpending.h, lib/__fpending.c: Remove files.
32788         * modules/fpending (Files): Reflect new file names.
32789         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
32790
32791 2007-09-08  Bruno Haible  <bruno@clisp.org>
32792
32793         * m4/inttypes-h.m4: Remove stub file.
32794
32795 2007-09-07  Simon Josefsson  <simon@josefsson.org>
32796
32797         * doc/headers/stdint.texi: Discuss #include_next issue.
32798
32799 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
32800
32801         * build-aux/bootstrap: Remove obsolete comment about wget --help.
32802
32803 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32804
32805         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
32806         in variable name.
32807
32808 2007-09-03  Jim Meyering  <jim@meyering.net>
32809
32810         New module: git-version-gen.
32811         * modules/git-version-gen: New file.
32812
32813         Import changes from coreutils for bootstrap script.
32814
32815         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
32816
32817         bootstrap: uses rsync to download the .po files
32818         * build-aux/bootstrap (po_download_command_format): New global.
32819         (download_po_files): Use rsync.
32820         (update_po_files): Don't remove .po files after download,
32821         so future rsync runs can take advantage of the copies.
32822
32823         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
32824
32825         Solve the unnecessary-.po-file-regeneration problem once and for all.
32826         * build-aux/bootstrap (download_po_files): New function, renamed from
32827         get_translations.  Now, downloads, but doesn't update LINGUAS.
32828         (update_po_files): New function.
32829
32830         bootstrap: Ignore more.
32831         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
32832         uniwidth to e.g., lib/.gitignore.
32833         (slurp): Handle the sys_stat_.h -> sys mapping, too.
32834
32835         * build-aux/bootstrap: New setting: vc_ignore.
32836         (insert_sorted_if_absent): Create $file if absent.
32837         Adapt to new, possibly empty, list: $vc_ignore.
32838
32839         bootstrap: generate more ignorable names
32840         * build-aux/bootstrap (slurp): When generating ignorable names,
32841         also map .sin to .sed, .gperf to .c, and .y to .c.
32842
32843 2007-09-03  Jim Meyering  <jim@meyering.net>
32844
32845         * build-aux/git-version-gen: New file, from coreutils.  For details, see
32846         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
32847
32848 2007-09-02  Bruno Haible  <bruno@clisp.org>
32849
32850         Fix mis-recognition of 'mcs' on QNX 6.
32851         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
32852         output contains the string "Mono".
32853         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
32854         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
32855
32856 2007-09-01  Bruno Haible  <bruno@clisp.org>
32857
32858         Fix collision between uniwidth/* and linebreak modules.
32859         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
32860         u32_width): Remove declarations.
32861         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
32862         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
32863         streq3, streq2, streq1, streq0): Remove functions.
32864         (STREQ): Remove macro.
32865         (is_cjk_encoding): Remove function.
32866         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
32867         (uc_width, u8_width, u16_width, u32_width): Remove functions.
32868         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
32869         * NEWS: Document the change.
32870
32871 2007-09-01  Bruno Haible  <bruno@clisp.org>
32872
32873         * lib/streq.h: Add double-inclusion guard.
32874
32875 2007-09-01  Karl Berry  <karl@gnu.org>
32876
32877         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
32878
32879 2007-08-28  Jim Meyering  <jim@meyering.net>
32880
32881         Rename mreadlink_with_size to areadlink_with_size.
32882         * NEWS: Document the change.
32883         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
32884         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
32885         * lib/mreadlink.h: Rename this to...
32886         * lib/areadlink.h: ...this.
32887         * modules/mreadlink-with-size: Rename this to...
32888         * modules/areadlink-with-size: ...this.
32889         * lib/canonicalize.c: Reflect the renaming.
32890         * modules/canonicalize: Likewise.
32891
32892 2007-08-26  Bruno Haible  <bruno@clisp.org>
32893
32894         * gnulib-tool (func_import): When deciding which files to remove,
32895         consider also dangling symbolic links.
32896         Reported by Eric Blake.
32897
32898 2007-08-26  Bruno Haible  <bruno@clisp.org>
32899
32900         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
32901
32902 2007-08-23  Simon Josefsson  <simon@josefsson.org>
32903
32904         * lib/readline.c: Don't include getline.h, the prototype is now
32905         found in stdio.h.
32906
32907 2007-08-23  Jim Meyering  <jim@meyering.net>
32908
32909         Getdelim touchup.
32910         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
32911         around the funlockfile call, since funlockfile never sets errno.
32912         Don't set errno upon failed realloc.
32913
32914 2007-08-22  Eric Blake  <ebb9@byu.net>
32915
32916         Getline touchups.
32917         * lib/getdelim.c (getdelim): Revert regression that required *n to
32918         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
32919         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
32920         getdelim, rather than whether implementation is missing.
32921         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
32922         * lib/stdio_.h (getline): Also declare if replacement is
32923         required.
32924         * doc/functions/getdelim.texi: New file.
32925         * doc/functions/getline.texi: Likewise.
32926         * doc/gnulib.texi (Function Substitutes): Add new files.
32927         Reported by Bruno Haible.
32928
32929 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
32930
32931         * users.txt: Add Guile.
32932
32933 2007-08-22  Eric Blake  <ebb9@byu.net>
32934
32935         * tests/test-getdelim.c (main): Use remove, not unlink.
32936         * tests/test-getline.c (main): Likewise.
32937
32938         Move getline and getdelim into stdio.h, per POSIX 200x.
32939         * modules/getline (Files): Remove getline.h.
32940         (Depends-on): Add stdio.
32941         (configure.ac): Add module indicator.
32942         * modules/getdelim (Files): Remove getdelim.h.
32943         (Depends-on): Add stdio.
32944         (configure.ac): Add module indicator.
32945         * modules/stdio (Makefile.am): Work with new indicators.
32946         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
32947         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
32948         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
32949         * lib/getdelim.h: Delete.
32950         * lib/getline.h: Delete.
32951         * lib/stdio_.h (getdelim, getline): Declare.
32952         * modules/getdelim-tests: New module.
32953         * modules/getline-tests: Likewise.
32954         * tests/test-getdelim.c: New file.
32955         * tests/test-getline.c: Likewise.
32956         * NEWS: Document the change.
32957         * lib/getline.c: Update choice of header.
32958         * lib/csharpcomp.c: Likewise.
32959         * lib/getpass.c: Likewise.
32960         * lib/javacomp.c: Likewise.
32961         * lib/javaversion.c: Likewise.
32962         * lib/yesno.c: Likewise.
32963         * lib/getdelim.c: Likewise.
32964         (getdelim): Set errno on failure, and avoid memory leak.
32965
32966 2007-08-19  Bruno Haible  <bruno@clisp.org>
32967
32968         * modules/closein (Depends-on): Add freadahead.
32969         * lib/closein.c: Include freadahead.h.
32970         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
32971         is zero.
32972
32973 2007-08-19  Bruno Haible  <bruno@clisp.org>
32974
32975         * modules/freadahead-tests: New file.
32976         * tests/test-freadahead.sh: New file.
32977         * tests/test-freadahead.c: New file.
32978
32979         * modules/freadahead: New file.
32980         * lib/freadahead.h: New file.
32981         * lib/freadahead.c: New file.
32982         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
32983         fbufmode, fpurge, freadable, fwritable.
32984
32985 2007-08-19  Eric Blake  <ebb9@byu.net>
32986
32987         Test yesno in combination with closein.
32988         * lib/yesno.c (yesno): Document use of stdin.
32989         * modules/yesno-tests (Files): New module.
32990         * tests/test-yesno.c (main): New file.
32991         * tests/test-yesno.sh: Likewise.
32992
32993 2007-08-19  Bruno Haible  <bruno@clisp.org>
32994
32995         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
32996         * lib/fseeko.c (rpl_fseeko): Likewise.
32997         * lib/fseterr.c (fseterr): Likewise.
32998
32999 2007-08-19  Bruno Haible  <bruno@clisp.org>
33000
33001         * tests/test-lseek.c (main): Disable a test for BeOS.
33002         * doc/functions/lseek.texi: Document the BeOS bug.
33003
33004 2007-08-19  Bruno Haible  <bruno@clisp.org>
33005             Eric Blake  <ebb9@byu.net>
33006
33007         * lib/lseek.c: Include <sys/stat.h>.
33008         (rpl_lseek): Add workaround code also for Unix platforms.
33009         Needed for BeOS.
33010         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
33011         * doc/functions/lseek.texi: Document BeOS definiency.
33012
33013 2007-08-18  Bruno Haible  <bruno@clisp.org>
33014
33015         * modules/fstrcmp-tests: New file.
33016         * tests/test-fstrcmp.c: New file.
33017
33018 2007-08-18  Bruno Haible  <bruno@clisp.org>
33019
33020         * modules/fstrcmp: New file, from GNU gettext with modifications.
33021         * lib/fstrcmp.h: New file, from GNU gettext.
33022         * lib/fstrcmp.c: New file, from GNU gettext.
33023         * MODULES.html.sh (String handling): Add fstrcmp.
33024
33025 2007-08-18  Bruno Haible  <bruno@clisp.org>
33026
33027         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
33028         'bool'.
33029         (diag, compareseq): Remove const from the ctxt argument.
33030         (USE_HEURISTIC): Undefine at the end.
33031
33032 2007-08-18  Jim Meyering  <jim@meyering.net>
33033
33034         New file: lib/idcache.h
33035         * NEWS: Mention the addition.
33036         * modules/idcache (Files): Add lib/idcache.h
33037         * lib/idcache.c: Include "idcache.h".
33038         Don't include <sys/types.h>.
33039         Add a FIXME comment.
33040         Move file-scoped "static" declarations to the top.
33041         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
33042
33043 2007-08-17  Bruno Haible  <bruno@clisp.org>
33044         and Paul Eggert  <eggert@cs.ucla.edu>
33045
33046         * MODULES.html.sh: Add diffseq.
33047         * modules/diffseq: New file.
33048         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
33049         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
33050
33051 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
33052
33053         Import changes from coreutils for bootstrap script.
33054
33055         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
33056
33057         * build-aux/bootstrap (slurp): Work even in environments where
33058         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
33059         current code does not slurp files whose names start with ".", and
33060         this looks like it might be a troublesome area.
33061
33062         2007-07-11  Jim Meyering  <jim@meyering.net>
33063
33064         If there's a GPL vN copyright comment, require that N == 3.
33065
33066         2007-07-08  Jim Meyering  <jim@meyering.net>
33067
33068         Run the coreutils-specific code only if tests/Makefile.am.in exists.
33069         * build-aux/bootstrap (mam_template): Move definition out of loop.
33070
33071         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
33072
33073         * build-aux/bootstrap (symlink_to_dir): Rename function from
33074         symlink_to_gnulib.  Add a directory parameter.  Update all
33075         callers.
33076         (cp_mark_as_generated): Also check for -- and link to -- files in
33077         gl/.
33078
33079         2007-07-08  Jim Meyering  <jim@meyering.net>
33080
33081         Adapt to deeper hierarchy in gnulib.
33082         * build-aux/bootstrap (symlink_to_dir): If the destination
33083         directory doesn't exist, create it. This is required at least for
33084         "lib/uniwidth/cjk.h".
33085
33086         2007-05-15  Jim Meyering  <jim@meyering.net>
33087
33088         * build-aux/bootstrap: Now that generated Makefile.am files
33089         are no longer under version control, they must be created at
33090         bootstrap time.
33091
33092 2007-08-14  Ben Pfaff  <blp@gnu.org>
33093
33094         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
33095
33096 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
33097
33098         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
33099         given the changes below.
33100         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
33101         even on hosts that have padding bits beyond the supported 64.
33102
33103 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
33104
33105         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
33106         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
33107         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
33108         depends on it.
33109         (xstrtol_error): Remove.
33110         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
33111         but with a different signature.
33112         (ATTRIBUTE_NORETURN, __attribute__): New macros.
33113         * lib/xstrtol-error.c: Include exitfail.h.
33114         (xstrtol_fatal): New function, with a different signature from the
33115         old xstrtol_error, so that the caller need not worry about passing
33116         in an exit status, or about storage management of the option argument.
33117         (xstrtol_error): Now a static function.  Redo signature to
33118         implement xstrtol_fatal.  Output the correct number of hyphens in
33119         front of the option so that the caller need not worry about
33120         storage management.
33121         (N_): New macro.
33122         (_): Remove; not used now.
33123         * modules/xstrtol: Depend on getopt.
33124         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
33125         of old STRTOL_FATAL_ERROR macro.
33126         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
33127         of test program.
33128         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
33129         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
33130
33131 2007-08-08  Eric Blake  <ebb9@byu.net>
33132
33133         * lib/xstrtol-error.c: Add missing include.
33134
33135         Move xstrtol messages into gnulib domain, when --pobase is used.
33136         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
33137         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
33138         * modules/xstrtol (Files): Distribute new file.
33139         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
33140         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
33141         * tests/test-xstrtol.c: ...into new file.
33142         * tests/test-xstrtoul.c: Also test xstrtoul.
33143         * tests/test-xstrtoimax.c: Also test xstrtoimax.
33144         * tests/test-xstrtoumax.c: Also test xstrtoumax.
33145         * tests/test-xstrtol.sh: Drive the tests.
33146         * tests/test-xstrtoimax.sh: Likewise.
33147         * tests/test-xstrtoumax.sh: Likewise.
33148         * modules/xstrtol-tests: New module.
33149         * modules/xstrtoimax-tests: Likewise.
33150         * modules/xstrtoumax-tests: Likewise.
33151
33152 2007-08-08  Jim Meyering  <jim@meyering.net>
33153
33154         New function: mfile_name_concat.
33155         * lib/filenamecat.c (mfile_name_concat): New function, just like
33156         file_name_concat, but return NULL upon failure rather than exiting
33157         with a diagnostic.
33158         * lib/filenamecat.h: Declare it.
33159
33160 2007-08-07  Bruno Haible  <bruno@clisp.org>
33161
33162         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
33163         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
33164         warning from gcc.
33165         Reported by Eric Blake.
33166
33167 2007-08-07  Simon Josefsson  <simon@josefsson.org>
33168
33169         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
33170         * modules/crypto/arcfour (License): Likewise.
33171         * modules/crypto/des-tests (License): Likewise.
33172         * modules/crypto/gc-arctwo-tests (License): Likewise.
33173         * modules/crypto/gc-des-tests (License): Likewise.
33174         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
33175         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
33176         * modules/crypto/gc-md2-tests (License): Likewise.
33177         * modules/crypto/gc-md4-tests (License): Likewise.
33178         * modules/crypto/gc-md5-tests (License): Likewise.
33179         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
33180         * modules/crypto/gc-rijndael-tests (License): Likewise.
33181         * modules/crypto/gc-sha1-tests (License): Likewise.
33182         * modules/crypto/gc-tests (License): Likewise.
33183         * modules/crypto/hmac-md5 (License): Likewise.
33184         * modules/crypto/hmac-sha1 (License): Likewise.
33185         * modules/crypto/md2-tests (License): Likewise.
33186         * modules/crypto/md4-tests (License): Likewise.
33187         * modules/crypto/md5 (License): Likewise.
33188         * modules/crypto/rijndael (License): Likewise.
33189         * modules/crypto/sha1 (License): Likewise.
33190         * modules/memxor (License): Likewise.
33191
33192 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
33193         and Bruno Haible  <bruno@clisp.org>
33194
33195         * NEWS: Describe interface changes to human, xstrtol.
33196         * lib/human.h: Include <xstrtol.h>.
33197         (human_options): Return enum strtol_error, not int.  Remove
33198         bool arg; take int * instead.
33199         * lib/human.c: Don't include "gettext.h".
33200         (_): Remove; no longer used.
33201         Don't include <xstrtol.h>, since human.h does it.
33202         (human_options): Adjust to abovementioned interface changes.
33203         Do not report error to stderr; that's now the caller's
33204         responsibility.
33205         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
33206         interface change.
33207         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
33208         Str, Argument_type_string.  All uses changed.  Put " argument"
33209         in diagnostics to make them clearer.  Change wording of suffix
33210         message for clarity.
33211         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
33212         Argument_type_string.
33213         (STRTOL_FATAL_WARN): Remove; no longer used.
33214         * modules/human (Depends-on): Remove gettext-h.
33215
33216 2007-08-06  Simon Josefsson  <simon@josefsson.org>
33217
33218         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
33219
33220 2007-07-31  Bruno Haible  <bruno@clisp.org>
33221
33222         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
33223         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
33224         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
33225
33226 2007-07-31  Bruno Haible  <bruno@clisp.org>
33227
33228         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
33229         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
33230
33231 2007-07-30  Bruno Haible  <bruno@clisp.org>
33232
33233         * modules/base64 (License): Use the synonymous term "LGPLv2+".
33234         * modules/c-ctype (License): Likewise.
33235         * modules/c-strcase (License): Likewise.
33236         * modules/check-version (License): Likewise.
33237         * modules/iconv (License): Likewise.
33238         * modules/iconv_open (License): Likewise.
33239         * modules/read-file (License): Likewise.
33240         * modules/striconv (License): Likewise.
33241         * modules/strverscmp (License): Likewise.
33242         * modules/vasprintf (License): Likewise.
33243         * modules/crypto/des (License): Likewise.
33244         * modules/crypto/gc (License): Likewise.
33245         * modules/crypto/gc-arcfour (License): Likewise.
33246         * modules/crypto/gc-arctwo (License): Likewise.
33247         * modules/crypto/gc-des (License): Likewise.
33248         * modules/crypto/gc-hmac-md5 (License): Likewise.
33249         * modules/crypto/gc-hmac-sha1 (License): Likewise.
33250         * modules/crypto/gc-md2 (License): Likewise.
33251         * modules/crypto/gc-md4 (License): Likewise.
33252         * modules/crypto/gc-md5 (License): Likewise.
33253         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
33254         * modules/crypto/gc-random (License): Likewise.
33255         * modules/crypto/gc-rijndael (License): Likewise.
33256         * modules/crypto/gc-sha1 (License): Likewise.
33257         * modules/crypto/md2 (License): Likewise.
33258         * modules/crypto/md4 (License): Likewise.
33259
33260 2007-07-30  Jim Meyering  <jim@meyering.net>
33261
33262         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
33263         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
33264         it has valid stat data.  This bug would cause du not to count the
33265         sizes of inaccessible directories.
33266         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
33267         in <http://bugzilla.redhat.com/250077>.
33268
33269 2007-07-25  Peter O'Gorman  <peter@pogma.com>
33270             Bruno Haible  <bruno@clisp.org>
33271
33272         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
33273         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
33274         #include_next, gives a diagnostic about it, but reports no error in
33275         the exit code.
33276         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
33277
33278 2007-07-24  Ben Pfaff  <blp@gnu.org>
33279
33280         Improve name: "count-one-bits" is better than "popcount".
33281         * MODULES.html.sh: Update name.
33282         * lib/popcount.h: Renamed lib/count-one-bits.h.
33283         (popcount): Renamed count_one_bits.
33284         (popcountl): Renamed count_one_bits_l.
33285         (popcountll): Renamed count_one_bits_ll.
33286         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
33287         * modules/popcount: Renamed module/count-one-bits.
33288         * modules/popcount-tests: Renamed module/count-one-bits-tests.
33289         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
33290
33291 2007-07-23  Ben Pfaff  <blp@gnu.org>
33292
33293         * lib/popcount.h (popcount32): Reduce size of constants, to allow
33294         better code generation, and add U to large constants to avoid
33295         warnings, in non-GCC case.
33296         Suggested by Bruno Haible.
33297
33298 2007-07-23  Ben Pfaff  <blp@gnu.org>
33299
33300         * lib/popcount.h: Use verify_true instead of if...abort.
33301         * modules/popcount: Depend on verify module.
33302         Suggested by Jim Meyering.
33303
33304 2007-07-23  Bruno Haible  <bruno@clisp.org>
33305
33306         * gnulib-tool (func_import): Create a .cvsignore file also when the
33307         directory is not yet in CVS but the toplevel directory is. When
33308         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
33309         Reported by Karl Berry.
33310
33311 2007-07-22  Ben Pfaff  <blp@gnu.org>
33312
33313         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
33314         case.
33315         Suggested by Eric Blake.
33316
33317 2007-07-22  Ben Pfaff  <blp@gnu.org>
33318
33319         New module: popcount.
33320         * MODULES.html.sh: Add popcount.
33321         * modules/popcount: New file.
33322         * modules/popcount-tests: New file.
33323         * tests/test-popcount.c: New file.
33324         * lib/popcount.h: New file.
33325         * m4/popcount.m4: New file.
33326
33327 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
33328
33329         * build-aux/announce-gen: Update to GPLv3.
33330
33331         * build-aux/config.guess: Update from config.
33332
33333 2007-07-21  Bruno Haible  <bruno@clisp.org>
33334
33335         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
33336         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
33337
33338 2007-07-20  Jim Meyering  <jim@meyering.net>
33339
33340         * check-module: Diagnose a self-dependency.
33341
33342 2007-07-19  Bruno Haible  <bruno@clisp.org>
33343
33344         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
33345         empty.
33346         Reported by Eric Blake.
33347
33348 2007-07-18  Bruno Haible  <bruno@clisp.org>
33349
33350         * gnulib-tool: New options --po-base, --po-domain.
33351         (func_usage): Document them.
33352         (pobase, po_domain): New variables.
33353         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
33354         DEFAULT_TEXT_DOMAIN.
33355         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
33356         (func_import): Consider pobase and po_domain. Create a po/ directory.
33357         (func_create_testdir): Set pobase and po_domain to empty.
33358         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
33359         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
33360
33361 2007-07-18  Bruno Haible  <bruno@clisp.org>
33362
33363         * gnulib-tool (func_get_automake_snippet): Synthesize also an
33364         EXTRA_DIST augmentation for files in build-aux/.
33365
33366 2007-07-16  Bruno Haible  <bruno@clisp.org>
33367
33368         * modules/lseek (License): Use the synonymous term "LGPLv2+".
33369         * modules/getdelim (License): Likewise.
33370
33371 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33372
33373         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
33374         * modules/d-type (License): Likewise.
33375         * modules/extensions (License): Likewise.
33376         * modules/fnmatch (License): Likewise.
33377         * modules/fseeko (License): Likewise.
33378         * modules/getaddrinfo (License): Likewise.
33379         * modules/getline (License): Likewise.
33380         * modules/getlogin_r (License): Likewise.
33381         * modules/getpass (License): Likewise.
33382         * modules/gettimeofday (License): Likewise.
33383         * modules/glob (License): Likewise.
33384         * modules/inet_ntop (License): Likewise.
33385         * modules/malloc (License): Likewise.
33386         * modules/malloca (License): Likewise.
33387         * modules/memmem (License): Likewise.
33388         * modules/mempcpy (License): Likewise.
33389         * modules/memset (License): Likewise.
33390         * modules/minmax (License): Likewise.
33391         * modules/mktime (License): Likewise.
33392         * modules/netinet_in (License): Likewise.
33393         * modules/pathmax (License): Likewise.
33394         * modules/poll (License): Likewise.
33395         * modules/regex (License): Likewise.
33396         * modules/snprintf (License): Likewise.
33397         * modules/stdbool (License): Likewise.
33398         * modules/stdint (License): Likewise.
33399         * modules/stdio (License): Likewise.
33400         * modules/strcase (License): Likewise.
33401         * modules/strcasestr (License): Likewise.
33402         * modules/strdup (License): Likewise.
33403         * modules/string (License): Likewise.
33404         * modules/strndup (License): Likewise.
33405         * modules/strnlen (License): Likewise.
33406         * modules/strpbrk (License): Likewise.
33407         * modules/strptime (License): Likewise.
33408         * modules/strsep (License): Likewise.
33409         * modules/sys_select (License): Likewise.
33410         * modules/sys_socket (License): Likewise.
33411         * modules/sys_stat (License): Likewise.
33412         * modules/sys_time (License): Likewise.
33413         * modules/time (License): Likewise.
33414         * modules/time_r (License): Likewise.
33415         * modules/timegm (License): Likewise.
33416         * modules/unistd (License): Likewise.
33417         * modules/vsnprintf (License): Likewise.
33418         * modules/wctype (License): Likewise.
33419
33420 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33421
33422         * modules/argz (License): LGPLv2+.
33423
33424 2007-07-15  Karl Berry  <karl@gnu.org>
33425
33426         * doc/gnulib.texi: revise node structure per new fdl.texi.
33427
33428 2007-07-14  Bruno Haible  <bruno@clisp.org>
33429
33430         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
33431         the output file.
33432         * lib/uniname/uninames.h: Regenerated.
33433
33434 2007-07-14  Karl Berry  <karl@gnu.org>
33435
33436         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
33437         omitting sectioning and index commands.
33438
33439 2007-07-13  Bruno Haible  <bruno@clisp.org>
33440
33441         New gnulib-tool option --more-symlinks.
33442         * gnulib-tool (func_usage): Document --more-symlinks.
33443         (do_copyrights): New variable.
33444         Recognize option --more-symlinks.
33445         (func_import): Don't add a copyright notice transform to
33446         sed_transform_lib_file if do_copyrights is empty.
33447
33448 2007-07-13  Bruno Haible  <bruno@clisp.org>
33449
33450         * lib/vasnprintf.c (decimal_point_char): Define also if
33451         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
33452         && !NEED_PRINTF_DIRECTIVE_A.
33453         Reported by Clemens Koller <clemens.koller@anagramm.de> via
33454         Gary V. Vaughan <gary@gnu.org>.
33455
33456 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
33457
33458         * lib/inttypes_.h: Undo previous change, since it was fixed
33459         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
33460
33461 2007-07-13  Bruno Haible  <bruno@clisp.org>
33462
33463         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
33464         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
33465
33466 2007-07-13  Jim Meyering  <jim@meyering.net>
33467
33468         df: Don't fail for Tru64's "file-on-file mount".
33469         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
33470         so we fall through and use statfs instead.  Details here:
33471         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
33472         Reported by Albert Chin.
33473
33474 2007-07-13  Bruno Haible  <bruno@clisp.org>
33475
33476         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
33477         * modules/configmake (License): Likewise.
33478         * modules/gettext (License): Likewise.
33479         * modules/gettext-h (License): Likewise.
33480         * modules/include_next (License): Likewise.
33481         * modules/link-warning (License): Likewise.
33482         * modules/localcharset (License): Likewise.
33483         * modules/localename (License): Likewise.
33484         * modules/lock (License): Likewise.
33485         * modules/relocatable-lib-lgpl (License): Likewise.
33486         * modules/size_max (License): Likewise.
33487         * modules/vasnprintf (License): Likewise.
33488         * modules/wchar (License): Likewise.
33489         * modules/xsize (License): Likewise.
33490
33491 2007-07-13  Bruno Haible  <bruno@clisp.org>
33492
33493         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
33494         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
33495
33496 2007-07-12  Bruno Haible  <bruno@clisp.org>
33497
33498         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
33499         in the modules files.
33500
33501 2007-07-11  Karl Berry  <karl@gnu.org>
33502
33503         * MODULES.html.sh (func_module): use
33504          sed -e '\|^'"${includefile}"'$|d'
33505          instead of /.../d, to avoid errors on $includefile's containing /.
33506
33507 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
33508
33509         * gnulib-tool (func_import): Avoid duplication of --avoid
33510         statements
33511         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
33512         names to `_' in variable names.
33513
33514 2007-07-10  Eric Blake  <ebb9@byu.net>
33515
33516         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
33517         * NEWS: Document this change.
33518
33519 2007-07-08  Bruno Haible  <bruno@clisp.org>
33520
33521         Update to Unicode 5.0.
33522         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
33523         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
33524         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
33525         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
33526         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
33527         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
33528         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
33529         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
33530         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
33531         U+10A3F, U+1D242..U+1D244.
33532         (nonspacing_table_ind): Update.
33533         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
33534         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
33535
33536 2007-07-08  Bruno Haible  <bruno@clisp.org>
33537
33538         Update to Unicode 5.0.
33539         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
33540         code transform. Extend the name index field of unicode_name_to_code and
33541         unicode_code_to_name from 16 to 24 bits.
33542         * lib/uniname/uniname.c (unicode_character_name,
33543         unicode_name_character): Add the range 0x12xxx to the code transform.
33544         * lib/uniname/uninames.h: Regenerated.
33545         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
33546
33547 2007-07-07  Bruno Haible  <bruno@clisp.org>
33548
33549         * modules/wcwidth-tests: New file.
33550         * tests/test-wcwidth.c: New file.
33551
33552         Work around MacOS X wcwidth() bug.
33553         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
33554         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
33555         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
33556         original wcwidth in non-UTF-8 locales.
33557         * modules/wcwidth (Depends-on): Add localcharset, streq,
33558         uniwidth/width.
33559         * doc/functions/wcwidth.texi: Update.
33560
33561 2007-07-07  Bruno Haible  <bruno@clisp.org>
33562
33563         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
33564         (wcwidth): New declaration.
33565         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
33566         macros.
33567         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
33568         here. Prepare for creating <wchar.h> unconditionally.
33569         * modules/wchar (Depends-on): Add link-warning.
33570         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
33571         REPLACE_WCWIDTH, and GL_LINK_WARNING.
33572         * lib/wcwidth.h: Remove file.
33573         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
33574         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
33575         * modules/wcwidth (Files): Remove lib/wcwidth.h.
33576         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
33577         (Include): Replace wcwidth.h with <wchar.h>.
33578         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
33579         * lib/mbchar.h: Don't include wcwidth.h.
33580         * lib/mbswidth.c: Likewise.
33581         * NEWS: Mention the change.
33582
33583 2007-07-07  Bruno Haible  <bruno@clisp.org>
33584
33585         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
33586         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
33587         definition with an external declaration.
33588         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
33589         defined as a function. Remove AC_C_INLINE requirement.
33590         * modules/wcwidth (Files): Add lib/wcwidth.c.
33591         (Makefile.am): Remove redundant statement.
33592
33593 2007-07-07  Bruno Haible  <bruno@clisp.org>
33594
33595         * MODULES.html.sh (Unicode string functions): Add the new modules.
33596
33597         * tests/uniwidth/test-u32-strwidth.c: New file.
33598         * modules/uniwidth/u32-strwidth-tests: New file.
33599
33600         * lib/uniwidth/u32-strwidth.c: New file.
33601         * modules/uniwidth/u32-strwidth: New file.
33602
33603         * tests/uniwidth/test-u16-strwidth.c: New file.
33604         * modules/uniwidth/u16-strwidth-tests: New file.
33605
33606         * lib/uniwidth/u16-strwidth.c: New file.
33607         * modules/uniwidth/u16-strwidth: New file.
33608
33609         * tests/uniwidth/test-u8-strwidth.c: New file.
33610         * modules/uniwidth/u8-strwidth-tests: New file.
33611
33612         * lib/uniwidth/u8-strwidth.c: New file.
33613         * modules/uniwidth/u8-strwidth: New file.
33614
33615         * tests/uniwidth/test-u32-width.c: New file.
33616         * modules/uniwidth/u32-width-tests: New file.
33617
33618         * lib/uniwidth/u32-width.c: New file.
33619         * modules/uniwidth/u32-width: New file.
33620
33621         * tests/uniwidth/test-u16-width.c: New file.
33622         * modules/uniwidth/u16-width-tests: New file.
33623
33624         * lib/uniwidth/u16-width.c: New file.
33625         * modules/uniwidth/u16-width: New file.
33626
33627         * tests/uniwidth/test-u8-width.c: New file.
33628         * modules/uniwidth/u8-width-tests: New file.
33629
33630         * lib/uniwidth/u8-width.c: New file.
33631         * modules/uniwidth/u8-width: New file.
33632
33633         * tests/uniwidth/test-uc_width.c: New file.
33634         * modules/uniwidth/width-tests: New file.
33635
33636         * lib/uniwidth/width.c: New file, from GNU libiconv.
33637         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
33638         * modules/uniwidth/width: New file.
33639
33640         * lib/uniwidth.h: New file, from GNU libiconv.
33641         * modules/uniwidth/base: New file.
33642
33643 2007-07-07  Bruno Haible  <bruno@clisp.org>
33644
33645         * lib/uniname.h: New file, from GNU gettext.
33646         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
33647         * lib/uniname/uninames.h: New file, from GNU gettext.
33648         * lib/uniname/uniname.c: New file, from GNU gettext.
33649         * tests/uniname/test-uninames.sh: New file.
33650         * tests/uniname/test-uninames.c: New file, from GNU gettext.
33651         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
33652         * modules/uniname/base: New file.
33653         * modules/uniname/uniname: New file.
33654         * modules/uniname/uniname-tests: New file.
33655         * MODULES.html.sh (Unicode string functions): Add the new modules.
33656
33657 2007-07-06  Bruno Haible  <bruno@clisp.org>
33658
33659         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
33660
33661 2007-07-06  Bruno Haible  <bruno@clisp.org>
33662
33663         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
33664         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
33665         includes <cygwin/sys_time.h> which includes <sys/select.h> which
33666         include <sys/time.h>.
33667         Reported by Eric Blake.
33668
33669 2007-07-06  Eric Blake  <ebb9@byu.net>
33670
33671         Fix testing canonicalize on cygwin.
33672         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
33673         Revert patch from 2007-06-19.
33674         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
33675         canonicalize module is also in use.
33676         * tests/test-canonicalize.c: New file.
33677         * tests/test-canonicalize.sh: Likewise.
33678         * modules/canonicalize-tests: Likewise.
33679
33680 2007-07-06  Jim Meyering  <jim@meyering.net>
33681
33682         * lib/getugroups.c (getugroups): Detect getgrent failure.
33683         Adjust comment to reflect reality: this function may return -1.
33684
33685 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
33686
33687         * build-aux/bootstrap (TP_URL,get_translations): Update to use
33688         the new TP address.
33689         (usage): Fix typo
33690         (gnulib_mk): New variable.
33691
33692 2007-07-05  Jim Meyering  <jim@meyering.net>
33693
33694         Don't let endgrent clobber errno, no matter how improbable.
33695         * lib/getugroups.c (getugroups): Save and restore errno around
33696         endgrent call.
33697
33698         Close the group DB even when failing with 2^31 or more members.
33699         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
33700
33701 2007-07-04  Jim Meyering  <jim@meyering.net>
33702
33703         * lib/getugroups.h: New file.
33704         * lib/getugroups.c: Include "getugroups.h".
33705         Remove uses of "register" keyword.
33706         Move local variable, "cp", down into scope where used.
33707         Give "username" parameter the "const" attribute.
33708         * modules/getugroups (Files): Add lib/getugroups.h
33709
33710 2007-07-04  Karl Berry  <karl@gnu.org>
33711
33712         * MODULES.html.sh (func_all_modules): Complete rename of
33713         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
33714
33715 2007-07-02  Bruno Haible  <bruno@clisp.org>
33716
33717         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
33718         mode, when inttypes.h comes from gnulib.
33719         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
33720
33721 2007-07-02  Simon Josefsson  <simon@josefsson.org>
33722
33723         * NEWS: Mention lgpl module name change.
33724
33725         * modules/lgpl-2.1: Renamed from lgpl.
33726
33727         * NEWS: Mention gpl module name change.
33728
33729         * modules/gpl-3.0: New file, based on gpl-2.0.
33730
33731         * modules/gpl-2.0: Renamed from gpl.
33732
33733         * modules/gpl: Fix filename, doc/gpl.texi is now found at
33734         doc/gpl-2.0.texi.
33735
33736 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
33737
33738         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
33739         #define __STDC_LIMIT_MACROS temporarily while including
33740         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
33741         Problem reported by Joel E. Denny in
33742         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
33743
33744 2007-07-01  Bruno Haible  <bruno@clisp.org>
33745
33746         * lib/unistdio.h: New file.
33747         * lib/unistdio/u-asnprintf.h: New file.
33748         * lib/unistdio/u-asprintf.h: New file.
33749         * lib/unistdio/u-printf-args.c: New file.
33750         * lib/unistdio/u-printf-args.h: New file.
33751         * lib/unistdio/u-printf-parse.h: New file.
33752         * lib/unistdio/u-snprintf.h: New file.
33753         * lib/unistdio/u-sprintf.h: New file.
33754         * lib/unistdio/u-vasprintf.h: New file.
33755         * lib/unistdio/u-vsnprintf.h: New file.
33756         * lib/unistdio/u-vsprintf.h: New file.
33757         * lib/unistdio/ulc-asnprintf.c: New file.
33758         * lib/unistdio/ulc-asprintf.c: New file.
33759         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
33760         * lib/unistdio/ulc-printf-parse.c: New file.
33761         * lib/unistdio/ulc-snprintf.c: New file.
33762         * lib/unistdio/ulc-sprintf.c: New file.
33763         * lib/unistdio/ulc-vasnprintf.c: New file.
33764         * lib/unistdio/ulc-vasprintf.c: New file.
33765         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
33766         * lib/unistdio/ulc-vsnprintf.c: New file.
33767         * lib/unistdio/ulc-vsprintf.c: New file.
33768         * lib/unistdio/u8-asnprintf.c: New file.
33769         * lib/unistdio/u8-asprintf.c: New file.
33770         * lib/unistdio/u8-printf-parse.c: New file.
33771         * lib/unistdio/u8-snprintf.c: New file.
33772         * lib/unistdio/u8-sprintf.c: New file.
33773         * lib/unistdio/u8-vasnprintf.c: New file.
33774         * lib/unistdio/u8-vasprintf.c: New file.
33775         * lib/unistdio/u8-vsnprintf.c: New file.
33776         * lib/unistdio/u8-vsprintf.c: New file.
33777         * lib/unistdio/u8-u8-asnprintf.c: New file.
33778         * lib/unistdio/u8-u8-asprintf.c: New file.
33779         * lib/unistdio/u8-u8-snprintf.c: New file.
33780         * lib/unistdio/u8-u8-sprintf.c: New file.
33781         * lib/unistdio/u8-u8-vasnprintf.c: New file.
33782         * lib/unistdio/u8-u8-vasprintf.c: New file.
33783         * lib/unistdio/u8-u8-vsnprintf.c: New file.
33784         * lib/unistdio/u8-u8-vsprintf.c: New file.
33785         * lib/unistdio/u16-asnprintf.c: New file.
33786         * lib/unistdio/u16-asprintf.c: New file.
33787         * lib/unistdio/u16-printf-parse.c: New file.
33788         * lib/unistdio/u16-snprintf.c: New file.
33789         * lib/unistdio/u16-sprintf.c: New file.
33790         * lib/unistdio/u16-vasnprintf.c: New file.
33791         * lib/unistdio/u16-vasprintf.c: New file.
33792         * lib/unistdio/u16-vsnprintf.c: New file.
33793         * lib/unistdio/u16-vsprintf.c: New file.
33794         * lib/unistdio/u16-u16-asnprintf.c: New file.
33795         * lib/unistdio/u16-u16-asprintf.c: New file.
33796         * lib/unistdio/u16-u16-snprintf.c: New file.
33797         * lib/unistdio/u16-u16-sprintf.c: New file.
33798         * lib/unistdio/u16-u16-vasnprintf.c: New file.
33799         * lib/unistdio/u16-u16-vasprintf.c: New file.
33800         * lib/unistdio/u16-u16-vsnprintf.c: New file.
33801         * lib/unistdio/u16-u16-vsprintf.c: New file.
33802         * lib/unistdio/u32-asnprintf.c: New file.
33803         * lib/unistdio/u32-asprintf.c: New file.
33804         * lib/unistdio/u32-printf-parse.c: New file.
33805         * lib/unistdio/u32-snprintf.c: New file.
33806         * lib/unistdio/u32-sprintf.c: New file.
33807         * lib/unistdio/u32-vasnprintf.c: New file.
33808         * lib/unistdio/u32-vasprintf.c: New file.
33809         * lib/unistdio/u32-vsnprintf.c: New file.
33810         * lib/unistdio/u32-vsprintf.c: New file.
33811         * lib/unistdio/u32-u32-asnprintf.c: New file.
33812         * lib/unistdio/u32-u32-asprintf.c: New file.
33813         * lib/unistdio/u32-u32-snprintf.c: New file.
33814         * lib/unistdio/u32-u32-sprintf.c: New file.
33815         * lib/unistdio/u32-u32-vasnprintf.c: New file.
33816         * lib/unistdio/u32-u32-vasprintf.c: New file.
33817         * lib/unistdio/u32-u32-vsnprintf.c: New file.
33818         * lib/unistdio/u32-u32-vsprintf.c: New file.
33819         * tests/unistdio/test-ulc-asnprintf1.c: New file.
33820         * tests/unistdio/test-ulc-asnprintf1.h: New file.
33821         * tests/unistdio/test-ulc-printf1.h: New file.
33822         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
33823         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
33824         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
33825         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
33826         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
33827         * tests/unistdio/test-ulc-vasprintf1.c: New file.
33828         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
33829         * tests/unistdio/test-ulc-vsprintf1.c: New file.
33830         * tests/unistdio/test-u8-asnprintf1.c: New file.
33831         * tests/unistdio/test-u8-asnprintf1.h: New file.
33832         * tests/unistdio/test-u8-printf1.h: New file.
33833         * tests/unistdio/test-u8-vasnprintf1.c: New file.
33834         * tests/unistdio/test-u8-vasnprintf2.c: New file.
33835         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
33836         * tests/unistdio/test-u8-vasnprintf3.c: New file.
33837         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
33838         * tests/unistdio/test-u8-vasprintf1.c: New file.
33839         * tests/unistdio/test-u8-vsnprintf1.c: New file.
33840         * tests/unistdio/test-u8-vsprintf1.c: New file.
33841         * tests/unistdio/test-u16-asnprintf1.c: New file.
33842         * tests/unistdio/test-u16-asnprintf1.h: New file.
33843         * tests/unistdio/test-u16-printf1.h: New file.
33844         * tests/unistdio/test-u16-vasnprintf1.c: New file.
33845         * tests/unistdio/test-u16-vasnprintf2.c: New file.
33846         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
33847         * tests/unistdio/test-u16-vasnprintf3.c: New file.
33848         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
33849         * tests/unistdio/test-u16-vasprintf1.c: New file.
33850         * tests/unistdio/test-u16-vsnprintf1.c: New file.
33851         * tests/unistdio/test-u16-vsprintf1.c: New file.
33852         * tests/unistdio/test-u32-asnprintf1.c: New file.
33853         * tests/unistdio/test-u32-asnprintf1.h: New file.
33854         * tests/unistdio/test-u32-printf1.h: New file.
33855         * tests/unistdio/test-u32-vasnprintf1.c: New file.
33856         * tests/unistdio/test-u32-vasnprintf2.c: New file.
33857         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
33858         * tests/unistdio/test-u32-vasnprintf3.c: New file.
33859         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
33860         * tests/unistdio/test-u32-vasprintf1.c: New file.
33861         * tests/unistdio/test-u32-vsnprintf1.c: New file.
33862         * tests/unistdio/test-u32-vsprintf1.c: New file.
33863         * modules/unistdio/base: New file.
33864         * modules/unistdio/u-printf-args: New file.
33865         * modules/unistdio/ulc-asnprintf: New file.
33866         * modules/unistdio/ulc-asprintf: New file.
33867         * modules/unistdio/ulc-fprintf: New file.
33868         * modules/unistdio/ulc-printf-parse: New file.
33869         * modules/unistdio/ulc-snprintf: New file.
33870         * modules/unistdio/ulc-sprintf: New file.
33871         * modules/unistdio/ulc-vasnprintf: New file.
33872         * modules/unistdio/ulc-vasprintf: New file.
33873         * modules/unistdio/ulc-vfprintf: New file.
33874         * modules/unistdio/ulc-vsnprintf: New file.
33875         * modules/unistdio/ulc-vsprintf: New file.
33876         * modules/unistdio/u8-asnprintf: New file.
33877         * modules/unistdio/u8-asprintf: New file.
33878         * modules/unistdio/u8-printf-parse: New file.
33879         * modules/unistdio/u8-snprintf: New file.
33880         * modules/unistdio/u8-sprintf: New file.
33881         * modules/unistdio/u8-vasnprintf: New file.
33882         * modules/unistdio/u8-vasprintf: New file.
33883         * modules/unistdio/u8-vsnprintf: New file.
33884         * modules/unistdio/u8-vsprintf: New file.
33885         * modules/unistdio/u8-u8-asnprintf: New file.
33886         * modules/unistdio/u8-u8-asprintf: New file.
33887         * modules/unistdio/u8-u8-snprintf: New file.
33888         * modules/unistdio/u8-u8-sprintf: New file.
33889         * modules/unistdio/u8-u8-vasnprintf: New file.
33890         * modules/unistdio/u8-u8-vasprintf: New file.
33891         * modules/unistdio/u8-u8-vsnprintf: New file.
33892         * modules/unistdio/u8-u8-vsprintf: New file.
33893         * modules/unistdio/u16-asnprintf: New file.
33894         * modules/unistdio/u16-asprintf: New file.
33895         * modules/unistdio/u16-printf-parse: New file.
33896         * modules/unistdio/u16-snprintf: New file.
33897         * modules/unistdio/u16-sprintf: New file.
33898         * modules/unistdio/u16-vasnprintf: New file.
33899         * modules/unistdio/u16-vasprintf: New file.
33900         * modules/unistdio/u16-vsnprintf: New file.
33901         * modules/unistdio/u16-vsprintf: New file.
33902         * modules/unistdio/u16-u16-asnprintf: New file.
33903         * modules/unistdio/u16-u16-asprintf: New file.
33904         * modules/unistdio/u16-u16-snprintf: New file.
33905         * modules/unistdio/u16-u16-sprintf: New file.
33906         * modules/unistdio/u16-u16-vasnprintf: New file.
33907         * modules/unistdio/u16-u16-vasprintf: New file.
33908         * modules/unistdio/u16-u16-vsnprintf: New file.
33909         * modules/unistdio/u16-u16-vsprintf: New file.
33910         * modules/unistdio/u32-asnprintf: New file.
33911         * modules/unistdio/u32-asprintf: New file.
33912         * modules/unistdio/u32-printf-parse: New file.
33913         * modules/unistdio/u32-snprintf: New file.
33914         * modules/unistdio/u32-sprintf: New file.
33915         * modules/unistdio/u32-vasnprintf: New file.
33916         * modules/unistdio/u32-vasprintf: New file.
33917         * modules/unistdio/u32-vsnprintf: New file.
33918         * modules/unistdio/u32-vsprintf: New file.
33919         * modules/unistdio/u32-u32-asnprintf: New file.
33920         * modules/unistdio/u32-u32-asprintf: New file.
33921         * modules/unistdio/u32-u32-snprintf: New file.
33922         * modules/unistdio/u32-u32-sprintf: New file.
33923         * modules/unistdio/u32-u32-vasnprintf: New file.
33924         * modules/unistdio/u32-u32-vasprintf: New file.
33925         * modules/unistdio/u32-u32-vsnprintf: New file.
33926         * modules/unistdio/u32-u32-vsprintf: New file.
33927         * modules/unistdio/ulc-asnprintf-tests: New file.
33928         * modules/unistdio/ulc-vasnprintf-tests: New file.
33929         * modules/unistdio/ulc-vasprintf-tests: New file.
33930         * modules/unistdio/ulc-vsnprintf-tests: New file.
33931         * modules/unistdio/ulc-vsprintf-tests: New file.
33932         * modules/unistdio/u8-asnprintf-tests: New file.
33933         * modules/unistdio/u8-vasnprintf-tests: New file.
33934         * modules/unistdio/u8-vasprintf-tests: New file.
33935         * modules/unistdio/u8-vsnprintf-tests: New file.
33936         * modules/unistdio/u8-vsprintf-tests: New file.
33937         * modules/unistdio/u16-asnprintf-tests: New file.
33938         * modules/unistdio/u16-vasnprintf-tests: New file.
33939         * modules/unistdio/u16-vasprintf-tests: New file.
33940         * modules/unistdio/u16-vsnprintf-tests: New file.
33941         * modules/unistdio/u16-vsprintf-tests: New file.
33942         * modules/unistdio/u32-asnprintf-tests: New file.
33943         * modules/unistdio/u32-vasnprintf-tests: New file.
33944         * modules/unistdio/u32-vasprintf-tests: New file.
33945         * modules/unistdio/u32-vsnprintf-tests: New file.
33946         * modules/unistdio/u32-vsprintf-tests: New file.
33947         * MODULES.html.sh (Unicode string functions): Add the new modules.
33948
33949 2007-07-01  Bruno Haible  <bruno@clisp.org>
33950
33951         * lib/sprintf.c (sprintf): Limit the available length estimation,
33952         to avoid address wraparound.
33953         * lib/vsprintf.c (vsprintf): Likewise.
33954         * modules/sprintf-posix (Dependencies): Add stdint.
33955         * modules/vsprintf-posix (Dependencies): Likewise.
33956
33957 2007-07-01  Bruno Haible  <bruno@clisp.org>
33958
33959         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
33960         Windows PATH as well. Conservative double-quoting. Comments.
33961
33962 2007-07-01  Bruno Haible  <bruno@clisp.org>
33963             Eric Blake  <ebb9@byu.net>
33964             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33965
33966         * gnulib-tool (self_abspathname): Fix algorithm to cope with
33967         empty components in $PATH, denoting '.'.
33968
33969 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33970
33971         * gnulib-tool: Fix indentation.
33972         (func_create_megatestdir): Likewise.
33973         Report by Bruno Haible.
33974
33975 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33976
33977         Sync from Automake.
33978         * build-aux/gnupload: Fix shell portability issues with for loops.
33979         Report by Karl Berry.
33980
33981 2007-06-29  Simon Josefsson  <simon@josefsson.org>
33982
33983         * build-aux/maint.mk (POURL): Use translationproject.org.
33984
33985 2007-06-27  Simon Josefsson  <simon@josefsson.org>
33986             Bruno Haible  <bruno@clisp.org>
33987
33988         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
33989         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
33990         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
33991         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
33992         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
33993
33994 2007-06-27  Bruno Haible  <bruno@clisp.org>
33995
33996         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
33997         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
33998
33999 2007-06-26  Karl Berry  <karl@gnu.org>
34000
34001         * MODULES.html.sh: remove xreadlink-with-size.
34002
34003 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
34004
34005         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
34006         method that I hope also handles the double-include problem noted
34007         by Bruno Haible in
34008         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
34009
34010 2007-06-23  Bruno Haible  <bruno@clisp.org>
34011
34012         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
34013         Don't let the 'mostlyclean' target fail if the last subdirectory could
34014         not be removed.
34015         Reported by Karl Berry.
34016
34017 2007-06-23  Bruno Haible  <bruno@clisp.org>
34018
34019         * gnulib-tool (echo): Add a speedier workaround for ksh.
34020         * tests/test-echo.sh: Likewise.
34021
34022 2007-06-23  Bruno Haible  <bruno@clisp.org>
34023
34024         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
34025         * tests/test-echo.sh: Likewise.
34026
34027 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34028
34029         * gnulib-tool (IFS): Initialize early, so we don't set it to
34030         empty later.
34031         (self_abspathname): Rewrite algorithm to set it, reindent.
34032         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
34033         (func_create_megatestdir): Merge some sed scripts.
34034
34035 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
34036
34037         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
34038         exposed by Sun Studio 11 cc on Solaris 8.
34039
34040 2007-06-22  Bruno Haible  <bruno@clisp.org>
34041
34042         * gnulib-tool (echo): Ensure the echo primitive does not interpret
34043         backslashes.
34044         * tests/test-echo.sh: New file.
34045
34046 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34047
34048         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
34049         simplify `sed_replace_build_aux' scripts, they are portable but
34050         echoing them with `echo' is not.
34051         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
34052
34053 2007-06-21  Karl Berry  <karl@gnu.org>
34054
34055         * config/srclist.txt: guess we can't handle the licenses via
34056         srclist at the moment.
34057
34058 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
34059
34060         * MODULES.html.sh: Add include_next.
34061         * modules/include_next: New file.
34062
34063 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
34064
34065         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
34066         INCLUDE_NEXT.
34067         (gl_CHECK_NEXT_HEADERS): New macro.
34068         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
34069         the obsolescent gl_ABSOLUTE_HEADER.
34070         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
34071         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
34072         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
34073         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
34074         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
34075         * m4/math_h.m4 (gl_MATH_H): Likewise.
34076         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
34077         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
34078         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
34079         * m4/stdint.m4 (gl_STDINT_H): Likewise.
34080         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
34081         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
34082         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
34083         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34084         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
34085         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
34086         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
34087         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
34088         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
34089         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
34090         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
34091         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
34092         * m4/inttypes.m4 (gl_INTTYPES_H): Define
34093         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
34094         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
34095         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
34096         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
34097         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
34098         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
34099         * lib/float_.h: Likewise.
34100         * lib/inttypes_.h: Likewise.
34101         * lib/math_.h: Likewise.
34102         * lib/search_.h: Likewise.
34103         * lib/signal_.h: Likewise.
34104         * lib/stdint_.h: Likewise.
34105         * lib/stdio_.h: Likewise.
34106         * lib/stdlib_.h: Likewise.
34107         * lib/string_.h: Likewise.
34108         * lib/sys_stat_.h: Likewise.
34109         * lib/sys_time_.h: Likewise.
34110         * lib/time_.h: Likewise.
34111         * lib/unistd_.h: Likewise.
34112         * lib/wchar_.h: Likewise.
34113         * lib/wctype_.h: Likewise.
34114         * lib/dirent_.h: Likewise.
34115         * lib/iconv_.h: Likewise.
34116         * lib/locale_.h: Likewise.
34117         * lib/netinet_in_.h: Likewise.
34118         * lib/sys_select_.h: Likewise.
34119         * lib/sys_socket_.h: Likewise.
34120         * lib/sysexits_.h: Likewise.
34121         * modules/fcntl (Depends-on): Depend on include_next, not
34122         absolute_header.
34123         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
34124         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
34125         * modules/fchdir: Likewise.
34126         * modules/float: Likewise.
34127         * modules/iconv_open: Likewise.
34128         * modules/inttypes: Likewise.
34129         * modules/locale: Likewise.
34130         * modules/math: Likewise.
34131         * modules/netinet_in: Likewise.
34132         * modules/search: Likewise.
34133         * modules/signal: Likewise.
34134         * modules/stdint: Likewise.
34135         * modules/stdio: Likewise.
34136         * modules/stdlib: Likewise.
34137         * modules/string: Likewise.
34138         * modules/sys_select: Likewise.
34139         * modules/sys_socket: Likewise.
34140         * modules/sys_stat: Likewise.
34141         * modules/sys_time: Likewise.
34142         * modules/sysexits: Likewise.
34143         * modules/time: Likewise.
34144         * modules/unistd: Likewise.
34145         * modules/wchar: Likewise.
34146         * modules/wctype: Likewise.
34147         * modules/sys_stat: Change maintainer to "all".
34148         * modules/unistd: Likewise.
34149
34150 2007-06-20  Karl Berry  <karl@gnu.org>
34151
34152         * config/srclist.txt: track www changes in license files.
34153
34154 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
34155
34156         * build-aux/bootstrap: Remove stray dot.
34157         Make sure build_aux settings are honored when linking
34158         gnulib_extra_files.
34159
34160 2007-06-19  Eric Blake  <ebb9@byu.net>
34161
34162         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
34163         Allow compilation on cygwin.
34164
34165 2007-06-19  Jim Meyering  <jim@meyering.net>
34166
34167         xreadlink-with-size: Remove module.  No longer used.
34168         Ex-callers now use xreadlink or mreadlink-with-size.
34169         * modules/xreadlink-with-size: Remove module.
34170         * lib/xreadlink-with-size.c: Remove file.
34171         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
34172         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
34173         just before the function definition *is* accurate.
34174
34175         Eliminate one way canonicalize_filename_mode could exit.
34176         * lib/canonicalize.c (canonicalize_filename_mode):
34177         Use mreadlink_with_size, not xreadlink_with_size.
34178
34179 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
34180
34181         Detect porting problems to FreeBSD/arm, which has time_t wider than
34182         long int.  Original problem reported for GNU diff by Xin Li in
34183         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
34184         * modules/getdate (Depends-on): Add intprops, verify.
34185         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
34186         is an integer type no wider than long int.
34187
34188 2007-06-18  Jim Meyering  <jim@meyering.net>
34189
34190         New module: mreadlink-with-size.
34191         * MODULES.html.sh: Add mreadlink-with-size.
34192         * modules/mreadlink-with-size: New module
34193         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
34194         not xreadlink-with-size.
34195         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
34196
34197 2007-06-16  Bruno Haible  <bruno@clisp.org>
34198
34199         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
34200         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
34201         Reported by Gary V. Vaughan <gary@gnu.org>.
34202
34203 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
34204
34205         Revamp lchown so that it lives in unistd.h where it belongs.
34206         * lib/lchown.h: Remove.
34207         * lib/dirchownmod.c: Don't include lib/lchown.h.
34208         * lib/fchownat.c: Likewise.
34209         * lib/openat.c: Likewise.
34210         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
34211         does not follow symlinks.
34212         (EOPNOTSUPP): Define if not defined.
34213         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
34214         is defined to 0.
34215         (lchown): New decl.
34216         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
34217         Do not check for lchown decl.
34218         Set REPLACE_LCHOWN.
34219         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
34220         REPLACE_LCHOWN.
34221         * modules/chown: Make it clear it follows symlinks.
34222         * modules/lchown: Make it clear it doesn't follow symlinks.
34223         (Files): Remove lib/lchown.h
34224         (Depends-on): Add unistd.
34225         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
34226         (Include): Include <unistd.h>, not "lchown.h".
34227         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
34228         REPLACE_LCHOWN.
34229
34230 2007-06-15  Jim Meyering  <jim@meyering.net>
34231
34232         Change license (GPL to LGPL) of fsusage and dependents.
34233         * modules/fsusage (License): Change to LGPL.
34234         * modules/full-read (License): Likewise.
34235         * modules/full-write (License): Likewise.
34236         * modules/safe-read (License): Likewise.
34237         * modules/safe-write (License): Likewise.
34238
34239 2007-06-14  Ben Pfaff  <blp@gnu.org>
34240
34241         Missing part of allocsa -> malloca transition.
34242         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
34243         gl_MALLOCA.
34244
34245 2007-06-12  Bruno Haible  <bruno@clisp.org>
34246
34247         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
34248         to ia64, x86_64, i386.
34249         Reported by Eric Blake.
34250
34251 2007-06-12  Bruno Haible  <bruno@clisp.org>
34252
34253         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
34254         cross-compiling to x86_64.
34255
34256 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
34257
34258         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
34259         glitch reported by Ralf Wildenhues in
34260         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
34261
34262         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
34263         Vin Shelton.
34264
34265 2007-06-11  Bruno Haible  <bruno@clisp.org>
34266
34267         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
34268         replacement string.
34269         Reported by Eric Blake.
34270
34271 2007-06-10  Bruno Haible  <bruno@clisp.org>
34272
34273         Prepare vasnprintf code for use with Unicode strings.
34274         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
34275         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
34276         TYPE_U32_STRING.
34277         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
34278         a_u32_string variants.
34279         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
34280         * lib/printf-args.c: Don't include config.h and the specification
34281         header if PRINTF_FETCHARGS is already defined.
34282         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
34283         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
34284         TYPE_U16_STRING, TYPE_U32_STRING.
34285         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
34286         u16_directive, u16_directives, u32_directive, u32_directives): New
34287         types.
34288         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
34289         New declarations.
34290         * lib/printf-parse.c: Don't include config.h and the specification
34291         header if PRINTF_PARSE is already defined. Eliminate the set of
34292         parameters for WIDE_CHAR_VERSION; the user of this file must provide
34293         them now. Include c-ctype.h.
34294         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
34295         directive and CHAR_T_ONLY_ASCII.
34296         * lib/vasnprintf.c: Don't include config.h and the specification header
34297         if VASNPRINTF is already defined.
34298         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
34299         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
34300         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
34301         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
34302         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
34303         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
34304         code accordingly.
34305         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
34306         pad_ourselves also in this case, with the 'c' and 's' directives, and
34307         with a different notion of "width".
34308         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
34309
34310 2007-06-10  Bruno Haible  <bruno@clisp.org>
34311
34312         * modules/unistr/u32-mbsnlen: New file.
34313         * lib/unistr/u32-mbsnlen.c: New file.
34314
34315         * modules/unistr/u16-mbsnlen: New file.
34316         * lib/unistr/u16-mbsnlen.c: New file.
34317
34318         * modules/unistr/u8-mbsnlen: New file.
34319         * lib/unistr/u8-mbsnlen.c: New file.
34320
34321         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
34322         declarations.
34323
34324 2007-06-10  Bruno Haible  <bruno@clisp.org>
34325
34326         * lib/string_.h (mbsnlen): New declaration.
34327         * lib/mbsnlen.c: New file.
34328         * m4/mbsnlen.m4: New file.
34329         * modules/mbsnlen: New file.
34330         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
34331         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
34332         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
34333
34334 2007-06-10  Bruno Haible  <bruno@clisp.org>
34335
34336         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
34337
34338 2007-06-10  Bruno Haible  <bruno@clisp.org>
34339
34340         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
34341         * lib/mbuiter.h: Likewise.
34342
34343 2007-06-10  Bruno Haible  <bruno@clisp.org>
34344
34345         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
34346         declaration.
34347
34348 2007-06-10  Karl Berry  <karl@gnu.org>
34349
34350         * config/srclist.txt: remove gettext entries, Bruno prefers
34351         to update individually.
34352
34353 2007-06-10  Bruno Haible  <bruno@clisp.org>
34354
34355         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
34356         'maxlen'. Ensure only length + width bytes are allocated, not
34357         length + 1 + width.
34358
34359 2007-06-09  Bruno Haible  <bruno@clisp.org>
34360
34361         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
34362         (CHAR_T): Remove macro.
34363         (VASNPRINTF): Update.
34364
34365 2007-06-09  Bruno Haible  <bruno@clisp.org>
34366
34367         * MODULES.html.sh (Unicode string functions): Add the new modules.
34368
34369         * modules/uniconv/u32-conv-to-enc: New file.
34370         * lib/uniconv/u32-conv-to-enc.c: New file.
34371         * modules/uniconv/u32-conv-to-enc-tests: New file.
34372         * tests/uniconv/test-u32-conv-to-enc.c: New file.
34373
34374         * modules/uniconv/u16-conv-to-enc: New file.
34375         * lib/uniconv/u16-conv-to-enc.c: New file.
34376         * lib/uniconv/u-conv-to-enc.h: New file.
34377         * modules/uniconv/u16-conv-to-enc-tests: New file.
34378         * tests/uniconv/test-u16-conv-to-enc.c: New file.
34379
34380         * modules/uniconv/u8-conv-to-enc: New file.
34381         * lib/uniconv/u8-conv-to-enc.c: New file.
34382         * modules/uniconv/u8-conv-to-enc-tests: New file.
34383         * tests/uniconv/test-u8-conv-to-enc.c: New file.
34384
34385         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
34386         u32_conv_to_encoding): New declarations.
34387
34388 2007-06-09  Bruno Haible  <bruno@clisp.org>
34389
34390         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
34391
34392 2007-06-09  Bruno Haible  <bruno@clisp.org>
34393
34394         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
34395         * modules/malloca: Renamed from modules/allocsa, updated.
34396         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
34397         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
34398         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
34399         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
34400         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
34401         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
34402         * modules/xmalloca: Renamed from modules/xallocsa, updated.
34403         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
34404         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
34405         * modules/c-strcasestr (Depends-on): Update.
34406         * lib/c-strcasestr.c: Update.
34407         * modules/c-strstr (Depends-on): Update.
34408         * lib/c-strstr.c: Update.
34409         * modules/canonicalize-lgpl (Depends-on): Update.
34410         * lib/canonicalize-lgpl.c: Update.
34411         * modules/clean-temp (Depends-on): Update.
34412         * lib/clean-temp.c: Update.
34413         * modules/csharpcomp (Depends-on): Update.
34414         * lib/csharpcomp.c: Update.
34415         * modules/csharpexec (Depends-on): Update.
34416         * lib/csharpexec.c: Update.
34417         * modules/javacomp (Depends-on): Update.
34418         * lib/javacomp.c: Update.
34419         * modules/javaexec (Depends-on): Update.
34420         * lib/javaexec.c: Update.
34421         * modules/mbscasestr (Depends-on): Update.
34422         * lib/mbscasestr.c: Update.
34423         * modules/mbsstr (Depends-on): Update.
34424         * lib/mbsstr.c: Update.
34425         * modules/setenv (Depends-on): Update.
34426         * lib/setenv.c: Update.
34427         * modules/strcasestr (Depends-on): Update.
34428         * lib/strcasestr.c: Update.
34429         * modules/striconveha (Depends-on): Update.
34430         * lib/striconveha.c: Update.
34431         * modules/relocatable-prog-wrapper (Files): Update.
34432         * lib/relocwrapper.c: Update.
34433         * build-aux/install-reloc: Update.
34434         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
34435
34436 2007-06-08  Bruno Haible  <bruno@clisp.org>
34437
34438         Port to uClibc.
34439         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
34440         * lib/fpurge.c (fpurge): Likewise.
34441         * lib/freading.c (freading): Likewise.
34442         * lib/fseeko.c (rpl_fseeko): Likewise.
34443         * lib/fseterr.c (fseterr): Likewise.
34444         * lib/fwriting.c (fwriting): Likewise.
34445         * tests/test-fflush.c (main): Avoid a failure on uClibc.
34446
34447 2007-06-08  Bruno Haible  <bruno@clisp.org>
34448
34449         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
34450         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
34451         * modules/gettext (Files): Add m4/intlmacosx.m4.
34452
34453 2007-06-07  Bruno Haible  <bruno@clisp.org>
34454
34455         * modules/localename-tests: New file.
34456         * tests/test-localename.c: New file.
34457
34458         New module 'localename'.
34459         * lib/localename.h: New file.
34460         * lib/localename.c: New file, from GNU gettext.
34461         * m4/localename.m4: New file.
34462         * modules/localename: New file.
34463
34464 2007-06-07  Bruno Haible  <bruno@clisp.org>
34465
34466         Work around the lack of <wchar.h> on some builds of uClibc.
34467         * doc/headers/wchar.texi: Update.
34468         * lib/wchar_.h: Include <wchar.h> only if it exists.
34469         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
34470         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
34471         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
34472         doesn't exist.
34473         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
34474         * modules/mbfile (Depends-on): Add wchar.
34475         * modules/mbiter (Depends-on): Likewise.
34476         * modules/mbuiter (Depends-on): Likewise.
34477         Reported by Simon Josefsson.
34478
34479 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
34480
34481         Work around problem reported by Steven M. Schweda in
34482         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
34483         Tru64 5.1B with the Compaq compiler environment installed declares
34484         an 'isblank' function but does not define it in the C library.
34485         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
34486         * lib/regex_internal.h (isblank): Likewise.
34487         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
34488         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
34489
34490 2007-06-05  Bruno Haible  <bruno@clisp.org>
34491
34492         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
34493         ia64.
34494         * modules/printf-safe: New file.
34495         * modules/fprintf-posix (Depends-on): Add printf-safe.
34496         * modules/printf-posix (Depends-on): Likewise.
34497         * modules/snprintf-posix (Depends-on): Likewise.
34498         * modules/sprintf-posix (Depends-on): Likewise.
34499         * modules/vasnprintf-posix (Depends-on): Likewise.
34500         * modules/vasprintf-posix (Depends-on): Likewise.
34501         * modules/vfprintf-posix (Depends-on): Likewise.
34502         * modules/vprintf-posix (Depends-on): Likewise.
34503         * modules/vsnprintf-posix (Depends-on): Likewise.
34504         * modules/vsprintf-posix (Depends-on): Likewise.
34505         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
34506         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
34507         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
34508         "no" on i386, x86_64, ia64.
34509         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
34510         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34511         on i386, x86_64, ia64.
34512         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
34513         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34514         on i386, x86_64, ia64.
34515         * tests/test-vasnprintf-posix.c: Include float.h.
34516         (LDBL80_WORDS): New macro.
34517         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34518         on i386, x86_64, ia64.
34519         * tests/test-vasprintf-posix.c: Include float.h.
34520         (LDBL80_WORDS): New macro.
34521         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34522         on i386, x86_64, ia64.
34523         * tests/test-snprintf-posix.c: Include float.h.
34524         * tests/test-sprintf-posix.c: Likewise.
34525         * tests/test-vsnprintf-posix.c: Likewise.
34526         * tests/test-vsprintf-posix.c: Likewise.
34527
34528 2007-06-05  Bruno Haible  <bruno@clisp.org>
34529
34530         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
34531         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
34532         non-IEEE numbers on i386, x86_64, ia64.
34533         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
34534         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
34535         * tests/test-isnanl.h: Include float.h.
34536         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
34537
34538 2007-06-05  Bruno Haible  <bruno@clisp.org>
34539
34540         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
34541         also the %a / %A. Handle the %a / %A code before this extra handling.
34542
34543 2007-06-05  Bruno Haible  <bruno@clisp.org>
34544
34545         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
34546         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
34547
34548 2007-06-05  Bruno Haible  <bruno@clisp.org>
34549
34550         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
34551         typo in variable name.
34552
34553 2007-06-05  Eric Blake  <ebb9@byu.net>
34554
34555         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
34556         Reported by Simon Josefsson.
34557
34558 2007-06-04  Bruno Haible  <bruno@clisp.org>
34559
34560         Avoid test failures on some PowerPC platforms.
34561         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
34562         Define differently for PowerPC.
34563         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
34564         Reported by Gary V. Vaughan <gary@gnu.org>.
34565
34566 2007-06-02  Bruno Haible  <bruno@clisp.org>
34567
34568         Fix test-stdint failure on FreeBSD/ia64.
34569         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
34570         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
34571         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
34572         * doc/headers/stdint.texi: Update.
34573
34574 2007-06-01  Bruno Haible  <bruno@clisp.org>
34575
34576         * tests/test-binary-io.c (main): Pass a third argument to open().
34577         Reported by Gary V. Vaughan <gary@gnu.org>.
34578
34579 2007-06-01  Bruno Haible  <bruno@clisp.org>
34580
34581         * doc/functions/frexpl.texi: Update for mingw.
34582
34583 2007-06-01  Bruno Haible  <bruno@clisp.org>
34584
34585         * tests/test-lseek.c (main): Disable test of errno for invalid third
34586         argument.
34587         * doc/functions/lseek.texi: Update.
34588         Reported by Gary V. Vaughan <gary@gnu.org>.
34589
34590 2007-05-28  Bruno Haible  <bruno@clisp.org>
34591
34592         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
34593
34594 2007-05-31  Eric Blake  <ebb9@byu.net>
34595
34596         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
34597         cross compiling.
34598
34599 2007-05-30  Eric Blake  <ebb9@byu.net>
34600         and Bruno Haible  <bruno@clisp.org>
34601
34602         Work around mingw test failures exposed by m4-1.4.9b.
34603         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
34604         * tests/test-unistd.c: Disable uid_t and git_t tests for the
34605         moment.
34606
34607 2007-05-30  Bruno Haible  <bruno@clisp.org>
34608
34609         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
34610         assuming that they are closed. Needed on HP-UX 11.
34611
34612 2007-05-29  Bruno Haible  <bruno@clisp.org>
34613
34614         Fix a problem with #include_next.
34615         * lib/dirent_.h: Split the double-inclusion guard.
34616         * lib/fcntl_.h: Likewise.
34617         * lib/float_.h: Likewise.
34618         * lib/iconv_.h: Likewise.
34619         * lib/inttypes_.h: Likewise.
34620         * lib/locale_.h: Likewise.
34621         * lib/math_.h: Likewise.
34622         * lib/netinet_in_.h: Likewise.
34623         * lib/search_.h: Likewise.
34624         * lib/signal_.h: Likewise.
34625         * lib/stdint_.h: Likewise.
34626         * lib/stdio_.h: Likewise.
34627         * lib/stdlib_.h: Likewise.
34628         * lib/string_.h: Likewise.
34629         * lib/sys_select_.h: Likewise.
34630         * lib/sys_socket_.h: Likewise.
34631         * lib/sys_stat_.h: Likewise.
34632         * lib/sys_time_.h: Likewise.
34633         * lib/sysexits_.h: Likewise.
34634         * lib/time_.h: Likewise.
34635         * lib/unistd_.h: Likewise.
34636         * lib/wchar_.h: Likewise.
34637         * lib/wctype_.h: Likewise.
34638
34639 2007-05-29  Bruno Haible  <bruno@clisp.org>
34640
34641         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
34642         for the moment.
34643
34644 2007-05-29  Bruno Haible  <bruno@clisp.org>
34645
34646         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
34647         invocation.
34648         Reported by Eric Blake.
34649
34650 2007-05-29  Bruno Haible  <bruno@clisp.org>
34651
34652         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
34653         compiling case.
34654
34655 2007-05-29  Eric Blake  <ebb9@byu.net>
34656             Bruno Haible  <bruno@clisp.org>
34657
34658         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
34659         cross compiles.
34660
34661 2007-05-28  Eric Blake  <ebb9@byu.net>
34662
34663         * modules/closein-tests (test_closein_LDADD): Support test on
34664         cygwin with libtool.
34665
34666 2007-05-28  Bruno Haible  <bruno@clisp.org>
34667
34668         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
34669         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
34670         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
34671         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
34672         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
34673         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
34674         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
34675         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
34676         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
34677
34678 2007-05-28  Eric Blake  <ebb9@byu.net>
34679
34680         Unconditionally include <config.h> in unit tests.
34681         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
34682         * tests/test-allocsa.c, tests/test-arcfour.c,
34683         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
34684         tests/test-array_list.c, tests/test-array_oset.c,
34685         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
34686         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
34687         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
34688         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
34689         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
34690         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
34691         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
34692         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
34693         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
34694         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
34695         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
34696         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
34697         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
34698         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
34699         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
34700         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
34701         test-md5.c, test-memmem.c, test-printf-posix.c,
34702         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
34703         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
34704         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
34705         test-strcasestr.c, test-striconv.c, test-striconveh.c,
34706         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
34707         test-vasnprintf-posix2.c, test-vasnprintf.c,
34708         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
34709         test-vfprintf-posix.c, test-vprintf-posix.c,
34710         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
34711         test-xvasprintf.c: Likewise.
34712
34713 2007-05-28  Bruno Haible  <bruno@clisp.org>
34714
34715         * gnulib-tool (func_import): Remember the --with-tests command-line
34716         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
34717         Reported by Eric Blake.
34718
34719 2007-05-28  Bruno Haible  <bruno@clisp.org>
34720
34721         * modules/ftell-tests: New file.
34722         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
34723         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
34724
34725         * lib/ftell.c: New file.
34726         * modules/ftell: New file.
34727         * m4/ftell.m4: New file.
34728         * doc/functions/ftell.texi: Update.
34729         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
34730         REPLACE_FTELL.
34731         * lib/stdio_.h (rpl_ftell): New declaration.
34732         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
34733         REPLACE_FTELL.
34734
34735 2007-05-28  Eric Blake  <ebb9@byu.net>
34736
34737         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
34738
34739 2007-05-28  Bruno Haible  <bruno@clisp.org>
34740
34741         * modules/fseek-tests: New file.
34742         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
34743         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
34744
34745         * lib/fseek.c: New file.
34746         * modules/fseek: New file.
34747         * m4/fseek.m4: New file.
34748         * doc/functions/fseek.texi: Update.
34749         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
34750         REPLACE_FSEEK.
34751         * lib/stdio_.h (rpl_fseek): New declaration.
34752         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
34753         REPLACE_FSEEK.
34754
34755 2007-05-28  Bruno Haible  <bruno@clisp.org>
34756
34757         * lib/stdio_.h (fflush): More comments.
34758
34759 2007-05-28  Bruno Haible  <bruno@clisp.org>
34760
34761         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
34762         runtime test.
34763
34764 2007-05-28  Eric Blake  <ebb9@byu.net>
34765
34766         Improve lseek module.
34767         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
34768         * lib/unistd_.h (lseek): Scale back link warning message.
34769         * tests/test-lseek.c: Beef up test.
34770         * tests/test-lseek.sh: Exercise more facets of lseek.
34771         Reported by Bruno Haible.
34772
34773 2007-05-28  Bruno Haible  <bruno@clisp.org>
34774
34775         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
34776         to define.
34777
34778 2007-05-27  Bruno Haible  <bruno@clisp.org>
34779
34780         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
34781
34782 2007-05-27  Bruno Haible  <bruno@clisp.org>
34783
34784         * modules/openmp: New file.
34785         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
34786         Noah Misch.
34787
34788 2007-05-26  Bruno Haible  <bruno@clisp.org>
34789
34790         * modules/chdir-long (Depends-on): Add fchdir.
34791         * modules/chdir-safer (Depends-on): Likewise.
34792         * modules/fts (Depends-on): Likewise.
34793         * modules/fts-lgpl (Depends-on): Likewise.
34794         * modules/openat (Depends-on): Likewise.
34795         * modules/savewd (Depends-on): Likewise.
34796
34797 2007-05-24  Eric Blake  <ebb9@byu.net>
34798
34799         Fix lseek on mingw.
34800         * modules/lseek: New module.
34801         * m4/lseek.m4: New file.
34802         * lib/lseek.c: New file.
34803         * modules/lseek-tests: New file.
34804         * tests/test-lseek.c: New file.
34805         * tests/test-lseek.sh: New file.
34806         * MODULES.html.sh: Document lseek module.
34807         * modules/fflush (Depends-on): Add lseek, fseeko.
34808         * modules/fseeko (Depends-on): Likewise.
34809         * modules/ftello (Depends-on): Likewise.
34810         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
34811         broken.
34812         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
34813         broken.
34814         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
34815         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
34816         * lib/ftello.c (rpl_ftello): Likewise.
34817         * tests/test-fseeko.c (main): Test this.
34818         * tests/test-fseeko.sh: Likewise.
34819         * tests/test-ftello.c (main): Likewise.
34820         * tests/test-ftello.sh: Likewise.
34821         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
34822         implies replacing fseek.
34823         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
34824         HAVE_FTELLO.
34825         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
34826         * modules/unistd (Makefile.am): Likewise.
34827         * lib/unistd_.h (lseek): Declare a replacement.
34828         * doc/functions/lseek.texi (lseek): Document this fix.
34829         * doc/functions/fseek.texi (fseek): Likewise.
34830         * doc/functions/ftell.texi (ftell): Likewise.
34831
34832 2007-05-24  Bruno Haible  <bruno@clisp.org>
34833
34834         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
34835         in the printed representation of a NaN.
34836         * tests/test-vasprintf-posix.c (test_function): Likewise.
34837         * tests/test-snprintf-posix.h (test_function): Likewise.
34838         * tests/test-sprintf-posix.h (test_function): Likewise.
34839         Reported by Eric Blake.
34840
34841 2007-05-23  Eric Blake  <ebb9@byu.net>
34842
34843         Fix fseeko/ftello on cygwin 1.5.24.
34844         * doc/functions/fseeko.texi (fseeko): Document the fix.
34845         * doc/functions/ftello.texi (ftello): Document the fix.
34846         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
34847         * doc/functions/stdout.text (stdout): New file.
34848         * doc/functions/stderr.text (stderr): New file.
34849         * doc/gnulib.texi (Function Substitutes): Use new files.
34850         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
34851         prior to 1.7.0.
34852         * tests/test-ftello.c (main): Likewise for ftello.
34853         * tests/test-fseeko.sh: New file.
34854         * tests/test-ftello.sh: New file.
34855         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
34856         with seekable stdin.
34857         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
34858         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
34859         (gl_REPLACE_FSEEKO): New macro.
34860         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
34861         * modules/fseeko (Files): Distribute fseeko.c.
34862         * modules/ftello (Files): Distribute ftello.c.
34863         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
34864         mode.
34865         * lib/ftello.c (rpl_ftello): New file.
34866         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
34867         fseeko, ftello.
34868         (gl_STDIN_LARGE_OFFSET): New macro.
34869         * modules/stdio (Makefile.am): Perform the replacement.
34870         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
34871
34872 2007-05-23  Bruno Haible  <bruno@clisp.org>
34873
34874         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
34875         GNULIB_POSIXCHECK is defined.
34876
34877 2007-05-21  Bruno Haible  <bruno@clisp.org>
34878
34879         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
34880         Check also the output for NaN arguments. When cross-compiling, guess
34881         no on IRIX.
34882         * lib/vasnprintf.c: Update comments.
34883         * tests/test-vasnprintf-posix.c (strisnan): New function.
34884         (test_function): Use it.
34885         * tests/test-vasprintf-posix.c (strisnan): New function.
34886         (test_function): Use it.
34887         * tests/test-snprintf-posix.h (strisnan): New function.
34888         (test_function): Use it.
34889         * tests/test-sprintf-posix.h (strisnan): New function.
34890         (test_function): Use it.
34891         Reported by Eric Blake.
34892
34893 2007-05-20  Bruno Haible  <bruno@clisp.org>
34894
34895         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
34896         numbers that fails on BeOS.
34897         * doc/functions/frexpl.texi: Update.
34898
34899 2007-05-20  Jim Meyering  <jim@meyering.net>
34900
34901         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
34902         forced upon us by glibc-2.6.
34903
34904 2007-05-20  Bruno Haible  <bruno@clisp.org>
34905
34906         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
34907         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
34908         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
34909         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
34910         NEED_PRINTF_INFINITE.
34911         (is_infinitel): New function.
34912         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
34913         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
34914         gl_PREREQ_VASNPRINTF_INFINITE.
34915         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
34916         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34917         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
34918         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
34919         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
34920         gl_PREREQ_VASNPRINTF_INFINITE.
34921         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34922         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34923         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34924         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34925         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34926         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34927         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34928         * doc/functions/fprintf.texi: Update.
34929         * doc/functions/printf.texi: Update.
34930         * doc/functions/snprintf.texi: Update.
34931         * doc/functions/sprintf.texi: Update.
34932         * doc/functions/vfprintf.texi: Update.
34933         * doc/functions/vprintf.texi: Update.
34934         * doc/functions/vsnprintf.texi: Update.
34935         * doc/functions/vsprintf.texi: Update.
34936
34937 2007-05-20  Bruno Haible  <bruno@clisp.org>
34938
34939         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
34940         was not found in libc.
34941         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
34942
34943 2007-05-20  Bruno Haible  <bruno@clisp.org>
34944
34945         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
34946         printed as "-nan" instead of "nan".
34947         * tests/test-vasprintf-posix.c (test_function): Likewise.
34948         * tests/test-snprintf-posix.h (test_function): Likewise.
34949         * tests/test-sprintf-posix.h (test_function): Likewise.
34950         Needed for HP-UX 11.
34951
34952 2007-05-20  Jim Meyering  <jim@meyering.net>
34953
34954         Fix buggy test for the fchownat-deref bug.
34955         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
34956         symlink required for the run-test.  Without it, this test would
34957         always declare that fchownat doesn't work, and client code would
34958         unnecessarily use the replacement function with fixed libc.
34959         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
34960         Reported by Greg Schafer.
34961
34962 2007-05-19  Bruno Haible  <bruno@clisp.org>
34963
34964         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
34965         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
34966         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
34967         Needed for IRIX 6.5 and Solaris 2.5.1.
34968
34969 2007-05-19  Bruno Haible  <bruno@clisp.org>
34970
34971         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
34972         (test_function): Skip tests involving -0.0 on platforms where
34973         -0.0 = 0.0.
34974         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
34975         (test_function): Skip tests involving -0.0 on platforms where
34976         -0.0 = 0.0.
34977         * tests/test-snprintf-posix.h (have_minus_zero): New function.
34978         (test_function): Skip tests involving -0.0 on platforms where
34979         -0.0 = 0.0.
34980         * tests/test-sprintf-posix.h (have_minus_zero): New function.
34981         (test_function): Skip tests involving -0.0 on platforms where
34982         -0.0 = 0.0.
34983         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
34984         tests.
34985         * tests/test-printf-posix.h (test_function): Likewise.
34986         * tests/test-printf-posix.output: Remove all -0.0 related results.
34987         Needed for IRIX 6.5.
34988
34989 2007-05-19  Bruno Haible  <bruno@clisp.org>
34990
34991         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
34992         printed as "nan0x7fffffff" instead of "nan".
34993         * tests/test-vasprintf-posix.c (test_function): Likewise.
34994         * tests/test-snprintf-posix.h (test_function): Likewise.
34995         * tests/test-sprintf-posix.h (test_function): Likewise.
34996         * tests/test-fprintf-posix.h (NaN): Remove macro.
34997         (test_function): Remove all NaN related tests.
34998         * tests/test-printf-posix.h (NaN): Remove macro.
34999         (test_function): Remove all NaN related tests.
35000         * tests/test-printf-posix.output: Remove all NaN related results.
35001         Needed for IRIX 6.5.
35002
35003 2007-05-19  Bruno Haible  <bruno@clisp.org>
35004
35005         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
35006         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
35007
35008 2007-05-19  Bruno Haible  <bruno@clisp.org>
35009
35010         * lib/float_.h: New file.
35011         * m4/float_h.m4: New file.
35012         * modules/float: New file.
35013         * modules/isnanl (Dependencies): Add float.
35014         * modules/isnanl-nolibm (Dependencies): Likewise.
35015         * modules/mathl (Dependencies): Likewise.
35016         * modules/printf-frexpl (Dependencies): Likewise.
35017         * modules/signbit (Dependencies): Likewise.
35018         * modules/vasnprintf (Dependencies): Likewise.
35019         * doc/headers/float.texi: Update.
35020
35021 2007-05-19  Jim Meyering  <jim@meyering.net>
35022
35023         * lib/utimens.c (gl_futimens): Rename from futimens,
35024         now that glibc-2.6 declares futimens.
35025         * lib/utimens.h: Likewise.
35026
35027 2007-05-19  Bruno Haible  <bruno@clisp.org>
35028
35029         Avoid test failures on mingw.
35030         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
35031         * tests/test-printf-posix.sh: Likewise.
35032         * tests/test-vfprintf-posix.sh: Likewise.
35033         * tests/test-vprintf-posix.sh: Likewise.
35034
35035 2007-05-19  Bruno Haible  <bruno@clisp.org>
35036
35037         Fix *printf result for NaN, Inf, -0.0 on mingw.
35038         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
35039         * lib/vasnprintf.c: Include math.h and isnan.h.
35040         (is_infinite_or_zero): New function.
35041         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
35042         values in the %f, %F, %e, %E, %g, %G directives.
35043         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
35044         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35045         gl_PRINTF_INFINITE and test its result. Invoke
35046         gl_PREREQ_VASNPRINTF_INFINITE.
35047         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35048         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35049         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35050         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35051         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35052         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35053         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35054         * doc/functions/fprintf.texi: Update.
35055         * doc/functions/printf.texi: Update.
35056         * doc/functions/snprintf.texi: Update.
35057         * doc/functions/sprintf.texi: Update.
35058         * doc/functions/vfprintf.texi: Update.
35059         * doc/functions/vprintf.texi: Update.
35060         * doc/functions/vsnprintf.texi: Update.
35061         * doc/functions/vsprintf.texi: Update.
35062
35063 2007-05-19  Bruno Haible  <bruno@clisp.org>
35064
35065         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
35066         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
35067         Instead of multiplying with 10^k, set extra_zeroes to k.
35068         (scale10_round_long_double): Remove function.
35069
35070 2007-05-18  Bruno Haible  <bruno@clisp.org>
35071
35072         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
35073         introduced on 2007-05-06.
35074
35075 2007-05-18  Bruno Haible  <bruno@clisp.org>
35076
35077         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
35078         %g directives.
35079         * tests/test-vasprintf-posix.c (test_function): Likewise.
35080         * tests/test-snprintf-posix.h (test_function): Likewise.
35081         * tests/test-sprintf-posix.h (test_function): Likewise.
35082
35083 2007-05-18  Bruno Haible  <bruno@clisp.org>
35084
35085         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
35086         (strmatch): New function.
35087         (test_function): Test the %f directive on numbers of various exponents.
35088         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
35089         (strmatch): New function.
35090         (test_function): Test the %f directive on numbers of various exponents.
35091         * tests/test-snprintf-posix.h (strmatch): New function.
35092         (test_function): Test the %f directive on numbers of various exponents.
35093         * tests/test-sprintf-posix.h (strmatch): New function.
35094         (test_function): Test the %f directive on numbers of various exponents.
35095         * tests/test-snprintf-posix.c (SIZEOF): New macro.
35096         * tests/test-sprintf-posix.c (SIZEOF): New macro.
35097         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
35098         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
35099
35100 2007-05-18  Bruno Haible  <bruno@clisp.org>
35101
35102         Add support for 'long double' number output.
35103         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
35104         * lib/vasnprintf.c: Include math.h and float+.h.
35105         (mp_limb_t): New type.
35106         (GMP_LIMB_BITS): New macro.
35107         (mp_twolimb_t): New type.
35108         (GMP_TWOLIMB_BITS): New macro.
35109         (mpn_t): New type.
35110         (multiply, divide, convert_to_decimal, decode_long_double,
35111         scale10_round_long_double, scale10_round_decimal_long_double,
35112         floorlog10l): New functions.
35113         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
35114         for the %f, %F, %e, %E, %g, %G directives.
35115         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
35116         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35117         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
35118         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
35119         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35120         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35121         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35122         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35123         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35124         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35125         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35126         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
35127         * modules/snprintf-posix (Depends-on): Likewise.
35128         * modules/sprintf-posix (Depends-on): Likewise.
35129         * modules/vasnprintf-posix (Depends-on): Likewise.
35130         * modules/vasprintf-posix (Depends-on): Likewise.
35131         * modules/vfprintf-posix (Depends-on): Likewise.
35132         * modules/vsnprintf-posix (Depends-on): Likewise.
35133         * modules/vsprintf-posix (Depends-on): Likewise.
35134         * modules/vasnprintf (Files): Add lib/float+.h.
35135         * doc/functions/fprintf.texi: Update.
35136         * doc/functions/printf.texi: Update.
35137         * doc/functions/snprintf.texi: Update.
35138         * doc/functions/sprintf.texi: Update.
35139         * doc/functions/vfprintf.texi: Update.
35140         * doc/functions/vprintf.texi: Update.
35141         * doc/functions/vsnprintf.texi: Update.
35142         * doc/functions/vsprintf.texi: Update.
35143
35144 2007-05-18  Bruno Haible  <bruno@clisp.org>
35145
35146         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
35147
35148 2007-05-18  Bruno Haible  <bruno@clisp.org>
35149
35150         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
35151         for printing 64-bit integers. Needed for mingw.
35152
35153 2007-05-18  Bruno Haible  <bruno@clisp.org>
35154
35155         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
35156         gl_FUNC_FREXPL_WORKS.
35157         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
35158
35159 2007-05-18  Bruno Haible  <bruno@clisp.org>
35160
35161         * modules/frexpl-nolibm-tests: New file.
35162
35163         * modules/frexpl-nolibm: New file.
35164         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
35165
35166 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
35167
35168         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
35169         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
35170         GCC 4.2, which otherwise issues a lot of warnings.
35171         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
35172         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
35173         Likewise.
35174         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
35175         * modules/iconv_open (iconv.h): Likewise.
35176         * modules/locale (locale.h): Likewise.
35177         * modules/netinet_in (netinet/in.h): Likewise.
35178         * modules/sys_select (sys_select.h): Likewise.
35179         * modules/sys_socket (sys/socket.h): Likewise.
35180         * modules/sys_stat (sys/stat.h): Likewise.
35181         * modules/sysexits (sysexits.h): Likewise.
35182         * modules/unistd (unistd.h): Likewise.
35183
35184 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35185
35186         * modules/closein-tests (Makefile.am): Distribute
35187         `test-closein.sh'.
35188
35189 2007-05-17  Bruno Haible  <bruno@clisp.org>
35190
35191         * tests/test-printf-posix.output: Renamed from
35192         tests/test-fprintf-posix.out.
35193         * modules/fprintf-posix-tests: Update.
35194         * modules/printf-posix-tests: Update.
35195         * modules/vfprintf-posix-tests: Update.
35196         * modules/vprintf-posix-tests: Update.
35197         * tests/test-fprintf-posix.sh: Update.
35198         * tests/test-printf-posix.sh: Update.
35199         * tests/test-vfprintf-posix.sh: Update.
35200         * tests/test-vprintf-posix.sh: Update.
35201         Reported by Ralf Wildenhues.
35202
35203 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
35204
35205         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
35206         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
35207         GCC 4.2, which otherwise issues a lot of warnings.
35208         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
35209         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
35210         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
35211         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
35212         it should no longer be needed.
35213         * lib/string_.h: Likewise.
35214         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
35215         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
35216         * modules/inttypes (inttypes.h): Likewise.
35217         * modules/math (math.h): Likewise.
35218         * modules/search (search.h): Likewise.
35219         * modules/signal (signal.h): Likewise.
35220         * modules/stdint (stdint.h): Likewise.
35221         * modules/stdio (stdio.h): Likewise.
35222         * modules/stdlib (stdlib.h): Likewise.
35223         * modules/string (string.h): Likewise.
35224         * modules/sys_time (sys/time.h): Likewise.
35225         * modules/time (time.h): Likewise.
35226         * modules/wchar (wchar.h): Likewise.
35227         * modules/wctype (wtype.h): Likewise.
35228
35229 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
35230
35231         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
35232
35233 2007-05-13  Bruno Haible  <bruno@clisp.org>
35234
35235         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
35236         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
35237         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
35238         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
35239         (gl_PREREQ_STRTOK_R): Don't require it here.
35240
35241 2007-05-13  Bruno Haible  <bruno@clisp.org>
35242
35243         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
35244         when used in C++ mode.
35245
35246 2007-05-12  Bruno Haible  <bruno@clisp.org>
35247
35248         * lib/linebuffer.h: Tweak doc.
35249         * lib/linebuffer.c: Likewise.
35250
35251 2007-05-12  James Youngman  <jay@gnu.org>
35252
35253         * lib/linebuffer.c (readlinebuffer_delim): New function,
35254         like readlinebuffer, but use a caller-specified delimiter.
35255         (readlinebuffer): Just call readlinebuffer_delim with '\n'
35256         as the delimiter.
35257         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
35258
35259 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
35260
35261         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
35262         * modules/openat (Files): Remove openat-die.c.
35263         (Depends-on): Add openat-die.
35264         * modules/openat-die: New module.
35265
35266 2007-05-06  Bruno Haible  <bruno@clisp.org>
35267
35268         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
35269         Update with info about Cygwin.
35270         * doc/functions/fprintf.texi: Update.
35271         * doc/functions/printf.texi: Update.
35272         * doc/functions/snprintf.texi: Update.
35273         * doc/functions/sprintf.texi: Update.
35274         * doc/functions/vfprintf.texi: Update.
35275         * doc/functions/vprintf.texi: Update.
35276         * doc/functions/vsnprintf.texi: Update.
35277         * doc/functions/vsprintf.texi: Update.
35278         Reported by Eric Blake.
35279
35280 2007-05-06  Bruno Haible  <bruno@clisp.org>
35281
35282         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
35283         padding ourselves for the floating-point directives.
35284         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
35285         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
35286         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35287         gl_PRINTF_FLAG_ZERO and test its result. Invoke
35288         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
35289         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35290         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
35291         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35292         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35293         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35294         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35295         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35296         * tests/test-snprintf-posix.h (test_function): Also check the width
35297         and some flags in the %f directive.
35298         * tests/test-sprintf-posix.h (test_function): Likewise.
35299         * tests/test-vasnprintf-posix.c (test_function): Likewise.
35300         * tests/test-vasprintf-posix.c (test_function): Likewise.
35301         * doc/functions/fprintf.texi: Update.
35302         * doc/functions/printf.texi: Update.
35303         * doc/functions/snprintf.texi: Update.
35304         * doc/functions/sprintf.texi: Update.
35305         * doc/functions/vfprintf.texi: Update.
35306         * doc/functions/vprintf.texi: Update.
35307         * doc/functions/vsnprintf.texi: Update.
35308         * doc/functions/vsprintf.texi: Update.
35309
35310 2007-05-06  Bruno Haible  <bruno@clisp.org>
35311
35312         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
35313         pass the ' flag character to sprintf or snprintf.
35314         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
35315         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
35316         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35317         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
35318         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
35319         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35320         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
35321         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35322         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35323         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35324         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35325         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35326         * tests/test-snprintf-posix.h (test_function): Also check the grouping
35327         flag.
35328         * tests/test-sprintf-posix.h (test_function): Likewise.
35329         * tests/test-vasnprintf-posix.c (test_function): Likewise.
35330         * tests/test-vasprintf-posix.c (test_function): Likewise.
35331         * doc/functions/fprintf.texi: Update.
35332         * doc/functions/printf.texi: Update.
35333         * doc/functions/snprintf.texi: Update.
35334         * doc/functions/sprintf.texi: Update.
35335         * doc/functions/vfprintf.texi: Update.
35336         * doc/functions/vprintf.texi: Update.
35337         * doc/functions/vsnprintf.texi: Update.
35338         * doc/functions/vsprintf.texi: Update.
35339
35340 2007-05-01  Bruno Haible  <bruno@clisp.org>
35341
35342         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
35343
35344 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
35345
35346         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
35347         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
35348
35349 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
35350
35351         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
35352         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
35353         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
35354
35355 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
35356
35357         * lib/argp-help.c (struct hol_entry): New member `ord'.
35358         (HOL_ENTRY_PTRCMP): Use ord for comparison
35359         (hol_sort): Initialize ord.
35360
35361 2007-05-01  Bruno Haible  <bruno@clisp.org>
35362
35363         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
35364         Reported by Eric Blake.
35365         * doc/gnulib.texi (Function Substitutes): Update.
35366
35367 2007-05-01  Bruno Haible  <bruno@clisp.org>
35368
35369         * doc/functions.texi: Remove file, now redundant through
35370         doc/functions/*.texi.
35371
35372 2007-05-01  Bruno Haible  <bruno@clisp.org>
35373
35374         * modules/argp (Depends-on): Add sleep.
35375
35376 2007-05-01  Bruno Haible  <bruno@clisp.org>
35377
35378         * modules/sleep-tests: New file.
35379         * tests/test-sleep.c: New file.
35380
35381         * modules/sleep: New file.
35382         * lib/sleep.c: New file.
35383         * m4/sleep.m4: New file.
35384         * lib/unistd_.h (sleep): New declaration.
35385         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
35386         HAVE_SLEEP.
35387         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
35388         * doc/functions/sleep.texi: Document the sleep module.
35389
35390 2007-05-01  Bruno Haible  <bruno@clisp.org>
35391
35392         * lib/sigprocmask.h: Remove file.
35393         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
35394         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
35395         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
35396         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
35397         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
35398         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
35399         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
35400         HAVE_SIGSET_T as a shell variable.
35401         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
35402         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
35403         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
35404         (Depends-on): Add signal. Remove verify.
35405         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
35406         (Include): Mention <signal.h> instead of sigprocmask.h.
35407         * NEWS: Mention the change.
35408         * lib/fatal-signal.c: Don't include sigprocmask.h.
35409
35410 2007-05-01  Bruno Haible  <bruno@clisp.org>
35411
35412         * modules/signal: New file.
35413         * lib/signal_.h: New file.
35414         * m4/signal_h.m4: New file.
35415
35416 2007-05-01  Bruno Haible  <bruno@clisp.org>
35417
35418         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
35419         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
35420         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
35421         HAVE_WCTYPE_CTMP_BUG into wctype.h.
35422
35423 2007-05-01  Bruno Haible  <bruno@clisp.org>
35424
35425         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
35426         configure time.
35427         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
35428         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
35429         * modules/sys_stat (Makefile.am): Substitute their values into
35430         sys/stat.h.
35431
35432 2007-05-01  Bruno Haible  <bruno@clisp.org>
35433
35434         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
35435         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
35436         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
35437
35438 2007-05-01  Bruno Haible  <bruno@clisp.org>
35439
35440         * doc/header/assert.texi: Undo last change: don't mention the gnulib
35441         'assert' module here.
35442
35443 2007-05-01  Bruno Haible  <bruno@clisp.org>
35444
35445         * doc/functions/*.texi: New files.
35446         * doc/functions/google-ranking.txt: New file.
35447         * doc/gnulib.texi (Function Substitutes): New chapter.
35448         (ctime, inet_ntoa): Remove sections.
35449         * doc/ctime.texi: Remove file.
35450         * doc/inet_ntoa.texi: Remove file.
35451         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
35452         dependencies.
35453         (%.info): New rule, specifying a --reference-limit.
35454
35455 2007-05-01  Bruno Haible  <bruno@clisp.org>
35456
35457         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
35458
35459 2007-05-01  Bruno Haible  <bruno@clisp.org>
35460
35461         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
35462         the portability of 'mkdir' to mingw systems.
35463
35464 2007-05-01  Bruno Haible  <bruno@clisp.org>
35465
35466         * doc/headers/google-ranking.txt: New file.
35467
35468 2007-04-30  Eric Blake  <ebb9@byu.net>
35469
35470         Prefer fseeko to fseek.
35471         * modules/getpass (Depends-on): Add fseeko.
35472         * lib/getpass.c (getpass): Use fseeko, not fseek.
35473
35474 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
35475
35476         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
35477         assumes the sorting is stable, while most qsort implementations
35478         are not.  Use argument addresses to ensure they never compare as
35479         equal.
35480
35481         * tests/test-argp-2.sh (usage-indent test): Fix output
35482         (func_compare): Restore diff options
35483         * tests/test-argp.c: Restore #include "progname.h"
35484
35485 2007-04-29  Bruno Haible  <bruno@clisp.org>
35486
35487         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
35488         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35489         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
35490         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35491         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
35492         (configure.ac): Define CHECK_SNPRINTF_POSIX.
35493         (TESTS, check_PROGRAMS): Add test-snprintf.
35494         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
35495         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
35496         (TESTS, check_PROGRAMS): Add test-vsnprintf.
35497         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
35498         assertions that fail on HP-UX, OSF/1, or IRIX.
35499         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
35500
35501 2007-04-29  Bruno Haible  <bruno@clisp.org>
35502
35503         * MODULES.html.sh (posix_functions): Remove 'contents'.
35504
35505 2007-04-29  Karl Berry  <karl@gnu.org>
35506
35507         * config/srclist.txt (gendocs_template_min): new entry.
35508
35509 2007-04-29  Bruno Haible  <bruno@clisp.org>
35510
35511         Work around fpurge bug on BSD systems.
35512         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
35513         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
35514         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
35515         fpurge to rpl_fpurge if the system already has this function.
35516         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
35517         the case where the system already has this function. Correct invariants
35518         on BSD systems.
35519         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
35520         BSD systems.
35521
35522 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
35523
35524         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
35525         proposed by Sven Verdoolaege.
35526
35527         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
35528         options.
35529         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
35530         (usage and help tests): Update
35531
35532 2007-04-29  Bruno Haible  <bruno@clisp.org>
35533
35534         * tests/test-fflush.c (main): Use a file of size 17, not 10.
35535         Print more information in case of failure. Disable a test on BeOS.
35536
35537 2007-04-29  Bruno Haible  <bruno@clisp.org>
35538
35539         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
35540         This helps debugging on systems on which no gdb is available.
35541
35542 2007-04-29  Bruno Haible  <bruno@clisp.org>
35543
35544         * lib/freading.h: Improve comments.
35545         * lib/fwriting.h: Likewise.
35546         * tests/test-freading.c (main): Don't check freading immediately after
35547         repositioning. Needed for glibc.
35548
35549 2007-04-29  Bruno Haible  <bruno@clisp.org>
35550
35551         * lib/freading.c (freading): Trivial simplification.
35552
35553 2007-04-28  Bruno Haible  <bruno@clisp.org>
35554
35555         * tests/test-fwriting.c (main): Also test the interaction between
35556         fflush and fwriting.
35557         * modules/fwriting-tests (Depends-on): Add fflush.
35558
35559         * tests/test-freading.c (main): Also test the interaction between
35560         fflush and freading.
35561         * modules/freading-tests (Depends-on): Add fflush.
35562
35563 2007-04-28  Bruno Haible  <bruno@clisp.org>
35564
35565         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
35566         fseeko and ftello.
35567         Suggested by Eric Blake.
35568
35569 2007-04-28  Jim Meyering  <jim@meyering.net>
35570
35571         Avoid false-negative in gl_STDINT_H's C99 conformance test.
35572         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
35573         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
35574
35575 2007-04-27  Eric Blake  <ebb9@byu.net>
35576
35577         * doc/headers/assert.texi (assert.h): Document assert module use.
35578
35579 2007-04-27  Bruno Haible  <bruno@clisp.org>
35580
35581         * doc/headers/*.texi: New files.
35582         * doc/gnulib.texi (Header File Substitutes): New chapter.
35583         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
35584         dependencies.
35585         (standards.info ,standards.html, standards.dvi): Update dependencies.
35586         (mostlyclean, clean): New targets.
35587
35588 2007-04-27  Bruno Haible  <bruno@clisp.org>
35589
35590         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
35591         * modules/sysexits (Files, Makefile.am): Update.
35592
35593         * lib/sys_socket_.h: Renamed from lib/socket_.h.
35594         * modules/sys_socket (Files, Makefile.am): Update.
35595
35596         * lib/sys_stat_.h: Renamed from lib/stat_.h.
35597         * modules/sys_stat (Files, Makefile.am): Update.
35598
35599 2007-04-27  Eric Blake  <ebb9@byu.net>
35600
35601         * lib/freading.h: Improve comments.
35602         * lib/fwriting.h: Likewise.
35603         * lib/fflush.c: Likewise.
35604
35605         Fix closein for mingw.
35606         * modules/closein-tests: Add tests for closein.
35607         * tests/test-closein.c: New file.
35608         * tests/test-closein.sh: Likewise.
35609         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
35610         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
35611
35612 2007-04-27  Bruno Haible  <bruno@clisp.org>
35613
35614         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
35615         version is < 6.
35616         * lib/math_.h [__DECC]: Likewise.
35617         * lib/stdio_.h [__DECC]: Likewise.
35618         * lib/stdlib_.h [__DECC]: Likewise.
35619         * lib/string_.h [__DECC]: Likewise.
35620         * lib/time_.h [__DECC]: Likewise.
35621         * lib/wchar_.h [__DECC]: Likewise.
35622         * lib/wctype_.h [__DECC]: Likewise.
35623
35624 2007-04-27  Bruno Haible  <bruno@clisp.org>
35625
35626         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
35627
35628 2007-04-27  Bruno Haible  <bruno@clisp.org>
35629
35630         * lib/fflush.c: Add comments.
35631         * modules/fpurge-tests (Depends-on): Add fflush.
35632         * modules/freadable-tests (Depends-on): Likewise.
35633         * modules/fwritable-tests (Depends-on): Likewise.
35634
35635 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
35636
35637         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
35638         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
35639         Report by Bruno Haible <bruno@clisp.org>.
35640
35641 2007-04-26  Eric Blake  <ebb9@byu.net>
35642
35643         Fix fflush on mingw.
35644         * modules/fflush (Depends-on): Add freading.
35645         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
35646         but unread data.
35647
35648 2007-04-26  Eric Blake  <ebb9@byu.net>
35649         and Bruno Haible  <bruno@clisp.org>
35650
35651         Implement freading and fwriting.
35652         * lib/freading.c: New file.
35653         * lib/freading.h: Likewise.
35654         * m4/freading.m4: Likewise.
35655         * modules/freading: Likewise.
35656         * modules/freading-tests: Likewise.
35657         * tests/test-freading.c: Likewise.
35658         * lib/fwriting.c: New file.
35659         * lib/fwriting.h: Likewise.
35660         * m4/fwriting.m4: Likewise.
35661         * modules/fwriting: Likewise.
35662         * modules/fwriting-tests: Likewise.
35663         * tests/test-fwriting.c: Likewise.
35664         * MODULES.html.sh (File stream based Input/Output): Mention them.
35665
35666 2007-04-26  Bruno Haible  <bruno@clisp.org>
35667
35668         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
35669         'long' when we assume it.
35670         Suggested by Eric Blake.
35671
35672 2007-04-26  Bruno Haible  <bruno@clisp.org>
35673
35674         Ensure fseeko, ftello are declared on glibc systems.
35675         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
35676         * modules/fseeko (configure.ac-early): Likewise.
35677         * modules/ftello (configure.ac-early): Likewise.
35678         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
35679         AC_FUNC_FSEEKO for this.
35680         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
35681         (gl_CHECK_FSEEKO): Remove macro.
35682
35683 2007-04-26  Bruno Haible  <bruno@clisp.org>
35684
35685         * tests/test-fflush.c (main): Also check the ftell result after
35686         fflush and fseek/fseeko.
35687         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
35688         file descriptor position cache in the stream.
35689         * lib/fseeko.c (rpl_fseeko): Likewise.
35690
35691 2007-04-26  Bruno Haible  <bruno@clisp.org>
35692
35693         * modules/fflush-tests (Depends-on): Add fseeko.
35694
35695 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
35696             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35697
35698         * lib/argz_.h: ensure error_t definition is obtained in same
35699         mechanism system argz.h would have.
35700         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
35701         argz facilities are known bad.  Err on the side of caution if
35702         cross-compiling.
35703
35704 2007-04-25  Eric Blake  <ebb9@byu.net>
35705
35706         * lib/fpurge.c (includes): Use stdlib.h for free.
35707         * tests/test-fflush.c (main): Also test fflush-fseeko.
35708
35709 2007-04-25  Bruno Haible  <bruno@clisp.org>
35710
35711         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
35712         * lib/fseeko.c: New file.
35713         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
35714         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
35715         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
35716         gl_FUNC_FSEEKO.
35717         (gl_FUNC_FSEEKO): Invoke it.
35718         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
35719         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
35720         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
35721
35722 2007-04-25  Bruno Haible  <bruno@clisp.org>
35723
35724         * modules/fflush (Depends-on): Add ftello.
35725
35726 2007-04-25  Bruno Haible  <bruno@clisp.org>
35727
35728         * modules/ftello-tests: New file.
35729         * tests/test-ftello.c: New file.
35730
35731         * modules/ftello: New file.
35732         * m4/ftello.m4: New file.
35733         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
35734         HAVE_FTELLO.
35735         * lib/stdio_.h (ftello): New declaration.
35736         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
35737         HAVE_FTELLO.
35738
35739 2007-04-25  Bruno Haible  <bruno@clisp.org>
35740
35741         * modules/fseeko-tests: New file.
35742         * tests/test-fseeko.c: New file.
35743
35744         * modules/fseeko: New file.
35745         * m4/fseeko.m4: New file.
35746         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
35747         HAVE_FSEEKO.
35748         * lib/stdio_.h (fseeko): New declaration.
35749         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
35750         HAVE_FSEEKO.
35751
35752 2007-04-25  Bruno Haible  <bruno@clisp.org>
35753
35754         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
35755
35756 2007-04-25  Bruno Haible  <bruno@clisp.org>
35757
35758         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
35759         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
35760         * tests/test-unistd.c: Likewise.
35761         * tests/test-fcntl.c: Likewise.
35762
35763 2007-04-23  Eric Blake  <ebb9@byu.net>
35764
35765         * lib/fflush.c: Fix missing include.
35766         Reported by Bruno Haible.
35767
35768 2007-04-23  Bruno Haible  <bruno@clisp.org>
35769
35770         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
35771         Reported by Eric Blake.
35772
35773 2007-04-23  Bruno Haible  <bruno@clisp.org>
35774
35775         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
35776
35777 2007-04-23  Bruno Haible  <bruno@clisp.org>
35778
35779         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
35780
35781 2007-04-23  Bruno Haible  <bruno@clisp.org>
35782
35783         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
35784         Needed on HP-UX 11.
35785
35786 2007-04-16  Eric Blake  <ebb9@byu.net>
35787
35788         Make fflush rely on fpurge.
35789         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
35790         open coding all variants.
35791         * modules/fflush (Depends-on): Add fpurge and unistd.
35792         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
35793         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
35794
35795         Fix --with-tests compilation on cygwin.
35796         * modules/argmatch-tests (Makefile.am): List gnulib library first
35797         in LDADD.
35798         * modules/argp-tests (Makefile.am): Likewise.
35799         * modules/array-list-tests (Makefile.am): Likewise.
35800         * modules/array-oset-tests (Makefile.am): Likewise.
35801         * modules/avltree-list-tests (Makefile.am): Likewise.
35802         * modules/avltree-oset-tests (Makefile.am): Likewise.
35803         * modules/avltreehash-list-tests (Makefile.am): Likewise.
35804         * modules/carray-list-tests (Makefile.am): Likewise.
35805         * modules/dirname-tests (Makefile.am): Likewise.
35806         * modules/frexp-tests (Makefile.am): Likewise.
35807         * modules/isnanl-tests (Makefile.am): Likewise.
35808         * modules/linked-list-tests (Makefile.am): Likewise.
35809         * modules/linkedhash-list-tests (Makefile.am): Likewise.
35810         * modules/lock-tests (Makefile.am): Likewise.
35811         * modules/rbtree-list-tests (Makefile.am): Likewise.
35812         * modules/rbtree-oset-tests (Makefile.am): Likewise.
35813         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
35814         * modules/tls-tests (Makefile.am): Likewise.
35815         * modules/tsearch-tests (Makefile.am): Likewise.
35816         * modules/xvasprintf-tests (Makefile.am): Likewise.
35817
35818         Fix fpurge for cygwin.
35819         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
35820         value.
35821         * modules/fpurge-tests (Depends-on): Clean up trash.
35822
35823 2007-04-16  Simon Josefsson  <simon@josefsson.org>
35824
35825         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
35826
35827         * m4/autobuild.m4: Re-indent.
35828
35829 2007-04-13  Bruno Haible  <bruno@clisp.org>
35830
35831         * modules/fpurge-tests: New file.
35832         * tests/test-fpurge.c: New file.
35833
35834         * modules/fpurge: New file.
35835         * lib/fpurge.h: New file.
35836         * lib/fpurge.c: New file.
35837         * m4/fpurge.m4: New file.
35838
35839 2007-04-13  Bruno Haible  <bruno@clisp.org>
35840
35841         * modules/fbufmode-tests: New file.
35842         * tests/test-fbufmode.c: New file.
35843
35844         * modules/fbufmode: New file.
35845         * lib/fbufmode.h: New file.
35846         * lib/fbufmode.c: New file.
35847         * m4/fbufmode.m4: New file.
35848
35849 2007-04-13  Bruno Haible  <bruno@clisp.org>
35850
35851         * modules/fwritable-tests: New file.
35852         * tests/test-fwritable.c: New file.
35853
35854         * modules/fwritable: New file.
35855         * lib/fwritable.h: New file.
35856         * lib/fwritable.c: New file.
35857         * m4/fwritable.m4: New file.
35858
35859 2007-04-13  Bruno Haible  <bruno@clisp.org>
35860
35861         * modules/freadable-tests: New file.
35862         * tests/test-freadable.c: New file.
35863
35864         * modules/freadable: New file.
35865         * lib/freadable.h: New file.
35866         * lib/freadable.c: New file.
35867         * m4/freadable.m4: New file.
35868
35869 2007-04-13  Bruno Haible  <bruno@clisp.org>
35870
35871         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
35872         MOSTLYCLEANFILES.
35873
35874 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
35875
35876         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
35877         gzip bootstrap.conf to avoid dragging in i18n machinery.
35878         (gnulib_tool_option): Use it.
35879
35880 2007-04-13  Bruno Haible  <bruno@clisp.org>
35881
35882         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
35883         %F directives.
35884         * tests/test-vasprintf-posix.c (test_function): Likewise.
35885         * tests/test-snprintf-posix.h (test_function): Likewise.
35886         * tests/test-sprintf-posix.h (test_function): Likewise.
35887         * tests/test-fprintf-posix.h (test_function): Likewise.
35888         * tests/test-printf-posix.h (test_function): Likewise.
35889         * tests/test-fprintf-posix.out: Likewise.
35890
35891 2007-04-13  Bruno Haible  <bruno@clisp.org>
35892
35893         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
35894         * modules/tls-tests (configure.ac): Likewise.
35895         Reported by Arto C. Nirkko <anirkko@insel.ch>.
35896
35897 2007-04-13  Bruno Haible  <bruno@clisp.org>
35898
35899         * lib/tls.c (glthread_tls_get): Fix return type.
35900         Patch by Arto C. Nirkko <anirkko@insel.ch>.
35901
35902 2007-04-12  Eric Blake  <ebb9@byu.net>
35903
35904         * modules/gettime (Depends-on): Remove gettime.
35905         Reported by Dmitry V. Levin.
35906
35907 2007-04-12  Bruno Haible  <bruno@clisp.org>
35908
35909         * modules/fflush (Include): Mention <stdio.h>.
35910         * modules/strtoimax (Include): Mention <inttypes.h>.
35911         * modules/strtoumax (Include): Likewise.
35912
35913 2007-04-12  Eric Blake  <ebb9@byu.net>
35914
35915         * .cvsignore: New file.
35916         * .gitignore: Likewise.
35917
35918 2007-04-12  Bruno Haible  <bruno@clisp.org>
35919
35920         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
35921         not before, since $(LDADD) often contains libgnu.a.
35922         * modules/striconv-tests (test_striconv_LDADD): Likewise.
35923         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
35924         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
35925         Needed on Cygwin.
35926
35927 2007-04-12  Eric Blake  <ebb9@byu.net>
35928
35929         Work around glibc's failure to flush stdin on fclose.
35930         * lib/closein.c (close_stdin): Flush stdin before closing.
35931
35932         Work around glibc's failure to reset seekable stdin on exit.
35933         * modules/closein: New module.
35934         * lib/closein.c: New file.
35935         * lib/closein.h: Likewise.
35936         * m4/closein.m4: Likewise.
35937         * MODULES.html.sh (File stream based Input/Output): Document it.
35938
35939 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35940
35941         * gnulib-tool: Rename generated 'autobuild' script to
35942         'do-autobuild' in --create-megatestdir output.
35943
35944         * doc/gnulib.texi (Build robot for gnulib): Fix.
35945
35946 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35947
35948         * modules/sysexits (Depends-on): Add absolute-header.
35949
35950 2007-04-12  Eric Blake  <ebb9@byu.net>
35951
35952         No need to preserve errno on success.
35953         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
35954         Reported by Bruno Haible.
35955
35956 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35957
35958         * MODULES.html.sh (Support for maintaining and releasing
35959         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
35960
35961 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35962
35963         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
35964
35965 2007-04-12  Simon Josefsson  <simon@josefsson.org>
35966
35967         * modules/autobuild: New module.
35968
35969         * m4/autobuild.m4: New file.
35970
35971 2007-04-11  Bruno Haible  <bruno@clisp.org>
35972
35973         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
35974         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
35975         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
35976         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
35977         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35978         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35979         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35980         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35981         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35982         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35983         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
35984         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35985         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35986         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
35987         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35988         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35989         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
35990         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35991         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35992         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
35993         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35994         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35995         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
35996         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
35997         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
35998         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
35999         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36000         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36001         Reported by Eric Blake.
36002
36003 2007-04-11  Bruno Haible  <bruno@clisp.org>
36004
36005         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
36006
36007 2007-04-10  Bruno Haible  <bruno@clisp.org>
36008
36009         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
36010         for NaN and Infinity. Needed on FreeBSD 6.1.
36011         * tests/test-vasnprintf-posix.c (test_function): Undo last change
36012         regarding results for "%010a" of Infinity and NaN.
36013         * tests/test-vasprintf-posix.c (test_function): Likewise.
36014         * tests/test-snprintf-posix.h (test_function): Likewise.
36015         * tests/test-sprintf-posix.h (test_function): Likewise.
36016         * tests/test-fprintf-posix.h (test_function): Likewise.
36017         * tests/test-printf-posix.h (test_function): Likewise.
36018         * tests/test-fprintf-posix.out: Likewise.
36019
36020 2007-04-10  Bruno Haible  <bruno@clisp.org>
36021
36022         * modules/locale-tests: New file.
36023         * tests/test-locale.c: New file.
36024
36025         * modules/locale: New file.
36026         * lib/locale_.h: New file.
36027         * m4/locale_h.m4: New file.
36028
36029 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
36030             Bruno Haible  <bruno@clisp.org>
36031
36032         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
36033         be determined, test for availability of the copysignf, copysign,
36034         copysignl functions.
36035         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
36036         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
36037         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
36038
36039 2007-04-09  Eric Blake  <ebb9@byu.net>
36040
36041         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
36042         * modules/stdio (Makefile.am): Support fflush.
36043         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36044         * modules/fflush: New file.
36045         * lib/fflush.c: Likewise.
36046         * m4/fflush.m4: Likewise.
36047         * modules/fflush-tests: New test.
36048         * tests/test-fflush.c: Likewise.
36049         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
36050
36051 2007-04-06  Bruno Haible  <bruno@clisp.org>
36052
36053         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
36054         (VASNPRINTF): Use signbit for faster determination whether to print a
36055         minus sign.
36056         * modules/vasnprintf (Files): Remove lib/float+.h.
36057         * modules/fprintf-posix (Depends-on): Add signbit.
36058         * modules/snprintf-posix (Depends-on): Likewise.
36059         * modules/sprintf-posix (Depends-on): Likewise.
36060         * modules/vasnprintf-posix (Depends-on): Likewise.
36061         * modules/vasprintf-posix (Depends-on): Likewise.
36062         * modules/vfprintf-posix (Depends-on): Likewise.
36063         * modules/vsnprintf-posix (Depends-on): Likewise.
36064         * modules/vsprintf-posix (Depends-on): Likewise.
36065
36066 2007-04-06  Bruno Haible  <bruno@clisp.org>
36067
36068         * tests/test-frexp.c (main): Test also the sign bit of zero results.
36069         * tests/test-frexpl.c (main): Likewise.
36070         * tests/test-ldexpl.c (main): Likewise.
36071         * modules/frexp-tests (Depends-on): Add signbit.
36072         * modules/frexpl-tests (Depdends-on): Likewise.
36073         * modules/ldexpl-tests (Depdends-on): Likewise.
36074
36075 2007-04-06  Bruno Haible  <bruno@clisp.org>
36076
36077         * modules/signbit-tests: New file.
36078         * tests/test-signbit.c: New file.
36079
36080         * modules/signbit: New file.
36081         * lib/signbitf.c: New file.
36082         * lib/signbitd.c: New file.
36083         * lib/signbitl.c: New file.
36084         * m4/signbit.m4: New file.
36085         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
36086         (signbit): New macro.
36087         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
36088         REPLACE_SIGNBIT.
36089         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
36090         REPLACE_FREXPL into math.h.
36091
36092 2007-04-06  Bruno Haible  <bruno@clisp.org>
36093
36094         * modules/isnanf-nolibm-tests: New file.
36095         * tests/test-isnanf.c: New file.
36096
36097         * modules/isnanf-nolibm: New file.
36098         * lib/isnanf.h: New file.
36099         * lib/isnanf.c: New file.
36100         * lib/isnan.c: Consider the USE_FLOAT macro.
36101         * m4/isnanf.m4: New file.
36102
36103 2007-04-06  Bruno Haible  <bruno@clisp.org>
36104
36105         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
36106         (Link): New section.
36107
36108         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
36109
36110 2007-04-06  Bruno Haible  <bruno@clisp.org>
36111
36112         Assume the 'long double' type.
36113         * m4/longdouble.m4: Remove file.
36114         * config/srclist.txt: Don't mention longdouble.m4.
36115         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
36116         * lib/float+.h: Likewise.
36117         * lib/frexp.c: Likewise.
36118         * lib/printf-args.h: Likewise.
36119         * lib/printf-args.c: Likewise.
36120         * lib/printf-frexp.c: Likewise.
36121         * lib/printf-parse.c: Likewise.
36122         * lib/vasnprintf.c: Likewise.
36123         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
36124         * m4/intl.m4: Likewise.
36125         * m4/isnanl.m4: Likewise.
36126         * m4/printf.m4: Likewise.
36127         * m4/printf-frexpl.m4: Likewise.
36128         * m4/vasnprintf.m4: Likewise.
36129         * modules/allocsa (Files): Remove m4/longdouble.m4.
36130         * modules/gettext (Files): Likewise.
36131         * modules/relocatable-prog-wrapper (Files): Likewise.
36132         * modules/vasnprintf (Files): Likewise.
36133         * modules/isnanl (Files): Likewise.
36134         (Include): Simplify.
36135         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
36136         (Include): Simplify.
36137         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
36138         (Include): Simplify.
36139         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
36140         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36141         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
36142         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36143         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
36144         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36145         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
36146         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36147         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
36148         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36149         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
36150         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36151         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
36152         * tests/test-isnanl.c: Likewise.
36153         * tests/test-snprintf-posix.h: Likewise.
36154         * tests/test-sprintf-posix.h: Likewise.
36155         * tests/test-vasnprintf-posix.c: Likewise.
36156         * tests/test-vasnprintf-posix2.c: Likewise.
36157         * tests/test-vasprintf-posix.c: Likewise.
36158
36159 2007-04-06  Bruno Haible  <bruno@clisp.org>
36160
36161         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
36162         * lib/math_.h [__DECC]: Include the overridden include file through
36163         #include_next, outside the double-inclusion guard.
36164         * lib/stdio_.h [__DECC]: Likewise.
36165         * lib/stdlib_.h [__DECC]: Likewise.
36166         * lib/string_.h [__DECC]: Likewise.
36167         * lib/time_.h [__DECC]: Likewise.
36168         * lib/wchar_.h [__DECC]: Likewise.
36169         * lib/wctype_.h [__DECC]: Likewise.
36170         * lib/inttypes_.h [__DECC]: Likewise.
36171         Reported by Albert Chin <china@thewrittenword.com> in
36172         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
36173
36174 2007-04-04  Eric Blake  <ebb9@byu.net>
36175
36176         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
36177         1.5.x.
36178
36179 2007-04-04  Bruno Haible  <bruno@clisp.org>
36180
36181         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
36182         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
36183
36184 2007-04-04  Bruno Haible  <bruno@clisp.org>
36185
36186         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
36187         results for "%010a" of Infinity and NaN.
36188         * tests/test-vasprintf-posix.c (test_function): Likewise.
36189         * tests/test-snprintf-posix.h (test_function): Likewise.
36190         * tests/test-sprintf-posix.h (test_function): Likewise.
36191         * tests/test-fprintf-posix.h (test_function): Remove these tests.
36192         * tests/test-printf-posix.h (test_function): Likewise.
36193         * tests/test-fprintf-posix.out: Update.
36194         Needed for FreeBSD 6.1.
36195
36196 2007-04-04  Bruno Haible  <bruno@clisp.org>
36197
36198         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
36199         directly used by the gnulib modules nor by gnulib-tool.
36200
36201 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
36202
36203         * DEPENDENCIES: Give overall description of version dependency
36204         desirability.  Use more-typical names for apps.
36205         Add shell, coreutils, diffutils, grep, tar, gzip.
36206
36207 2007-04-04  Simon Josefsson  <simon@josefsson.org>
36208
36209         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
36210
36211 2007-04-04  Karl Berry  <karl@gnu.org>
36212
36213         * MODULES.html.sh (func_module): missing '.
36214
36215 2007-04-03  Bruno Haible  <bruno@clisp.org>
36216
36217         * modules/argmatch-tests (Makefile.am): New variable
36218         test_argmatch_LDADD.
36219         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
36220         * modules/array-list-tests (Makefile.am): New variable
36221         test_array_list_LDADD.
36222         * modules/array-oset-tests (Makefile.am): New variable
36223         test_array_oset_LDADD.
36224         * modules/avltree-list-tests (Makefile.am): New variable
36225         test_avltree_list_LDADD.
36226         * modules/avltree-oset-tests (Makefile.am): New variable
36227         test_avltree_oset_LDADD.
36228         * modules/avltreehash-list-tests (Makefile.am): New variable
36229         test_avltreehash_list_LDADD.
36230         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
36231         test_canonicalize_lgpl_LDADD.
36232         * modules/carray-list-tests (Makefile.am): New variable
36233         test_carray_list_LDADD.
36234         * modules/dirname-tests (Makefile.am): New variable
36235         test_dirname_LDADD.
36236         * modules/linked-list-tests (Makefile.am): New variable
36237         test_linked_list_LDADD.
36238         * modules/linkedhash-list-tests (Makefile.am): New variable
36239         test_linkedhash_list_LDADD.
36240         * modules/rbtree-list-tests (Makefile.am): New variable
36241         test_rbtree_list_LDADD.
36242         * modules/rbtree-oset-tests (Makefile.am): New variable
36243         test_rbtree_oset_LDADD.
36244         * modules/rbtreehash-list-tests (Makefile.am): New variable
36245         test_rbtreehash_list_LDADD.
36246         * modules/xvasprintf-tests (Makefile.am): New variable
36247         test_xvasprintf_LDADD.
36248         Reported by Eric Blake.
36249
36250 2007-04-03  Eric Blake  <ebb9@byu.net>
36251
36252         * DEPENDENCIES: Weaken m4 requirements.
36253
36254 2007-04-03  Bruno Haible  <bruno@clisp.org>
36255
36256         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
36257         * modules/isnanl-tests (configure.ac): Likewise.
36258
36259 2007-04-03  Ben Pfaff  <blp@gnu.org>
36260
36261         * modules/iconv_open: Add $(srcdir)/ to source directory
36262         references in Makefile fragments that call gperf, to fix VPATH
36263         builds.
36264
36265 2007-04-03  Bruno Haible  <bruno@clisp.org>
36266
36267         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
36268         * lib/ldexpl.c: Undo last change.
36269
36270 2007-04-03  Bruno Haible  <bruno@clisp.org>
36271
36272         * modules/printf-frexpl (Depends-on): Undo last change.
36273         (Files): Add m4/ldexpl.m4.
36274
36275 2007-04-03  Bruno Haible  <bruno@clisp.org>
36276
36277         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
36278         * modules/isnanl (Link): New section.
36279
36280         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
36281         * modules/frexp (Link): New section.
36282
36283         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
36284         * modules/frexpl (Link): New section.
36285
36286         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
36287         * modules/ldexpl (Link): New section.
36288
36289 2007-04-03  Bruno Haible  <bruno@clisp.org>
36290
36291         * modules/TEMPLATE-EXTENDED: New file.
36292         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
36293
36294 2007-04-03  Bruno Haible  <bruno@clisp.org>
36295
36296         * DEPENDENCIES: New file.
36297         Suggested by Simon Josefsson.
36298
36299 2007-04-03  Bruno Haible  <bruno@clisp.org>
36300
36301         * doc/gnulib.texi: Escape @.
36302
36303 2007-04-03  James Youngman  <jay@gnu.org>
36304         and Paul Eggert  <eggert@cs.ucla.edu>
36305
36306         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
36307         birthtime on all systems that have birthtime, not just those which
36308         use st_birthtimensec rather than st_birthtim.  Putting zero in
36309         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
36310         that the birth time is not available for files on an NFS mount.
36311
36312 2007-04-03  Simon Josefsson  <simon@josefsson.org>
36313
36314         * modules/memxor: Move back from crypto/, suggested by Bruno.
36315         * modules/crypto/hmac-sha1: Fix memxor dependency.
36316
36317         * modules/crypto/gc: Moved from ../.
36318
36319 2007-04-02  Eric Blake  <ebb9@byu.net>
36320
36321         * lib/ldexpl.c (includes): Avoid libm.
36322
36323         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
36324
36325 2007-04-02  Bruno Haible  <bruno@clisp.org>
36326
36327         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
36328         on IRIX.
36329
36330 2007-04-02  Bruno Haible  <bruno@clisp.org>
36331
36332         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
36333         x86 or x86_64 platforms running MacOS X.
36334         Reported by Ryan Schmidt <@ryandesign.com>.
36335
36336 2007-04-02  Bruno Haible  <bruno@clisp.org>
36337
36338         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
36339         i386.
36340
36341 2007-04-01  Simon Josefsson  <simon@josefsson.org>
36342
36343         * modules/crypto/arcfour: Moved from ../.
36344         * modules/crypto/arcfour-tests: Moved from ../.
36345         * modules/crypto/arctwo: Moved from ../.
36346         * modules/crypto/arctwo-tests: Moved from ../.
36347         * modules/crypto/des: Moved from ../.
36348         * modules/crypto/des-tests: Moved from ../.
36349         * modules/crypto/gc-arcfour: Moved from ../.
36350         * modules/crypto/gc-arcfour-tests: Moved from ../.
36351         * modules/crypto/gc-arctwo: Moved from ../.
36352         * modules/crypto/gc-arctwo-tests: Moved from ../.
36353         * modules/crypto/gc-des: Moved from ../.
36354         * modules/crypto/gc-des-tests: Moved from ../.
36355         * modules/crypto/gc-hmac-md5: Moved from ../.
36356         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
36357         * modules/crypto/gc-hmac-sha1: Moved from ../.
36358         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
36359         * modules/crypto/gc-md2: Moved from ../.
36360         * modules/crypto/gc-md2-tests: Moved from ../.
36361         * modules/crypto/gc-md4: Moved from ../.
36362         * modules/crypto/gc-md4-tests: Moved from ../.
36363         * modules/crypto/gc-md5: Moved from ../.
36364         * modules/crypto/gc-md5-tests: Moved from ../.
36365         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
36366         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
36367         * modules/crypto/gc-random: Moved from ../.
36368         * modules/crypto/gc-rijndael: Moved from ../.
36369         * modules/crypto/gc-rijndael-tests: Moved from ../.
36370         * modules/crypto/gc-sha1: Moved from ../.
36371         * modules/crypto/gc-sha1-tests: Moved from ../.
36372         * modules/crypto/gc-tests: Moved from ../.
36373         * modules/crypto/hmac-md5: Moved from ../.
36374         * modules/crypto/hmac-md5-tests: Moved from ../.
36375         * modules/crypto/hmac-sha1: Moved from ../.
36376         * modules/crypto/hmac-sha1-tests: Moved from ../.
36377         * modules/crypto/md2: Moved from ../.
36378         * modules/crypto/md2-tests: Moved from ../.
36379         * modules/crypto/md4: Moved from ../.
36380         * modules/crypto/md4-tests: Moved from ../.
36381         * modules/crypto/md5: Moved from ../.
36382         * modules/crypto/md5-tests: Moved from ../.
36383         * modules/crypto/memxor: Moved from ../.
36384         * modules/crypto/rijndael: Moved from ../.
36385         * modules/crypto/rijndael-tests: Moved from ../.
36386         * modules/crypto/sha1: Moved from ../.
36387
36388 2007-03-30  James Youngman  <jay@gnu.org>
36389
36390         * tests/test-stat-time.c (prepare_test): use chmod() rather than
36391         rename() to change the ctime of a file (because ctime is unaffected
36392         by rename on jfs2 on AIX 5.1).
36393         (main): Start by doing cleanup, in case a previous run failed leaving
36394         test files behind.
36395
36396 2007-03-31  Bruno Haible  <bruno@clisp.org>
36397
36398         Support old proprietary implementations of iconv.
36399         * modules/iconv_open: New file.
36400         * lib/iconv_.h: New file.
36401         * m4/iconv_h.m4: New file.
36402         * lib/iconv_open.c: New file.
36403         * lib/iconv_open-aix.gperf: New file.
36404         * lib/iconv_open-hpux.gperf: New file.
36405         * lib/iconv_open-irix.gperf: New file.
36406         * lib/iconv_open-osf.gperf: New file.
36407         * m4/iconv_open.m4: New file.
36408         * modules/linebreak (Depends-on): Add iconv_open.
36409         * modules/striconv (Depends-on): Likewise.
36410         * modules/striconveh (Depends-on): Likewise.
36411         * modules/unicodeio (Depends-on): Likewise.
36412         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
36413         (iconv_t)(-1).
36414         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
36415         conversion if cd is (iconv_t)(-1).
36416         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
36417         is not possible.
36418
36419 2007-03-31  Bruno Haible  <bruno@clisp.org>
36420
36421         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
36422         work on Solaris either. Protect also second use of "autodetect_jp".
36423
36424 2007-03-31  Bruno Haible  <bruno@clisp.org>
36425
36426         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
36427         the function is not present.
36428
36429 2007-03-31  Bruno Haible  <bruno@clisp.org>
36430
36431         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
36432         the function is not present.
36433
36434 2007-03-31  Bruno Haible  <bruno@clisp.org>
36435
36436         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
36437         a bug in HP-UX iconv_open().
36438
36439 2007-03-31  Bruno Haible  <bruno@clisp.org>
36440
36441         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
36442         (Mathematics <math.h>): New section, add fpieee.
36443         (Input/output <stdio.h>): Add fseterr.
36444         (Mathematics <math.h>): New section, add printf-frexp.
36445         (Container data structures): Add sublist.
36446         (Core language properties): Add fpucw, inline.
36447         (Functions for greatest-width integer types <inttypes.h>): Add
36448         imaxabs, imaxdiv, inttypes.
36449         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
36450         isnanl-nolibm, ldexp.
36451         (Mathematics <math.h>): New section, add printf-frexpl.
36452         (Support for systems lacking POSIX:2001): Add fprintf-posix,
36453         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
36454         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
36455         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
36456         (Unicode string functions): Add unistr/u*-mbtoucr.
36457         (Java): Add javacomp-script, javaexec-script.
36458         (C#): Add csharpcomp-script, csharpexec-script.
36459         (Support for building libraries and executables): Add havelib,
36460         relocatable-*.
36461         (Support for maintaining and releasing projects): Renamed from
36462         'Support for maintaining and release projects'. Add announce-gen.
36463
36464 2007-03-31  Bruno Haible  <bruno@clisp.org>
36465
36466         * README: Talk primarily about git.
36467         (git and CVS): Renamed from CVS.
36468         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
36469         gnulib is available through git.
36470         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
36471
36472 2007-03-30  Bruno Haible  <bruno@clisp.org>
36473
36474         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
36475         * lib/poll_.h: Likewise.
36476         * lib/stat_.h: Likewise.
36477         * lib/sys_time_.h: Likewise.
36478         * lib/sysexit_.h: Likewise.
36479         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
36480         * lib/stdbool_.h: Likewise.
36481         * lib/byteswap_.h: Add double-inclusion guard.
36482
36483 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
36484
36485         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
36486
36487 2007-03-30  Karl Berry  <karl@gnu.org>
36488
36489         * config/srclist-update: double space after USA in the license
36490         substitution, since that's how it's usually (?) written.
36491
36492 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
36493
36494         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
36495         reported by Bruno Haible.
36496
36497 2007-03-29  Bruno Haible  <bruno@clisp.org>
36498
36499         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
36500         a bug in AIX iconv().
36501
36502 2007-03-29  Bruno Haible  <bruno@clisp.org>
36503
36504         * modules/ldexpl-tests: New file.
36505         * tests/test-ldexpl.c: New file.
36506
36507 2007-03-29  Bruno Haible  <bruno@clisp.org>
36508
36509         * lib/ldexpl.c: Include fpucw.h.
36510         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
36511         multiplication.
36512         * modules/ldexpl (Depends-on): Add fpucw.
36513
36514 2007-03-29  Bruno Haible  <bruno@clisp.org>
36515
36516         * modules/ldexpl: New file.
36517         * m4/ldexpl.m4: New file.
36518         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
36519         set.
36520         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
36521         REPLACE_LDEXPL.
36522         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
36523         REPLACE_LDEXPL.
36524         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
36525         gl_FUNC_LDEXPL_WORKS.
36526         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
36527         * modules/mathl (Files): Remove lib/ldexpl.c.
36528         (Depends-on): Add ldexpl.
36529
36530 2007-03-29  Bruno Haible  <bruno@clisp.org>
36531
36532         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
36533
36534 2007-03-29  Bruno Haible  <bruno@clisp.org>
36535
36536         * tests/test-striconveh.c (main): Don't assume that a direct conversion
36537         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
36538         and possibly also HP-UX.
36539         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
36540         work on AIX, IRIX, HP-UX, OSF/1.
36541         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
36542         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
36543         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
36544         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
36545         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
36546         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
36547
36548 2007-03-29  Bruno Haible  <bruno@clisp.org>
36549
36550         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
36551
36552 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
36553
36554         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
36555         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
36556
36557 2007-03-29  Eric Blake  <ebb9@byu.net>
36558
36559         * lib/acl-internal.h: Remove redundant include.
36560         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
36561         Cygwin when a file is locked.
36562
36563 2007-03-29  Bruno Haible  <bruno@clisp.org>
36564
36565         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
36566         file.
36567         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
36568
36569 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
36570
36571         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
36572         try to remove a parent directory if the child couldn't be removed
36573         (except for the first rmdir, which could fail because the child
36574         doesn't exist).  Problem reported by Jeff Blaine in
36575         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
36576
36577 2007-03-28  Bruno Haible  <bruno@clisp.org>
36578
36579         * lib/striconveh.c (utf8conv_carefully): New function.
36580         (mem_cd_iconveh_internal): Invoke it.
36581
36582 2007-03-28  Bruno Haible  <bruno@clisp.org>
36583
36584         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
36585         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
36586         input.
36587         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
36588         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
36589         unistr/u8-uctomb.
36590
36591 2007-03-28  Bruno Haible  <bruno@clisp.org>
36592
36593         * modules/unistr/u8-mbtoucr: New file.
36594         * lib/unistr/u8-mbtoucr.c: New file.
36595         * modules/unistr/u16-mbtoucr: New file.
36596         * lib/unistr/u16-mbtoucr.c: New file.
36597         * modules/unistr/u16-mbtoucr: New file.
36598         * lib/unistr/u16-mbtoucr.c: New file.
36599         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
36600
36601 2007-03-27  Simon Josefsson  <simon@josefsson.org>
36602             Bruno Haible  <bruno@clisp.org>
36603
36604         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
36605         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
36606         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
36607
36608         * m4/stdio_h.m4: Add stubs for vasprintf too.
36609
36610         * modules/stdio: Support vasprintf in sed command.
36611
36612         * modules/vasprintf: Depend on stdio for prototypes.  Remove
36613         vasprintf.h.  Add stdio module indicator.
36614
36615         * lib/stdio_.h: Declare asprintf and vasprintf, based on
36616         vasprintf.h.
36617
36618         * lib/vasprintf.h: File removed.
36619
36620         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
36621         * lib/vasprintf.c: Ditto.
36622         * lib/xvasprintf.c: Ditto.
36623         * tests/test-vasprintf-posix.c: Ditto.
36624         * tests/test-vasprintf.c: Ditto.
36625
36626 2007-03-27  Bruno Haible  <bruno@clisp.org>
36627
36628         Make vasnprintf multithread-safe.
36629         * lib/vasnprintf.c (decimal_point_char): New function.
36630         (VASNPRINTF): Use it.
36631         Suggested by Simon Josefsson.
36632
36633 2007-03-27  Eric Blake  <ebb9@byu.net>
36634
36635         Support sub-second birthtime on cygwin.
36636         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
36637         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
36638         (get_stat_birthtime): Also work with st_birthtim.
36639
36640 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
36641
36642         * lib/stat-time.h (USE_BIRTHTIME): Remove.
36643         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
36644         (get_stat_birthtime_ns): Do not try to use "spare" fields.
36645         (get_stat_birthtime_ns): Simplify compile-time tests.
36646         (get_stat_birthtime): Change the API to look like
36647         get_stat_mtime etc., except return a negative tv_nsec on error.
36648         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
36649         Don't check for "spare" fields.
36650         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
36651         or for struct stat.st_birthtime, as these tests aren't used.
36652         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
36653
36654 2007-03-27  Bruno Haible  <bruno@clisp.org>
36655
36656         * lib/stat-time.h: Include <sys/stat.h>.
36657
36658 2007-03-27  James Youngman  <jay@gnu.org>
36659
36660         * lib/stat-time.h (get_stat_birthtime): New function for
36661           retrieving st_birthtime as provided by UFS2 (hence *BSD).
36662         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
36663           and its variants.
36664         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
36665         * modules/stat-time-test: New file.
36666         * tests/test-stat-time.c: New test, devised by Bruno Haible.
36667
36668 2007-03-26  Bruno Haible  <bruno@clisp.org>
36669
36670         Better support of signalling NaNs.
36671         * lib/atanl.c: Include isnanl.h.
36672         (atanl): Perform test for NaN at the beginning of the function and
36673         through a call to isnanl.
36674         * lib/cosl.c: Include isnanl.h.
36675         (cosl): Perform test for NaN at the beginning of the function and
36676         through a call to isnanl.
36677         * lib/ldexpl.c: Include isnanl.h.
36678         (ldexpl): Perform test for NaN through a call to isnanl.
36679         * lib/logl.c: Include isnanl.h.
36680         (logl): Perform test for NaN at the beginning of the function and
36681         through a call to isnanl.
36682         * lib/sinl.c: Include isnanl.h.
36683         (sinl): Perform test for NaN at the beginning of the function and
36684         through a call to isnanl.
36685         * lib/sqrtl.c: Include isnanl.h.
36686         (sqrtl): Perform test for NaN at the beginning of the function and
36687         through a call to isnanl.
36688         * lib/tanl.c: Include isnanl.h.
36689         (tanl): Perform test for NaN at the beginning of the function and
36690         through a call to isnanl.
36691         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
36692         * modules/mathl (Depends-on): Add isnanl.
36693
36694 2007-03-26  Eric Blake  <ebb9@byu.net>
36695
36696         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
36697         regression in logic sense of previous patch.
36698
36699 2007-03-26  Bruno Haible  <bruno@clisp.org>
36700
36701         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
36702         unportable shell command "if ! ...".
36703         Reported by Ralf Wildenhues.
36704
36705 2007-03-25  Bruno Haible  <bruno@clisp.org>
36706
36707         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
36708         <sysexits.h> file, and only add EX_CONFIG.
36709         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
36710         absolute file name and whether it is sufficient. Substitute also
36711         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
36712         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
36713         ABSOLUTE_SYSEXITS_H into sysexits.h.
36714
36715 2007-03-25  Bruno Haible  <bruno@clisp.org>
36716
36717         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
36718         hints is NULL.
36719
36720 2007-03-25  Bruno Haible  <bruno@clisp.org>
36721
36722         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
36723         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
36724
36725 2007-03-25  Bruno Haible  <bruno@clisp.org>
36726
36727         * lib/vasnprintf.c: Include langinfo.h.
36728         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
36729         multithread-safe.
36730         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
36731         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
36732         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36733         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36734         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36735         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36736         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36737         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
36738         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36739         Reported by Simon Josefsson.
36740
36741 2007-03-25  Bruno Haible  <bruno@clisp.org>
36742
36743         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
36744         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
36745         * modules/vasnprintf (Depends-on): Add stdint.
36746
36747 2007-03-25  Bruno Haible  <bruno@clisp.org>
36748
36749         * modules/fpieee: New file.
36750         * m4/fpieee.m4: New file.
36751         * modules/isnan-nolibm (Depends-on): Add fpieee.
36752         * modules/isnanl-nolibm (Depends-on): Add fpieee.
36753         * modules/isnanl (Depends-on): Add fpieee.
36754
36755 2007-03-25  Bruno Haible  <bruno@clisp.org>
36756
36757         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
36758
36759 2007-03-25  Bruno Haible  <bruno@clisp.org>
36760
36761         Avoid test failures on IRIX 6.5.
36762         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
36763         (main): Use it.
36764         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
36765         macros.
36766         (main): Use them.
36767
36768 2007-03-25  Bruno Haible  <bruno@clisp.org>
36769
36770         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
36771         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
36772         exists but doesn't work.
36773         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
36774         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
36775         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
36776         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
36777
36778 2007-03-25  Bruno Haible  <bruno@clisp.org>
36779
36780         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
36781         returns inf. Needed on IRIX 6.5.
36782
36783 2007-03-25  Bruno Haible  <bruno@clisp.org>
36784
36785         * tests/test-frexpl.c: Include isnanl-nolibm.h.
36786         (main): Use isnanl instead of x != x idiom.
36787         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
36788
36789         * tests/test-frexp.c: Include isnan.h.
36790         (main): Use isnan instead of x != x idiom.
36791         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
36792
36793 2007-03-25  Bruno Haible  <bruno@clisp.org>
36794
36795         * tests/test-frexp.c (NaN): New function/macro.
36796         (main): Use it instead of 0.0 / 0.0.
36797         * tests/test-isnan.c (NaN): New function/macro.
36798         (main): Use it instead of 0.0 / 0.0.
36799         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
36800         (test_function): Use it instead of 0.0 / 0.0.
36801         * tests/test-vasprintf-posix.c (NaN): New function/macro.
36802         (test_function): Use it instead of 0.0 / 0.0.
36803         * tests/test-snprintf-posix.h (NaN): New function/macro.
36804         (test_function): Use it instead of 0.0 / 0.0.
36805         * tests/test-sprintf-posix.h (NaN): New function/macro.
36806         (test_function): Use it instead of 0.0 / 0.0.
36807         * tests/test-fprintf-posix.h (NaN): New function/macro.
36808         (test_function): Use it instead of 0.0 / 0.0.
36809         * tests/test-printf-posix.h (NaN): New function/macro.
36810         (test_function): Use it instead of 0.0 / 0.0.
36811
36812         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
36813
36814 2007-03-25  Bruno Haible  <bruno@clisp.org>
36815
36816         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
36817
36818 2007-03-25  Bruno Haible  <bruno@clisp.org>
36819
36820         * lib/regexec.c (merge_state_with_log): Make static.
36821
36822 2007-03-25  Bruno Haible  <bruno@clisp.org>
36823
36824         * lib/trigl.c (kernel_rem_pio2): Make static.
36825
36826 2007-03-25  Bruno Haible  <bruno@clisp.org>
36827
36828         * lib/sincosl.c (sincosl_table): Make static.
36829
36830 2007-03-25  Bruno Haible  <bruno@clisp.org>
36831
36832         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
36833         if the compiler does not support C99.
36834
36835 2007-03-25  Bruno Haible  <bruno@clisp.org>
36836
36837         * modules/time (Makefile.am): Ensure all rule action lines start with a
36838         tab.
36839
36840 2007-03-24  Bruno Haible  <bruno@clisp.org>
36841
36842         * modules/tsearch-tests: New file.
36843         * tests/test-tsearch.sh: New file.
36844         * tests/test-tsearch.c: New file, mostly copied from glibc.
36845
36846         * modules/search-tests: New file.
36847         * tests/test-search.c: New file.
36848
36849         * modules/search: New file.
36850         * lib/search_.h: New file, incorporating lib/tsearch.h.
36851         * m4/search_h.m4: New file.
36852         * lib/tsearch.h: Remove file.
36853         * lib/tsearch.c: Include search.h instead of tsearch.h.
36854         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
36855         HAVE_TSEARCH.
36856         * modules/tsearch (Files): Remove lib/tsearch.h.
36857         (Depends-on): Add search.
36858         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
36859         (Include): Change tsearch.h into search.h.
36860
36861 2007-03-24  Bruno Haible  <bruno@clisp.org>
36862
36863         * modules/fpucw: New file.
36864         * lib/fpucw.h: New file.
36865         * lib/frexp.c: Include fpucw.h.
36866         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
36867         (FUNC): Use them.
36868         * lib/printf-frexp.c: Include fpucw.h.
36869         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
36870         (FUNC): Use them.
36871         * lib/vasnprintf.c: Include fpucw.h.
36872         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
36873         'long double' calculations.
36874         * tests/test-frexpl.c: Include fpucw.h.
36875         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
36876         * tests/test-printf-frexpl.c: Include fpucw.h.
36877         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
36878         * modules/frexpl (Depends-on): Add fpucw.
36879         * modules/printf-frexpl (Depends-on): Likewise.
36880         * modules/fprintf-posix (Depends-on): Likewise.
36881         * modules/snprintf-posix (Depends-on): Likewise.
36882         * modules/sprintf-posix (Depends-on): Likewise.
36883         * modules/vasnprintf-posix (Depends-on): Likewise.
36884         * modules/vasprintf-posix (Depends-on): Likewise.
36885         * modules/vfprintf-posix (Depends-on): Likewise.
36886         * modules/vsnprintf-posix (Depends-on): Likewise.
36887         * modules/vsprintf-posix (Depends-on): Likewise.
36888         * modules/frexpl-tests (Depends-on): Likewise.
36889         * modules/printf-frexpl-tests (Depends-on): Likewise.
36890
36891 2007-03-24  Bruno Haible  <bruno@clisp.org>
36892
36893         * lib/float+.h: New file.
36894         * lib/isnan.c: Include float+.h.
36895         (SIZE): New macro.
36896         (FUNC): Compare only SIZE bytes of the value.
36897         * lib/vasnprintf.c: Include float+.h.
36898         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
36899         SIZEOF_LDBL or SIZEOF_DBL bytes.
36900         * modules/isnan-nolibm (Files): Add lib/float+.h.
36901         * modules/isnanl-nolibm (Files): Add lib/float+.h.
36902         * modules/isnanl (Files): Add lib/float+.h.
36903         * modules/vasnprintf (Files): Add lib/float+.h.
36904
36905 2007-03-24  Bruno Haible  <bruno@clisp.org>
36906
36907         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
36908         include isnanl-nolibm.h.
36909
36910 2007-03-24  Bruno Haible  <bruno@clisp.org>
36911
36912         * tests/test-read-file.c (main): Don't produce spurious output for
36913         expected situations. Make the test fail if it encountered unexpected
36914         results.
36915
36916 2007-03-24  Bruno Haible  <bruno@clisp.org>
36917
36918         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
36919         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
36920
36921 2007-03-24  Bruno Haible  <bruno@clisp.org>
36922
36923         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
36924
36925 2007-03-24  Bruno Haible  <bruno@clisp.org>
36926
36927         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
36928         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
36929
36930         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
36931         * modules/utf8-ucs4: Turn into a symbolic link to module
36932         unistr/u8-mbtouc.
36933
36934         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
36935         utf8-ucs4-unsafe.
36936         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
36937         unistr/u8-mbtouc-unsafe.
36938
36939         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
36940         * modules/utf16-ucs4: Turn into a symbolic link to module
36941         unistr/u16-mbtouc.
36942
36943         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
36944         utf16-ucs4-unsafe.
36945         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
36946         unistr/u16-mbtouc-unsafe.
36947
36948         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
36949         * modules/ucs4-utf8: Turn into a symbolic link to module
36950         unistr/u8-ubtomb.
36951
36952         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
36953         * modules/ucs4-utf16: Turn into a symbolic link to module
36954         unistr/u16-ubtomb.
36955
36956 2007-03-24  Bruno Haible  <bruno@clisp.org>
36957
36958         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
36959         Enable the function only if HAVE_INLINE.
36960         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
36961         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
36962         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
36963         Enable the function only if HAVE_INLINE.
36964         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
36965         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
36966         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
36967         Enable the function only if HAVE_INLINE.
36968         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
36969         Enable the function only if HAVE_INLINE.
36970         * modules/utf8-ucs4: Update.
36971         * modules/utf8-ucs4-unsafe: Update.
36972         * modules/utf16-ucs4: Update.
36973         * modules/utf16-ucs4-unsafe: Update.
36974         * modules/ucs4-utf8: Update.
36975         * modules/ucs4-utf16: Update.
36976
36977 2007-03-24  Bruno Haible  <bruno@clisp.org>
36978
36979         * lib/utf8-ucs4.h: Remove file.
36980         * lib/utf8-ucs4-unsafe.h: Remove file.
36981         * lib/utf16-ucs4.h: Remove file.
36982         * lib/utf16-ucs4-unsafe.h: Remove file.
36983         * lib/ucs4-utf8.h: Remove file.
36984         * lib/ucs4-utf16.h: Remove file.
36985         * lib/unistr.h: Include their previous contents.
36986         * m4/utf-ucs4.m4: Remove file.
36987         * m4/ucs4-utf.m4: Remove file.
36988         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
36989         (Depends-on): Add unistr/base.
36990         (configure.ac): Remove gl_UTF_UCS4.
36991         (Makefile.am): Update.
36992         (Include): Change to unistr.h.
36993         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
36994         (Depends-on): Add unistr/base.
36995         (configure.ac): Remove gl_UTF_UCS4.
36996         (Makefile.am): Update.
36997         (Include): Change to unistr.h.
36998         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
36999         (Depends-on): Add unistr/base.
37000         (configure.ac): Remove gl_UTF_UCS4.
37001         (Makefile.am): Update.
37002         (Include): Change to unistr.h.
37003         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
37004         (Depends-on): Add unistr/base.
37005         (configure.ac): Remove gl_UTF_UCS4.
37006         (Makefile.am): Update.
37007         (Include): Change to unistr.h.
37008         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
37009         (Depends-on): Add unistr/base.
37010         (configure.ac): Remove gl_UCS4_UTF.
37011         (Makefile.am): Update.
37012         (Include): Change to unistr.h.
37013         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
37014         (Depends-on): Add unistr/base.
37015         (configure.ac): Remove gl_UCS4_UTF.
37016         (Makefile.am): Update.
37017         (Include): Change to unistr.h.
37018         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
37019         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
37020         utf8-ucs4-unsafe.h.
37021         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
37022         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
37023         utf16-ucs4-unsafe.h.
37024         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
37025         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
37026         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
37027         * lib/unistr/u8-strchr.c: Likewise.
37028         * lib/unistr/u8-strrchr.c: Likewise.
37029         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
37030         * lib/unistr/u16-strchr.c: Likewise.
37031         * lib/unistr/u16-strrchr.c: Likewise.
37032         * lib/striconveh.c: Update.
37033         * lib/linebreak.c: Update.
37034
37035 2007-03-24  Bruno Haible  <bruno@clisp.org>
37036
37037         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
37038         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
37039
37040 2007-03-22  Bruno Haible  <bruno@clisp.org>
37041
37042         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
37043
37044 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
37045
37046         * MODULES.html.sh (File system functions): New module write-any-file.
37047         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
37048         * m4/write-any-file.m4: New files.
37049
37050 2007-03-23  Eric Blake  <ebb9@byu.net>
37051
37052         * gnulib-tool: Rearrange space-tab sequences, since some editors
37053         like to eat them.
37054
37055 2007-03-23  Eric Blake  <ebb9@byu.net>
37056
37057         * lib/version-etc.c (version_etc_va): Update license wording to
37058         be more concise.  Recommended by Richard Stallman.
37059
37060 2007-03-22  Bruno Haible  <bruno@clisp.org>
37061
37062         * lib/poll.c (MSG_PEEK): New fallback definition.
37063
37064 2007-03-22  Bruno Haible  <bruno@clisp.org>
37065
37066         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
37067         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
37068         (main): Update.
37069         Fixes a compilation error on BeOS.
37070
37071 2007-03-22  Bruno Haible  <bruno@clisp.org>
37072
37073         * modules/frexpl-tests: New file.
37074         * tests/test-frexpl.c: New file.
37075
37076         * modules/frexpl: New file.
37077         * m4/frexpl.m4: New file.
37078         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
37079         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
37080         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
37081         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
37082         (Depends-on): Add frexpl. Remove isnanl-nolibm.
37083         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
37084
37085 2007-03-22  Bruno Haible  <bruno@clisp.org>
37086
37087         * lib/frexpl.c: Share code with lib/frexp.c.
37088         * modules/mathl (Files): Add lib/frexp.c.
37089         (Depends-on): Add isnanl-nolibm.
37090
37091 2007-03-22  Bruno Haible  <bruno@clisp.org>
37092
37093         * modules/printf-frexp (Files): Add m4/frexp.m4.
37094         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
37095         only if the found frexp function actually works.
37096
37097 2007-03-22  Bruno Haible  <bruno@clisp.org>
37098
37099         * lib/frexp.c: Remove older implementation that uses divisions.
37100
37101 2007-03-21  Bruno Haible  <bruno@clisp.org>
37102
37103         * modules/frexp-tests: New file.
37104         * tests/test-frexp.c: New file.
37105
37106         * modules/frexp: New file.
37107         * lib/frexp.c: New file.
37108         * m4/frexp.m4: New file.
37109         * lib/math_.h (frexp): New declaration.
37110         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
37111         REPLACE_FREXP.
37112         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
37113
37114 2007-03-21  Bruno Haible  <bruno@clisp.org>
37115
37116         * modules/isnanl-tests: New file.
37117         * tests/test-isnanl.c: New file.
37118
37119         * modules/isnanl: New file.
37120         * lib/isnanl.h: New file.
37121         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
37122         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
37123         gl_FUNC_ISNANL_WORKS.
37124         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
37125         New macros.
37126
37127 2007-03-21  Bruno Haible  <bruno@clisp.org>
37128
37129         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
37130         lib/isnanl.h.
37131         (Include): Update.
37132         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
37133         * lib/vasnprintf.c: Update.
37134         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
37135         tests/test-isnanl.h, remove tests/test-isnanl.c.
37136         (Makefile.am): Update.
37137         * tests/test-isnanl-nolibm.c: New file.
37138         * tests/test-isnanl.h: New file.
37139         * tests/test-isnanl.c: Remove file.
37140
37141 2007-03-21  Jim Meyering  <jim@meyering.net>
37142
37143         When trying to open ".", treat ESTALE like EACCES.
37144         * lib/savewd.c (savewd_save): Resort to forking not just upon
37145         failure with EACCES, but also when errno is ESTALE.
37146
37147 2007-03-20  Bruno Haible  <bruno@clisp.org>
37148
37149         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
37150         Needed on AIX 5.1. Reported by Matthew Woehlke.
37151
37152 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
37153
37154         Suggestions by Bruno Haible:
37155         * lib/acl-internal.h: Include "gettext.h" rather than rolling
37156         our own.
37157         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
37158         * modules/acl (Depends-on): Add gettext.
37159
37160 2007-03-19  Bruno Haible  <bruno@clisp.org>
37161
37162         * modules/iconvme: Remove file.
37163         * lib/iconvme.h: Remove file.
37164         * lib/iconvme.c: Remove file.
37165         * m4/iconvme.m4: Remove file.
37166
37167 2007-03-19  Bruno Haible  <bruno@clisp.org>
37168
37169         * doc/relocatable-maint.texi: Break long shell script line.
37170         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
37171
37172 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
37173
37174         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
37175         handle file_has_acl.
37176         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
37177         * lib/acl.c: Move header inclusions and related macro defns into
37178         lib/acl-internal.h.
37179         (S_ISLNK): Remove defn, since that's now done for us.
37180         (file_has_acl): Move to lib/file-has-acl.c.
37181         Call acl_trivial if available.  This is the crucial part of the fix.
37182         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
37183         shared within the library.  Rewrite a bit, partly to make it compatible
37184         with the GNU coding style.
37185         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
37186         Remove unnecessary double-quotes.
37187         Don't test for acl_to_text; the build will catch that.
37188         Replace acl_entries if it doesn't exist and it is needed.
37189         Check for -lsec and acl_trivial (as used on Solaris 10).
37190         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
37191         lib/file-has-acl.c.
37192         (Depends-on): Add sys_stat, for S_ISLNK.
37193
37194 2007-03-19  Ben Pfaff  <blp@gnu.org>
37195
37196         * doc/gnulib.texi: Fix typos.
37197         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
37198
37199 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
37200
37201         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
37202         If size is zero here, buf must be zero.
37203
37204 2007-03-19  Simon Josefsson  <simon@josefsson.org>
37205
37206         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
37207         <bruno@clisp.org>.
37208
37209 2007-03-18  Bruno Haible  <bruno@clisp.org>
37210
37211         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
37212         Suggested by Eric Blake.
37213
37214 2007-03-18  Ben Pfaff  <blp@gnu.org>
37215
37216         * doc/relocatable.texi: Recommend using as prefix a directory
37217         that does not exist and will never be created.  Based on
37218         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
37219         and others.
37220
37221 2007-03-17  Bruno Haible  <bruno@clisp.org>
37222
37223         * lib/fchownat.c: Include lchown.h.
37224
37225 2007-03-17  Bruno Haible  <bruno@clisp.org>
37226
37227         Fix endless loop when the given allocated size was > INT_MAX.
37228         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
37229         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
37230         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
37231         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
37232         * lib/sprintf.c (sprintf): Likewise.
37233
37234 2007-03-17  Bruno Haible  <bruno@clisp.org>
37235
37236         * tests/test-argp-2.sh (func_compare): Output a context diff.
37237
37238 2007-03-17  Bruno Haible  <bruno@clisp.org>
37239
37240         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
37241         locale's decimal-point character.
37242
37243 2007-03-17  Bruno Haible  <bruno@clisp.org>
37244
37245         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
37246         before comparing it. Needed because on some platforms (e.g. x86) a
37247         'long double' occupies less bytes than sizeof (long double).
37248
37249 2007-03-17  Bruno Haible  <bruno@clisp.org>
37250
37251         * tests/test-crc.c (main): Make printf statements 64-bit clean.
37252         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
37253         * tests/test-getaddrinfo.c (simple): Likewise.
37254         * tests/test-read-file.c (main): Likewise.
37255
37256 2007-03-17  Bruno Haible  <bruno@clisp.org>
37257
37258         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
37259
37260 2007-03-17  Bruno Haible  <bruno@clisp.org>
37261
37262         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
37263         unused variable.
37264
37265 2007-03-17  Bruno Haible  <bruno@clisp.org>
37266
37267         * tests/test-c-strcasecmp.c: Include c-strcase.h.
37268         * tests/test-c-strncasecmp.c: Likewise.
37269
37270 2007-03-17  Bruno Haible  <bruno@clisp.org>
37271
37272         * modules/stdlib (Depends-on): Add unistd.
37273         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
37274         Needed for MacOS X 10.3.
37275
37276 2007-03-17  Bruno Haible  <bruno@clisp.org>
37277
37278         * lib/unistr/u-strdup.h: Include <stdlib.h>.
37279
37280 2007-03-17  Bruno Haible  <bruno@clisp.org>
37281
37282         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
37283
37284 2007-03-17  Bruno Haible  <bruno@clisp.org>
37285
37286         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
37287         to reflect files copied from gnulib (with or without modifications).
37288         Suggested by Jim Meyering.
37289
37290 2007-03-17  Eric Blake  <ebb9@byu.net>
37291
37292         * NEWS: Document stdlib change from 2007-02-18.
37293
37294 2007-03-17  Jim Meyering  <jim@meyering.net>
37295
37296         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
37297         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
37298         someone uses a name containing shell meta-characters.
37299         Reported by Alfred M. Szmidt.
37300
37301         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
37302
37303 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
37304
37305         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
37306         and copy gettext configuration files only if configure.ac contains
37307         a use of AM_GNU_GETTEXT_VERSION.
37308
37309 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
37310
37311         * build-aux/bootstrap (gnulib_name): New variable.
37312         (gnulib_tool_options): Use it.
37313
37314 2007-03-13  Simon Josefsson  <simon@josefsson.org>
37315
37316         * tests/test-des.c: Use new namespace.
37317
37318 2007-03-15  Bruno Haible  <bruno@clisp.org>
37319
37320         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
37321         Reported by James Youngman <jay@gnu.org>.
37322
37323 2007-03-15  Bruno Haible  <bruno@clisp.org>
37324
37325         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
37326         declared prototype. Needed with cc on OSF/1 5.1.
37327
37328 2007-03-15  Bruno Haible  <bruno@clisp.org>
37329
37330         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
37331         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
37332         (struct gl_list_implementation): Add dispose_fn argument to the
37333         'create_empty', 'create' methods.
37334         (struct gl_list_impl_base): Add field 'dispose_fn'.
37335         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
37336         argument.
37337         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
37338         dispose_fn argument.
37339         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
37340         dispose_fn on the dropped values.
37341         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
37342         dispose_fn argument.
37343         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
37344         dropped values.
37345         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
37346         (gl_tree_remove_node): Call dispose_fn on the dropped value.
37347         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
37348         (gl_tree_remove_node): Call dispose_fn on the dropped value.
37349         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
37350         argument.
37351         (gl_tree_list_free): Call dispose_fn on the dropped values.
37352         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
37353         the dropped values.
37354         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
37355         Add dispose_fn argument.
37356         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
37357         Call dispose_fn on the dropped values.
37358         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
37359         Add dispose_fn argument.
37360         (gl_sublist_create): Initialize the 'dispose_fn' field.
37361         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
37362         * tests/test-array_list.c (main): Update.
37363         * tests/test-carray_list.c (main): Update.
37364         * tests/test-avltree_list.c (main): Update.
37365         * tests/test-rbtree_list.c (main): Update.
37366         * tests/test-avltreehash_list.c (main): Update.
37367         * tests/test-rbtreehash_list.c (main): Update.
37368         * tests/test-linked_list.c (main): Update.
37369         * tests/test-linkedhash_list.c (main): Update.
37370         * tests/test-array_oset.c (main): Update.
37371
37372 2007-03-15  Bruno Haible  <bruno@clisp.org>
37373
37374         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
37375         (gl_oset_create_empty): Add dispose_fn argument.
37376         (struct gl_oset_implementation): Add dispose_fn argument to
37377         'create_empty' method.
37378         (struct gl_oset_impl_base): Add dispose_fn field.
37379         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
37380         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
37381         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
37382         values.
37383         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
37384         (gl_tree_oset_free): Call dispose_fn on the dropped values.
37385         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
37386         dropped value.
37387         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
37388         dropped value.
37389         * tests/test-array_oset.c (main): Update.
37390         * tests/test-avltree_oset.c (main): Update.
37391         * tests/test-rbtree_oset.c (main): Update.
37392         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
37393
37394 2007-03-13  Bruno Haible  <bruno@clisp.org>
37395
37396         * tests/test-stdbool.c (i): Update after last patch.
37397
37398 2007-03-12  Bruno Haible  <bruno@clisp.org>
37399
37400         * lib/quotearg.c: Include <wctype.h> early, before the definition of
37401         the iswprint macro. Needed on Solaris 2.5.1.
37402
37403 2007-03-12  Bruno Haible  <bruno@clisp.org>
37404
37405         * tests/test-printf-frexp.c (main): Declare x as volatile.
37406
37407 2007-03-12  Simon Josefsson  <simon@josefsson.org>
37408
37409         * doc/gnulib.texi (Build robot for gnulib): New section.
37410
37411 2007-03-12  Jim Meyering  <jim@meyering.net>
37412
37413         * build-aux/bootstrap: New file.
37414         * build-aux/bootstrap.conf: New file, from coreutils.
37415
37416 2007-03-11  Bruno Haible  <bruno@clisp.org>
37417
37418         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
37419
37420 2007-03-12  Simon Josefsson  <simon@josefsson.org>
37421
37422         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
37423         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
37424         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
37425
37426 2007-03-11  Bruno Haible  <bruno@clisp.org>
37427
37428         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
37429         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
37430
37431 2007-03-11  Bruno Haible  <bruno@clisp.org>
37432
37433         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
37434         formula. Needed for SunPRO C 5.0.
37435
37436 2007-03-11  Bruno Haible  <bruno@clisp.org>
37437
37438         * modules/long-options (Depends-on): Add getopt.
37439
37440 2007-03-11  Bruno Haible  <bruno@clisp.org>
37441
37442         * modules/modechange (Depends-on): Add stdbool.
37443
37444 2007-03-11  Bruno Haible  <bruno@clisp.org>
37445
37446         * modules/i-ring (Depends-on): Add stdbool.
37447
37448 2007-03-11  Bruno Haible  <bruno@clisp.org>
37449
37450         * modules/gc-des (Depends-on): Add stdbool.
37451
37452 2007-03-11  Bruno Haible  <bruno@clisp.org>
37453
37454         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
37455
37456 2007-03-11  Bruno Haible  <bruno@clisp.org>
37457
37458         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
37459
37460 2007-03-11  Bruno Haible  <bruno@clisp.org>
37461
37462         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
37463
37464 2007-03-11  Bruno Haible  <bruno@clisp.org>
37465
37466         * lib/vasnprintf.c (sprintf): Undefine.
37467
37468 2007-03-11  Bruno Haible  <bruno@clisp.org>
37469
37470         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
37471         initializers in SunPRO C and Compaq C compilers.
37472
37473 2007-03-11  Bruno Haible  <bruno@clisp.org>
37474
37475         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
37476         decrementing code ANSI C compliant.
37477
37478 2007-03-11  Bruno Haible  <bruno@clisp.org>
37479
37480         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
37481         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
37482
37483 2007-03-11  Bruno Haible  <bruno@clisp.org>
37484
37485         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
37486         <stdbool.h> substitute doesn't pass.
37487
37488 2007-03-11  Bruno Haible  <bruno@clisp.org>
37489
37490         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
37491
37492 2007-03-11  Bruno Haible  <bruno@clisp.org>
37493
37494         * gnulib-tool (func_create_megatestdir): Create also an autobuild
37495         script, for submission to autobuild.josefsson.org.
37496
37497 2007-03-10  Bruno Haible  <bruno@clisp.org>
37498
37499         * modules/canonicalize-lgpl-tests: New file.
37500         * tests/test-canonicalize-lgpl.sh: New file.
37501         * tests/test-canonicalize-lgpl.c: New file.
37502
37503         * modules/c-strcase-tests: New file.
37504         * tests/test-c-strcase.sh: New file.
37505         * tests/test-c-strcasecmp.c: New file.
37506         * tests/test-c-strncasecmp.c: New file.
37507
37508         * modules/atexit-tests: New file.
37509         * tests/test-atexit.sh: New file.
37510         * tests/test-atexit.c: New file.
37511
37512 2007-03-10  Bruno Haible  <bruno@clisp.org>
37513
37514         * tests/test-binary-io.sh: Use temporary filenames that are not so
37515         likely to clash with those of other tests (in a parallel make).
37516         * tests/test-binary-io.c: Likewise.
37517
37518 2007-03-10  Bruno Haible  <bruno@clisp.org>
37519
37520         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
37521         fallback; use #error instead.
37522         Suggested by Simon Josefsson.
37523
37524 2007-03-10  Bruno Haible  <bruno@clisp.org>
37525
37526         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
37527         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
37528         first and the last.
37529
37530 2007-03-10  Bruno Haible  <bruno@clisp.org>
37531
37532         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
37533
37534 2007-03-10  Bruno Haible  <bruno@clisp.org>
37535
37536         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
37537         "make distcheck".
37538         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
37539         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
37540         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
37541
37542 2007-03-10  Bruno Haible  <bruno@clisp.org>
37543
37544         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
37545         variable.
37546         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
37547         variable.
37548
37549 2007-03-09  Eric Blake  <ebb9@byu.net>
37550         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
37551
37552         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
37553         types are not being provided by gnulib.
37554         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
37555         types are supported.
37556
37557 2007-03-10  Bruno Haible  <bruno@clisp.org>
37558
37559         * lib/stdio_.h (__attribute__): New macro.
37560         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
37561         vsprintf): Specify __attribute__ __format__ for GCC.
37562         Suggested by Eric Blake.
37563
37564 2007-03-09  Bruno Haible  <bruno@clisp.org>
37565
37566         * modules/printf-posix-tests: New file.
37567         * tests/test-printf-posix.sh: New file.
37568         * tests/test-printf-posix.c: New file.
37569
37570         * modules/printf-posix: New file.
37571         * lib/printf.c: New file.
37572         * m4/printf-posix-rpl.m4: New file.
37573         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
37574         REPLACE_PRINTF.
37575         * lib/stdio_.h (printf): New declaration.
37576         (format, __format__, ____printf____, ____scanf____, ____strftime____,
37577         ____strfmon____): New macros.
37578         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
37579         REPLACE_PRINTF.
37580
37581 2007-03-09  Bruno Haible  <bruno@clisp.org>
37582
37583         * tests/test-vasnprintf-posix2.sh: New file.
37584         * tests/test-vasnprintf-posix2.c: New file.
37585         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
37586         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
37587         (Makefile.am): Activate test-vasnprintf-posix2.sh.
37588
37589         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
37590         a locale dependent decimal point, rather than always '.'.
37591
37592 2007-03-09  Eric Blake  <ebb9@byu.net>
37593
37594         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
37595         spite of platforms like Tandem/NSK that define it to -1.
37596
37597 2007-03-08  Bruno Haible  <bruno@clisp.org>
37598
37599         * modules/vprintf-posix-tests: New file.
37600         * tests/test-vprintf-posix.sh: New file.
37601         * tests/test-vprintf-posix.c: New file.
37602         * tests/test-printf-posix.h: New file.
37603
37604         * modules/vprintf-posix: New file.
37605         * lib/vprintf.c: New file.
37606         * m4/vprintf-posix.m4: New file.
37607         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
37608         REPLACE_VPRINTF.
37609         * lib/stdio_.h (vprintf): New declaration.
37610         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
37611         REPLACE_VPRINTF.
37612
37613 2007-03-08  Bruno Haible  <bruno@clisp.org>
37614
37615         * modules/fprintf-posix-tests: New file.
37616         * tests/test-fprintf-posix.sh: New file.
37617         * tests/test-fprintf-posix.c: New file.
37618
37619         * modules/fprintf-posix: New file.
37620         * lib/fprintf.c: New file.
37621         * m4/fprintf-posix.m4: New file.
37622         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
37623         REPLACE_FPRINTF.
37624         * lib/stdio_.h (fprintf): New declaration.
37625         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
37626         REPLACE_FPRINTF.
37627
37628 2007-03-08  Bruno Haible  <bruno@clisp.org>
37629
37630         * modules/vfprintf-posix-tests: New file.
37631         * tests/test-vfprintf-posix.sh: New file.
37632         * tests/test-vfprintf-posix.c: New file.
37633         * tests/test-fprintf-posix.h: New file.
37634         * tests/test-fprintf-posix.out: New file.
37635
37636         * modules/vfprintf-posix: New file.
37637         * lib/vfprintf.c: New file.
37638         * m4/vfprintf-posix.m4: New file.
37639         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
37640         REPLACE_VFPRINTF.
37641         * lib/stdio_.h (vfprintf): New declaration.
37642         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
37643         REPLACE_VFPRINTF.
37644
37645 2007-03-08  Bruno Haible  <bruno@clisp.org>
37646
37647         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
37648
37649 2007-03-08  Bruno Haible  <bruno@clisp.org>
37650
37651         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
37652         instead of 'expr' invocations.
37653         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37654         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37655         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37656         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37657         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37658         Suggested by Paul Eggert.
37659
37660 2007-03-08  Bruno Haible  <bruno@clisp.org>
37661
37662         * modules/fseterr-tests: New file.
37663         * tests/test-fseterr.c: New file.
37664
37665         * modules/fseterr: New file.
37666         * lib/fseterr.h: New file.
37667         * lib/fseterr.c: New file.
37668
37669 2007-03-08  Bruno Haible  <bruno@clisp.org>
37670
37671         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
37672         * lib/getopt_.h: Likewise.
37673         * lib/mbswidth.h: Likewise.
37674         * lib/setenv.h: Likewise.
37675         * lib/vasnprintf.h: Likewise.
37676         * lib/vasprintf.h: Likewise.
37677         * lib/verror.h: Likewise.
37678         * lib/xsetenv.h: Likewise.
37679         * lib/xvasprintf.h: Likewise.
37680
37681 2007-03-08  Jim Meyering  <jim@meyering.net>
37682
37683         * users.txt: Add parted.
37684
37685         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
37686
37687 2007-03-07  Bruno Haible  <bruno@clisp.org>
37688
37689         * m4/printf.m4: Make the shell script snippets copy&pastable.
37690
37691 2007-03-02  Bruno Haible  <bruno@clisp.org>
37692
37693         * lib/netinet_in_.h: New file.
37694         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
37695         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
37696         * modules/netinet_in (Files): Add lib/netinet_in_.h.
37697         (Depends-on): Add absolute-header.
37698         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
37699         into netinet/in.h.
37700
37701 2007-03-03  Bruno Haible  <bruno@clisp.org>
37702
37703         * lib/sys_select_.h: New file.
37704         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
37705         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
37706         * modules/sys_select (Files): Add lib/sys_select_.h.
37707         (Depends-on): Add absolute-header.
37708         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
37709         into sys/select.h.
37710
37711 2007-03-02  Bruno Haible  <bruno@clisp.org>
37712
37713         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
37714         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
37715         values.
37716         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
37717         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
37718         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
37719         * modules/sys_socket (Depends-on): Add absolute-header.
37720         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
37721         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
37722         (Include): Remove requirement of inclusion of <sys/types.h>.
37723
37724 2007-03-02  Bruno Haible  <bruno@clisp.org>
37725
37726         * lib/byteswap_.h (bswap_32): Fix formula.
37727
37728 2007-03-06  Bruno Haible  <bruno@clisp.org>
37729
37730         * modules/sprintf-posix-tests: New file.
37731         * tests/test-sprintf-posix.c: New file.
37732
37733         * modules/sprintf-posix: New file.
37734         * lib/sprintf.c: New file.
37735         * m4/sprintf-posix.m4: New file.
37736         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
37737         REPLACE_SPRINTF.
37738         * lib/stdio_.h (sprintf): New declaration.
37739         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
37740         REPLACE_SPRINTF.
37741
37742 2007-03-06  Bruno Haible  <bruno@clisp.org>
37743
37744         * modules/vsprintf-posix-tests: New file.
37745         * tests/test-vsprintf-posix.c: New file.
37746         * tests/test-sprintf-posix.h: New file.
37747
37748         * modules/vsprintf-posix: New file.
37749         * lib/vsprintf.c: New file.
37750         * m4/vsprintf-posix.m4: New file.
37751         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
37752         REPLACE_VSPRINTF.
37753         * lib/stdio_.h (vsprintf): New declaration.
37754         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
37755         REPLACE_VSPRINTF.
37756
37757 2007-03-06  Bruno Haible  <bruno@clisp.org>
37758
37759         * modules/vsnprintf (Depend-on): Remove minmax.
37760
37761 2007-03-06  Bruno Haible  <bruno@clisp.org>
37762
37763         * modules/snprintf-posix-tests: New file.
37764         * tests/test-snprintf-posix.c: New file.
37765
37766         * modules/snprintf-posix: New file.
37767         * m4/snprintf-posix.m4: New file.
37768         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
37769         gl_FUNC_SNPRINTF.
37770         (gl_FUNC_SNPRINTF): Invoke it.
37771         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
37772         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
37773         is set.
37774         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
37775
37776 2007-03-06  Bruno Haible  <bruno@clisp.org>
37777
37778         * modules/vsnprintf-posix-tests: New file.
37779         * tests/test-vsnprintf-posix.c: New file.
37780         * tests/test-snprintf-posix.h: New file.
37781
37782         * modules/vsnprintf-posix: New file.
37783         * m4/vsnprintf-posix.m4: New file.
37784         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
37785         gl_FUNC_VSNPRINTF.
37786         (gl_FUNC_VSNPRINTF): Invoke it.
37787         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
37788         * lib/stdio_.h (vsnprintf): Define as a replacement if
37789         REPLACE_VSNPRINTF is set.
37790         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
37791
37792 2007-03-06  Bruno Haible  <bruno@clisp.org>
37793
37794         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
37795         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
37796
37797 2007-03-06  Bruno Haible  <bruno@clisp.org>
37798
37799         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
37800         (asinl): Declare also if HAVE_DECL_ASINL is set.
37801         (atanl): Declare also if HAVE_DECL_ATANL is set.
37802         (ceill): Declare also if HAVE_DECL_CEILL is set.
37803         (cosl): Declare also if HAVE_DECL_COSL is set.
37804         (expl): Declare also if HAVE_DECL_EXPL is set.
37805         (floorl): Declare also if HAVE_DECL_FLOORL is set.
37806         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
37807         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
37808         (logl): Declare also if HAVE_DECL_LOGL is set.
37809         (sinl): Declare also if HAVE_DECL_SINL is set.
37810         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
37811         (tanl): Declare also if HAVE_DECL_TANL is set.
37812         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
37813         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
37814         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
37815         declaration of frexpl, ldexpl.
37816         * modules/printf-frexpl (Depends-on): Add math.
37817         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
37818
37819 2007-03-05  Bruno Haible  <bruno@clisp.org>
37820
37821         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
37822         frexpl and ldexpl are declared.
37823         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
37824
37825 2007-03-05  Bruno Haible  <bruno@clisp.org>
37826
37827         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
37828         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
37829
37830 2007-03-05  Bruno Haible  <bruno@clisp.org>
37831
37832         * lib/stdio_.h: Include <stddef.h>.
37833
37834 2007-03-05  Bruno Haible  <bruno@clisp.org>
37835
37836         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
37837
37838 2007-03-05  Bruno Haible  <bruno@clisp.org>
37839
37840         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
37841         NetBSD 4, from Ralf Wildenhues.
37842
37843 2007-03-04  Bruno Haible  <bruno@clisp.org>
37844
37845         * lib/vasprintf.h: Update #if logic for the case when the functions
37846         exist but are overridden.
37847
37848 2007-03-04  Bruno Haible  <bruno@clisp.org>
37849
37850         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
37851         implementations: glibc-2.4 and MacOS X 10.3.
37852         * tests/test-vasnprintf-posix.c (test_function): Test also the case
37853         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
37854         * tests/test-vasprintf-posix.c (test_function): Likewise.
37855
37856 2007-03-04  Bruno Haible  <bruno@clisp.org>
37857
37858         * modules/vasprintf-posix-tests: New file.
37859         * tests/test-vasprintf-posix.c: New file.
37860
37861         * modules/vasprintf-posix: New file.
37862         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
37863         defined.
37864         * m4/vasprintf-posix.m4: New file.
37865         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
37866         gl_FUNC_VASPRINTF.
37867         (gl_FUNC_VASPRINTF): Invoke it.
37868         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
37869         here.
37870         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
37871
37872 2007-03-04  Bruno Haible  <bruno@clisp.org>
37873
37874         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
37875         REPLACE_GETTIMEOFDAY.
37876         * modules/sys_time (Makefile.am): Likewise.
37877         * m4/sys_time_h.m4: Likewise.
37878         * m4/gettimeofday.m4: Likewise.
37879
37880 2007-03-04  Bruno Haible  <bruno@clisp.org>
37881
37882         * modules/vasnprintf-posix-tests: New file.
37883         * tests/test-vasnprintf-posix.c: New file.
37884
37885         * modules/vasnprintf-posix: New file.
37886         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
37887         printf-frexpl.h.
37888         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
37889         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
37890         REPLACE_VASNPRINTF is defined.
37891         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
37892         gl_FUNC_VASNPRINTF.
37893         (gl_FUNC_VASNPRINTF): Invoke it.
37894         * m4/vasnprintf-posix.m4: New file.
37895         * m4/printf.m4: New file.
37896
37897 2007-03-04  Bruno Haible  <bruno@clisp.org>
37898
37899         Compile progreloc.c only if --enable-relocatable is specified.
37900         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
37901         if --enable-relocatable was specified.
37902         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
37903         lib_SOURCES.
37904
37905 2007-03-04  Jim Meyering  <jim@meyering.net>
37906
37907         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
37908         Use it consistently, rather than enumerating errno constants.
37909
37910 2007-03-04  Bruno Haible  <bruno@clisp.org>
37911
37912         * modules/xvasprintf-tests: New file.
37913         * tests/test-xvasprintf.c: New file.
37914
37915         * modules/vasprintf-tests: New file.
37916         * tests/test-vasprintf.c: New file.
37917
37918         * modules/vasnprintf-tests: New file.
37919         * tests/test-vasnprintf.c: New file.
37920
37921         * modules/vsnprintf-tests: New file.
37922         * tests/test-vsnprintf.c: New file.
37923
37924         * modules/snprintf-tests: New file.
37925         * tests/test-snprintf.c: New file.
37926
37927 2007-03-04  Bruno Haible  <bruno@clisp.org>
37928
37929         Compile relocatable.c only if --enable-relocatable is specified.
37930         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
37931         gl_RELOCATABLE_LIBRARY.
37932         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
37933         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
37934         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
37935         gl_RELOCATABLE_LIBRARY.
37936         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
37937         (Makefile.am): Remove lib_SOURCES.
37938         * modules/relocatable-lib-lgpl (configure.ac): Invoke
37939         gl_RELOCATABLE_LIBRARY.
37940         (Makefile.am): Remove lib_SOURCES.
37941         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
37942         always.
37943         * modules/relocatable-prog-wrapper (configure.ac): Invoke
37944         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
37945
37946 2007-03-04  Bruno Haible  <bruno@clisp.org>
37947
37948         * modules/argmatch-tests: New file.
37949         * tests/test-argmatch.c: New file.
37950
37951         * tests/test-allocsa.c (main): Halve the number of loop runs.
37952
37953         * modules/alloca-opt-tests: New file.
37954         * tests/test-alloca-opt.c: New file.
37955
37956 2007-03-04  Jim Meyering  <jim@meyering.net>
37957
37958         Work around difference between Linux ACLs and Solaris 10 ZFS.
37959         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
37960         for EINVAL.
37961
37962 2007-03-03  Bruno Haible  <bruno@clisp.org>
37963
37964         * modules/relocatable-prog (Depends-on): Add back progreloc's
37965         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
37966
37967 2007-03-03  Bruno Haible  <bruno@clisp.org>
37968
37969         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
37970         * modules/relocatable-lib: New file.
37971
37972 2007-03-03  Bruno Haible  <bruno@clisp.org>
37973
37974         * modules/relocatable-prog: Renamed from modules/relocatable.
37975         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
37976
37977 2007-03-03  Bruno Haible  <bruno@clisp.org>
37978
37979         * modules/relocatable-script (Files): Add doc/relocatable.texi,
37980         m4/relocatable-lib.m4.
37981         (Depends-on): Remove 'relocatable'.
37982         (configure.ac): Add gl_RELOCATABLE_NOP.
37983
37984 2007-03-03  Bruno Haible  <bruno@clisp.org>
37985
37986         * modules/relocatable-prog-wrapper: New file.
37987         * modules/relocatable (Depends-on): Add it. Remove all other
37988         dependencies except progname.
37989         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
37990
37991         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
37992         (gl_FUNC_STRERROR): Nop.
37993         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
37994
37995         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
37996         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
37997
37998         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
37999         (gl_FUNC_READLINK): Update.
38000
38001         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
38002
38003 2007-03-03  Bruno Haible  <bruno@clisp.org>
38004
38005         * lib/xreadlink.c: Include <unistd.h> unconditionally.
38006         * modules/xreadlink (Depends-on): Add unistd.
38007         * modules/xreadlink-with-size (Depends-on): Likewise.
38008
38009 2007-03-03  Bruno Haible  <bruno@clisp.org>
38010
38011         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
38012         extracted from gt_FUNC_SETENV.
38013         (gt_FUNC_SETENV): Remove macro.
38014         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
38015         remove gt_FUNC_SETENV.
38016
38017 2007-03-03  Bruno Haible  <bruno@clisp.org>
38018
38019         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
38020         ENABLE_RELOCATABLE here.
38021         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
38022
38023 2007-03-03  Bruno Haible  <bruno@clisp.org>
38024
38025         * modules/rbtreehash-list-tests (Depends-on): Add progname.
38026         * tests/test-rbtreehash_list.c: Include progname.h.
38027         (main): Call set_program_name.
38028
38029         * modules/rbtree-oset-tests (Depends-on): Add progname.
38030         * tests/test-rbtree_oset.c: Include progname.h.
38031         (main): Call set_program_name.
38032
38033         * modules/rbtree-list-tests (Depends-on): Add progname.
38034         * tests/test-rbtree_list.c: Include progname.h.
38035         (main): Call set_program_name.
38036
38037         * modules/linked-list-tests (Depends-on): Add progname.
38038         * tests/test-linked_list.c: Include progname.h.
38039         (main): Call set_program_name.
38040
38041 2007-03-03  Bruno Haible  <bruno@clisp.org>
38042
38043         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
38044         All uses of __restrict changed to _Restrict_.
38045         * lib/glob_.h (__restrict): Remove macro.
38046
38047 2007-03-02  Bruno Haible  <bruno@clisp.org>
38048
38049         * modules/gettext (configure.ac): Require gettext infrastructure
38050         from version 0.16.1.
38051
38052 2007-03-02  Bruno Haible  <bruno@clisp.org>
38053
38054         * modules/linkedhash-list-tests (Depends-on): Add progname.
38055         * tests/test-linkedhash_list.c: Include progname.h.
38056         (main): Call set_program_name.
38057
38058         * modules/carray-list-tests (Depends-on): Add progname.
38059         * tests/test-carray_list.c: Include progname.h.
38060         (main): Call set_program_name.
38061
38062         * modules/avltreehash-list-tests (Depends-on): Add progname.
38063         * tests/test-avltreehash_list.c: Include progname.h.
38064         (main): Call set_program_name.
38065
38066         * modules/avltree-oset-tests (Depends-on): Add progname.
38067         * tests/test-avltree_oset.c: Include progname.h.
38068         (main): Call set_program_name.
38069
38070         * modules/avltree-list-tests (Depends-on): Add progname.
38071         * tests/test-avltree_list.c: Include progname.h.
38072         (main): Call set_program_name.
38073
38074         * modules/array-oset-tests (Depends-on): Add progname.
38075         * tests/test-array_oset.c: Include progname.h.
38076         (main): Call set_program_name.
38077
38078         * modules/array-list-tests (Depends-on): Add progname.
38079         * tests/test-array_list.c: Include progname.h.
38080         (main): Call set_program_name.
38081
38082         * modules/argp-tests (Depends-on): Add progname.
38083         * tests/test-argp.c: Include argp.h first. Include progname.h.
38084         (main): Call set_program_name.
38085
38086 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
38087
38088         * doc/gnulib-tool.texi (Initial import): Reword description of
38089         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
38090         limited effect even if defined after the first system include.
38091
38092 2007-03-01  Bruno Haible  <bruno@clisp.org>
38093
38094         * build-aux/config.libpath: Update to libtool-1.5.22.
38095         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38096
38097 2007-03-01  Bruno Haible  <bruno@clisp.org>
38098
38099         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
38100         foo_CFLAGS.
38101         Reported by Ralf Wildenhues.
38102
38103 2007-03-01  Bruno Haible  <bruno@clisp.org>
38104
38105         * build-aux/install-reloc: Remove object files left over by some
38106         compilers.
38107         Reported by Ralf Wildenhues.
38108
38109 2007-03-01  Bruno Haible  <bruno@clisp.org>
38110
38111         * build-aux/install-reloc: Break long lines.
38112
38113 2007-03-01  Bruno Haible  <bruno@clisp.org>
38114
38115         * doc/relocatable.texi: Document that it may not work on OpenBSD.
38116         Reported by Ralf Wildenhues.
38117
38118 2007-03-01  Bruno Haible  <bruno@clisp.org>
38119
38120         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
38121         include ordering constraints.
38122
38123 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
38124
38125         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
38126         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
38127         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
38128         as another example.
38129         * lib/time_.h: Fix misspelling.
38130         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
38131         Require gl_HEADER_TIME_H_DEFAULTS.
38132         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
38133         * m4/time_r.m4 (gl_TIME_R): Likewise.
38134         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
38135
38136 2007-03-01  Bruno Haible  <bruno@clisp.org>
38137
38138         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
38139         * m4/utimens.m4 (gl_UTIMENS): Likewise.
38140
38141 2007-03-01  Jim Meyering  <jim@meyering.net>
38142
38143         * modules/xreadlink (Maintainer): Add my name.
38144         * modules/xreadlink-with-size (Depends-on): Alphabetize.
38145
38146 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
38147             Bruno Haible  <bruno@clisp.org>
38148
38149         * build-aux/install-reloc: Compile also c-ctype.c.
38150         * build-aux/relocatable.sh.in: New file.
38151         * doc/relocatable.texi: New file.
38152         * doc/relocatable-maint.texi: New file.
38153         * doc/gnulib.texi: Include relocatable-maint.texi.
38154         * lib/progreloc.c: Include unistd.h unconditionally.
38155         * lib/relocwrapper.c: Include unistd.h unconditionally.
38156         Include c-ctype.h.
38157         (add_dotbin): Use c_tolower.
38158         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
38159         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
38160         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
38161         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
38162         to m4/relocatable-lib.m4.
38163         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
38164         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
38165         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
38166         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
38167         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
38168         * modules/relocatable: New file.
38169         * modules/relocatable-lib: New file.
38170         * modules/relocatable-script: New file.
38171
38172 2007-02-28  Bruno Haible  <bruno@clisp.org>
38173
38174         Import --enable-relocatable infrastructure.
38175         * build-aux/config.libpath: New file, from GNU gettext.
38176         * build-aux/install-reloc: New file, from GNU gettext.
38177         * build-aux/reloc-ldflags: New file, from GNU gettext.
38178         * lib/relocatable.h: New file, from GNU gettext.
38179         * lib/relocatable.c: New file, from GNU gettext.
38180         * lib/relocwrapper.c: New file, from GNU gettext.
38181         * m4/relocatable.m4: New file, from GNU gettext.
38182
38183 2007-02-28  Bruno Haible  <bruno@clisp.org>
38184
38185         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
38186
38187         * modules/xreadlink: New file, from GNU gettext with modifications.
38188         * lib/xreadlink.c: New file, from GNU gettext.
38189         * lib/xreadlink.h: Add comments.
38190         (xreadlink): New declaration.
38191
38192         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
38193         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
38194         lib/xreadlink-with-size.c.
38195         (configure.ac): Remove gl_XREADLINK invocation.
38196         (Makefile.am): Augment lib_SOURCES.
38197         * m4/xreadlink.m4: Remove file.
38198         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
38199         (xreadlink_with_size): Renamed from xreadink.
38200         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
38201         * modules/canonicalize (Depends-on): Replace xreadlink with
38202         xreadlink-with-size.
38203         * lib/canonicalize.c (canonicalize_filename_mode): Update.
38204
38205 2007-02-25  Jim Meyering  <jim@meyering.net>
38206
38207         * build-aux/announce-gen: When complaining about excess arguments,
38208         list them.
38209
38210 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
38211
38212         * README: Document signed integer overflow situation more
38213         accurately.
38214
38215 2007-02-25  Bruno Haible  <bruno@clisp.org>
38216
38217         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
38218         'a' or 'A' conversion.
38219
38220 2007-02-25  Bruno Haible  <bruno@clisp.org>
38221
38222         * modules/filename: Renamed from modules/pathname.
38223         (Files): Replace lib/pathname.h with lib/filename.h. Replace
38224         lib/concatpath.c with lib/concat-filename.c.
38225         (Makefile.am): Update.
38226         (Include): Replace pathname.h with filename.h.
38227         * lib/filename.h: Renamed from lib/pathname.h.
38228         (concatenated_filename): Renamed from concatenated_pathname.
38229         * lib/concat-filename.c: Renamed from lib/concatpath.c.
38230         (concatenated_filename): Renamed from concatenated_pathname.
38231         * lib/findprog.c: Include filename.h instead of pathname.h.
38232         (find_in_path): Update.
38233         * lib/javacomp.c: Include filename.h instead of pathname.h.
38234         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
38235         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
38236         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
38237         is_oldgcj_14_13_usable, is_javac_usable): Update.
38238         * lib/javaexec.c: Include filename.h instead of pathname.h.
38239         (execute_java_class): Update.
38240         * modules/findprog: Update.
38241         * modules/javacomp: Update.
38242         * modules/javaexec: Update.
38243         * MODULES.html.sh (File system functions): Add 'filename', remove
38244         'pathname'.
38245
38246 2007-02-25  Bruno Haible  <bruno@clisp.org>
38247
38248         * modules/printf-frexpl-tests: New file.
38249         * tests/test-printf-frexpl.c: New file.
38250
38251         * modules/printf-frexpl: New file.
38252         * lib/printf-frexpl.h: New file.
38253         * lib/printf-frexpl.c: New file.
38254         * m4/printf-frexpl.m4: New file.
38255
38256 2007-02-25  Bruno Haible  <bruno@clisp.org>
38257
38258         * modules/printf-frexp-tests: New file.
38259         * tests/test-printf-frexp.c: New file.
38260
38261         * modules/printf-frexp: New file.
38262         * lib/printf-frexp.h: New file.
38263         * lib/printf-frexp.c: New file.
38264         * m4/printf-frexp.m4: New file.
38265
38266 2007-02-25  Bruno Haible  <bruno@clisp.org>
38267
38268         Assume automake >= 1.10 for the tests.
38269         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
38270         * modules/arctwo-tests: Likewise.
38271         * modules/argp-tests: Likewise.
38272         * modules/avltree-list-tests: Likewise.
38273         * modules/avltree-oset-tests: Likewise.
38274         * modules/avltreehash-list-tests: Likewise.
38275         * modules/carray-list-tests: Likewise.
38276         * modules/crc-tests: Likewise.
38277         * modules/des-tests: Likewise.
38278         * modules/gc-arcfour-tests: Likewise.
38279         * modules/gc-arctwo-tests: Likewise.
38280         * modules/gc-des-tests: Likewise.
38281         * modules/gc-hmac-md5-tests: Likewise.
38282         * modules/gc-hmac-sha1-tests: Likewise.
38283         * modules/gc-md2-tests: Likewise.
38284         * modules/gc-md4-tests: Likewise.
38285         * modules/gc-md5-tests: Likewise.
38286         * modules/gc-pbkdf2-sha1-tests: Likewise.
38287         * modules/gc-rijndael-tests: Likewise.
38288         * modules/gc-sha1-tests: Likewise.
38289         * modules/gc-tests: Likewise.
38290         * modules/getaddrinfo-tests: Likewise.
38291         * modules/hmac-md5-tests: Likewise.
38292         * modules/hmac-sha1-tests: Likewise.
38293         * modules/linked-list-tests: Likewise.
38294         * modules/linkedhash-list-tests: Likewise.
38295         * modules/lock-tests: Likewise.
38296         * modules/md2-tests: Likewise.
38297         * modules/md4-tests: Likewise.
38298         * modules/md5-tests: Likewise.
38299         * modules/rbtree-list-tests: Likewise.
38300         * modules/rbtree-oset-tests: Likewise.
38301         * modules/rbtreehash-list-tests: Likewise.
38302         * modules/read-file-tests: Likewise.
38303         * modules/rijndael-tests: Likewise.
38304         * modules/stdint-tests: Likewise.
38305         * modules/tls-tests: Likewise.
38306
38307 2007-02-24  Bruno Haible  <bruno@clisp.org>
38308
38309         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
38310         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
38311         function; instead check whether isnan with a double argument links.
38312         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
38313         function; instead check whether isnan with a 'long double' argument
38314         links.
38315         Reported by Eric Blake <ebb9@byu.net>.
38316
38317 2007-02-24  Bruno Haible  <bruno@clisp.org>
38318
38319         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
38320         defined.
38321         * lib/isnanl.c: Remove all code. Just include isnan.c.
38322         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
38323
38324 2007-02-25  Jim Meyering  <jim@meyering.net>
38325
38326         Avoid conflicting types for 'unsetenv' on FreeBSD.
38327         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
38328         conflicting with FreeBSD's (5.0 and 6.1) function declaration
38329         in stdlib.h.
38330
38331 2007-02-24  Bruno Haible  <bruno@clisp.org>
38332
38333         * modules/isnanl-nolibm-tests: New file.
38334         * tests/test-isnanl.c: New file.
38335
38336         * modules/isnanl-nolibm: New file.
38337         * lib/isnanl.h: New file.
38338         * lib/isnanl.c: New file.
38339         * m4/isnanl.m4: New file.
38340
38341 2007-02-24  Bruno Haible  <bruno@clisp.org>
38342
38343         * modules/isnan-nolibm-tests: New file.
38344         * tests/test-isnan.c: New file.
38345
38346         * modules/isnan-nolibm: New file.
38347         * lib/isnan.h: New file.
38348         * lib/isnan.c: New file.
38349         * m4/isnan.m4: New file.
38350
38351 2007-02-24  Bruno Haible  <bruno@clisp.org>
38352
38353         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
38354         assume that an exponent fits in 20 bits.
38355
38356 2007-02-24  Jim Meyering  <jim@meyering.net>
38357
38358         * m4/regex.m4: Update the description of the configure-time option,
38359         --without-included-regex, to state accurately what the defaults are,
38360         and perhaps to give people an idea why using this option is risky.
38361
38362 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
38363
38364         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
38365         loops on small arguments.  This attempts to avoid the problem
38366         Bruno Haible reported for AIX 4.3.2 in
38367         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
38368
38369 2007-02-23  Bruno Haible  <bruno@clisp.org>
38370
38371         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
38372         Needed for help2man.
38373
38374 2007-02-23  Karl Berry  <karl@gnu.org>
38375
38376         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
38377         exists, foo.h should be cvs-ignored, not committed.
38378
38379 2007-02-23  Eric Blake  <ebb9@byu.net>
38380
38381         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
38382         * lib/stat-time.h (includes): Likewise.
38383         * lib/utimecmp.c (includes): Likewise.
38384         * lib/utimens.h (includes): Likewise.
38385         * lib/getdate.y (includes): Also include "timespec.h" for use
38386         internal to the module.
38387         * modules/utimens (Depends-on): Revert yesterday's patch.
38388         * modules/nanosleep (Depends-on): Add missing dependency.
38389
38390 2007-02-22  Bruno Haible  <bruno@clisp.org>
38391
38392         * lib/glob.c: Don't include getlogin_r.h.
38393
38394 2007-02-22  Jim Meyering  <jim@meyering.net>
38395
38396         * modules/utimens (Depends-on): Add timespec, required for
38397         utimens.h's inclusion of timespec.h.
38398
38399 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
38400
38401         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
38402         long unreadable paths in GNU/Linux.  Problem reported by Andreas
38403         Schwab in
38404         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
38405         I'll try to think of a better way to fix the Solaris problem.
38406
38407         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
38408         like glibc; on Solaris 10, it fails with errno == EINVAL.
38409         POSIX says the behavior is unspecified if the first argument is NULL,
38410         so play it safe and never pass NULL to the system getcwd.
38411
38412 2007-02-21  Jim Meyering  <jim@meyering.net>
38413
38414         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
38415         of gettimeofday.  It would conflict with the one now always
38416         provided via sys_time_.h.  Reported by Matthew Woehlke, as
38417         an IRIX 6.5 build failure.
38418
38419 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
38420
38421         Minor fixups to port to Solaris 10 with Sun C 5.8.
38422         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
38423         * modules/getcwd (Depends-on): Add dirfd.
38424         * lib/putenv.c (putenv): #undef it.
38425         (rpl_putenv): New decl.
38426         (malloc, free): Include <stdlib.h> rather than prototyping separately.
38427
38428 2007-02-20  Bruno Haible  <bruno@clisp.org>
38429
38430         * modules/stdio-tests: New file.
38431         * tests/test-stdio.c: New file.
38432
38433         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
38434         (Depends-on): Add stdio.
38435         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
38436         (Include): Use <stdio.h> instead of vsnprintf.h.
38437         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
38438         HAVE_DECL_VSNPRINTF.
38439         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
38440
38441         * modules/snprintf (Files): Remove lib/snprintf.h.
38442         (Depends-on): Add stdio.
38443         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
38444         (Include): Use <stdio.h> instead of snprintf.h.
38445         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
38446         HAVE_DECL_SNPRINTF.
38447         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
38448         * lib/getaddrinfo.c: Likewise.
38449
38450         * modules/stdio: New file.
38451         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
38452         * lib/snprintf.h: Remove file.
38453         * lib/vsnprintf.h: Remove file.
38454         * lib/.cppi-disable: Remove snprintf.h.
38455         * m4/stdio_h.m4: New file.
38456         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
38457
38458 2007-02-20  Jim Meyering  <jim@meyering.net>
38459
38460         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
38461         used by e.g., mingw.  From Bruno Haible.
38462
38463 2007-02-19  Bruno Haible  <bruno@clisp.org>
38464
38465         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
38466         warnings.
38467         Reported by Ben Pfaff <blp@cs.stanford.edu>.
38468
38469 2007-02-19  Bruno Haible  <bruno@clisp.org>
38470
38471         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
38472         from mingw users.
38473
38474 2007-02-19  Bruno Haible  <bruno@clisp.org>
38475
38476         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
38477         warnings.
38478         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
38479
38480 2007-02-19  Jim Meyering  <jim@meyering.net>
38481
38482         Don't use FD after a successful "fdopendir (fd)".
38483         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
38484         Reset it by calling dirfd on the just-obtained DIR*.
38485
38486         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
38487         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
38488
38489 2007-02-18  Bruno Haible  <bruno@clisp.org>
38490
38491         * lib/readlink.c: Include <unistd.h>.
38492         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
38493         HAVE_READLINK.
38494         * modules/readlink (Depends-on): Add unistd.
38495         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38496         (Include): Add <unistd.h>.
38497
38498         * lib/getlogin_r.h: Remove file.
38499         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
38500         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
38501         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
38502         HAVE_DECL_GETLOGIN_R.
38503         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
38504         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38505         (Include): Use <unistd.h> instead of getlogin_r.h.
38506
38507         * lib/getcwd.h: Remove file.
38508         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
38509         * lib/xgetcwd.c: Likewise.
38510         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
38511         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
38512         * modules/getcwd (Files): Remove lib/getcwd.h.
38513         (Depends-on): Add unistd.
38514         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38515         (Include): Use <unistd.h> instad of getcwd.h.
38516
38517         * lib/ftruncate.c: Include <unistd.h> first.
38518         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
38519         Set HAVE_FTRUNCATE.
38520         * modules/ftruncate (Depends-on): Add unistd.
38521         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38522
38523         * lib/fchdir.c: Include <unistd.h> first.
38524         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
38525         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
38526         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
38527         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38528         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
38529
38530         * lib/dup2.c: Include <unistd.h> first.
38531         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
38532         HAVE_DUP2.
38533         * modules/dup2 (Depends-on): Add unistd.
38534         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38535
38536         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
38537         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
38538         REPLACE_CHOWN. Don't define chown as a macro here.
38539         * modules/chown (Depends-on): Add unistd.
38540         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38541
38542         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
38543         Add definition for GL_LINK_WARNING.
38544         (chown, dup2): New declarations.
38545         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
38546         link warning.
38547         (ftruncate): New declaration.
38548         (getcwd): New declaration, taken from old getcwd.h.
38549         (getlogin_r): New declaration, taken from old getlogin_r.h.
38550         (readlink): New declaration.
38551         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
38552         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
38553         (gl_PREREQ_UNISTD): Remove macro.
38554         (gl_UNISTD_MODULE_INDICATOR): New macro.
38555         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
38556         many new variables. Don't set UNISTD_H.
38557         * modules/unistd (Description): Change.
38558         (Depends-on): Add link-warning.
38559         (configure.ac): Update.
38560         (Makefile.am): Create unistd.h always. Substitute many new variables
38561         into it.
38562
38563 2007-02-18  Bruno Haible  <bruno@clisp.org>
38564
38565         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
38566         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
38567         HAVE_GETSUBOPT.
38568         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
38569         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
38570         * lib/getsubopt.h: Remove file.
38571         * modules/getsubopt (Files): Remove lib/getsubopt.h.
38572         (Depends-on): Add stdlib.
38573         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38574         (Includes): Use <stdlib.h> instead of getsubopt.h.
38575         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
38576         Set HAVE_GETSUBOPT.
38577         * lib/getsubopt.c: Don't include getsubopt.h.
38578
38579 2007-02-18  Bruno Haible  <bruno@clisp.org>
38580
38581         * modules/fchdir (Depends-on): Add dup2.
38582
38583 2007-02-18  Bruno Haible  <bruno@clisp.org>
38584
38585         * lib/stdlib_.h: Handle glibc's special invocation convention
38586         specially.
38587
38588 2007-02-18  Bruno Haible  <bruno@clisp.org>
38589
38590         * modules/stdlib-tests: New file.
38591         * tests/test-stdlib.c: New file.
38592
38593         * modules/mkstemp (Files): Remove lib/mkstemp.h.
38594         (Depends-on): Add stdlib.
38595         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38596         (Includes): Use <stdlib.h> instead of mkstemp.h.
38597         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
38598         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
38599         * lib/mkstemp.c: Don't include mkstemp.h.
38600         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
38601         * lib/stdlib--.h: Don't include mkstemp.h.
38602
38603         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
38604         (Depends-on): Add stdlib.
38605         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38606         (Includes): Use <stdlib.h> instead of mkdtemp.h.
38607         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
38608         HAVE_MKDTEMP.
38609         * lib/mkdtemp.c: Don't include mkdtemp.h.
38610         * lib/clean-temp.c: Don't include mkdtemp.h.
38611
38612         * modules/exit (Files): Remove lib/exit.h.
38613         (Depends-on): Add stdlib.
38614         (Makefile.am): Remove lib_SOURCES.
38615         (Include): Use <stdlib.h> instead of exit.h.
38616         * lib/argmatch.c: Don't include exit.h.
38617         * lib/execute.c: Likewise.
38618         * lib/pagealign_alloc.c: Likewise.
38619         * lib/pipe.c: Likewise.
38620         * lib/wait-process.c: Likewise.
38621         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
38622         * lib/exitfail.c: Likewise.
38623         * lib/savewd.c: Likewise.
38624         * lib/xsetenv.c: Likewise.
38625
38626         * modules/stdlib: New file.
38627         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
38628         and extra comments about mkstemp().
38629         * lib/exit.h: Remove file.
38630         * lib/mkdtemp.h: Remove file.
38631         * lib/mkstemp.h: Remove file.
38632         * m4/stdlib_h.m4: New file.
38633         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
38634
38635 2007-02-18  Bruno Haible  <bruno@clisp.org>
38636
38637         * modules/math-tests: New file.
38638         * tests/test-math.c: New file.
38639
38640         * modules/math: New file.
38641         * modules/mathl (Files): Remove lib/mathl.h.
38642         (Depends-on): Add math.
38643         (Makefile.am): Don't mention mathl.h.
38644         (Include): Use <math.h> instead of mathl.h.
38645         * lib/math_.h: New file.
38646         * lib/mathl.h: Remove file.
38647         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
38648         mathl.h.
38649         * lib/asinl.c: Likewise.
38650         * lib/atanl.c: Likewise.
38651         * lib/ceill.c: Likewise.
38652         * lib/cosl.c: Likewise.
38653         * lib/expl.c: Likewise.
38654         * lib/floorl.c: Likewise.
38655         * lib/frexpl.c: Likewise.
38656         * lib/ldexpl.c: Likewise.
38657         * lib/logl.c: Likewise.
38658         * lib/sincosl.c: Likewise.
38659         * lib/sinl.c: Likewise.
38660         * lib/sqrtl.c: Likewise.
38661         * lib/tanl.c: Likewise.
38662         * lib/trigl.c: Likewise.
38663         * m4/math_h.m4: New file.
38664         * MODULES.html.sh (Mathematics): Add math.
38665
38666 2007-02-17  Bruno Haible  <bruno@clisp.org>
38667
38668         * modules/wctype-tests: New file.
38669         * tests/test-wctype.c: New file.
38670
38671         * modules/wchar-tests: New file.
38672         * tests/test-wchar.c: New file.
38673
38674         * modules/unistd-tests: New file.
38675         * tests/test-unistd.c: New file.
38676
38677         * modules/time-tests: New file.
38678         * tests/test-time.c: New file.
38679
38680         * modules/sysexits-tests: New file.
38681         * tests/test-sysexits.c: New file.
38682
38683         * modules/sys_time-tests: New file.
38684         * tests/test-sys_time.c: New file.
38685
38686         * modules/sys_stat-tests: New file.
38687         * tests/test-sys_stat.c: New file.
38688
38689         * modules/sys_socket-tests: New file.
38690         * tests/test-sys_socket.c: New file.
38691
38692         * modules/sys_select-tests: New file.
38693         * tests/test-sys_select.c: New file.
38694
38695         * modules/string-tests: New file.
38696         * tests/test-string.c: New file.
38697
38698         * modules/stdbool-tests: New file.
38699         * tests/test-stdbool.c: New file.
38700
38701         * modules/netinet_in-tests: New file.
38702         * tests/test-netinet_in.c: New file.
38703
38704         * modules/inttypes-tests: New file.
38705         * tests/test-inttypes.c: New file.
38706
38707         * modules/fcntl-tests: New file.
38708         * tests/test-fcntl.c: New file.
38709
38710         * modules/byteswap-tests: New file.
38711         * tests/test-byteswap.c: New file.
38712
38713         * modules/arpa_inet-tests: New file.
38714         * tests/test-arpa_inet.c: New file.
38715
38716 2007-02-17  Bruno Haible  <bruno@clisp.org>
38717
38718         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
38719         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
38720         if the corresponding module is not enabled. Emit link warnings if
38721         the function is used nevertheless.
38722         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
38723         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
38724         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
38725         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
38726         * modules/inttypes (Depends-on): Add link-warning.
38727         (Makefile.am): Copy the contents of build-aux/link-warning.h into
38728         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
38729         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
38730         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
38731         * modules/imaxdiv (configure.ac): Likewise.
38732         * modules/strtoimax (configure.ac): Likewise.
38733         * modules/strtoumax (configure.ac): Likewise.
38734
38735 2007-02-17  Bruno Haible  <bruno@clisp.org>
38736
38737         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
38738         gl_STRING_MODULE_INDICATOR_DEFAULTS.
38739         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
38740         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
38741
38742 2007-02-17  Bruno Haible  <bruno@clisp.org>
38743
38744         * modules/link-warning: New file.
38745         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
38746         * lib/string_.h (GL_LINK_WARNING): Remove definition.
38747         * modules/string (Depends-on): Add link-warning.
38748         (Makefile.am): Copy the contents of build-aux/link-warning.h into
38749         string.h.
38750         * MODULES.html.sh (Support for building libraries and executables): Add
38751         link-warning.
38752
38753 2007-02-17  Bruno Haible  <bruno@clisp.org>
38754
38755         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
38756         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
38757         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
38758         long lines.
38759
38760 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
38761             Bruno Haible  <bruno@clisp.org>
38762
38763         * modules/tmpfile: New file.
38764         * lib/tmpfile.c: New file.
38765         * m4/tmpfile.m4: New file.
38766         * MODULES.html.sh (func_all_modules): New section "Input/output".
38767
38768 2007-02-15  Bruno Haible  <bruno@clisp.org>
38769
38770         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
38771         (supports_delete_on_close): New function.
38772         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
38773
38774 2007-02-14  Bruno Haible  <bruno@clisp.org>
38775
38776         * modules/mbspcasecmp-tests: New file.
38777         * tests/test-mbspcasecmp.sh: New file.
38778         * tests/test-mbspcasecmp.c: New file.
38779
38780         New module mbspcasecmp.
38781         * modules/mbspcasecmp: New file.
38782         * lib/mbspcasecmp.c: New file.
38783         * lib/string_.h (strncasecmp): Change warning message.
38784         (mbspcasecmp): New declaration.
38785         * m4/mbspcasecmp.m4: New file.
38786         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38787         GNULIB_MBSPCASECMP.
38788         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
38789         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
38790
38791 2007-02-14  Bruno Haible  <bruno@clisp.org>
38792
38793         * modules/mbsncasecmp-tests: New file.
38794         * tests/test-mbsncasecmp.sh: New file.
38795         * tests/test-mbsncasecmp.c: New file.
38796
38797         New module mbsncasecmp.
38798         * modules/mbsncasecmp: New file.
38799         * lib/mbsncasecmp.c: New file.
38800         * lib/string_.h (mbsncasecmp): New declaration.
38801         * m4/mbsncasecmp.m4: New file.
38802         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38803         GNULIB_MBSNCASECMP.
38804         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
38805         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
38806
38807 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
38808
38809         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
38810         Verify that it doesn't overlap with our flags.
38811         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
38812         do not have the desired effect in multibyte locales; instead, use
38813         mbscasecmp.
38814         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
38815         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
38816         we don't require GNU fnmatch ourselves (if our users require it, they
38817         should do so explicitly).
38818
38819         Fix regex code so it doesn't rely on strcasecmp.
38820         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
38821         Otherwise, include gnulib's langinfo.h.
38822         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
38823         undesirable behavior in non-C locales.  Instead, rely on localecharset.
38824         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
38825         * modules/regex (FILES): Remove m4/codeset.m4.
38826         (Depends-on): Add localcharset.  Remove strcase.
38827
38828 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38829
38830         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
38831         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
38832
38833 2007-02-13  Bruno Haible  <bruno@clisp.org>
38834
38835         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
38836         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38837
38838 2007-02-12  Bruno Haible  <bruno@clisp.org>
38839
38840         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
38841         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
38842         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
38843         time warning rather than a link error.
38844
38845 2007-02-12  Bruno Haible  <bruno@clisp.org>
38846
38847         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
38848         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
38849         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38850
38851 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
38852
38853         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
38854         args, not 2.
38855
38856 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
38857
38858         New module 'time', so that apps can include <time.h> as per
38859         POSIX and GNU instead of separate include files like time_r.h
38860         and timegm.h.  This implementation tries out a simpler approach
38861         for replacing decls in standard include files (as compared to
38862         the string module), somewhat as an experiment.
38863
38864         * config/srclist.txt: Comment out mktime.c for now.
38865         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
38866         since it doesn't apply any more.  Use generic wording instead.
38867         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
38868         'time'.
38869         * lib/time_.h, m4/time_h.m4, modules/time: New files.
38870         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
38871         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
38872         Don't include <sys/types.h>; no longer needed since we assume C89.
38873         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
38874         * lib/strftime.c: Likewise.
38875         * lib/time_r.c: Likewise.
38876         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
38877         * lib/nanosleep.c: Include <time.h> first, to check interface.
38878         * lib/strptime.c: Likewise.
38879         * lib/time_r.c: Likewise.
38880         * lib/timegm.c: Likewise.
38881         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
38882         needed.
38883         * lib/timegm.c: Don't include timegm.h; no longer needed.
38884         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
38885         time.h now handles any problems in that area.
38886         (struct timespec, nanosleep): Remove; time.h now arranges for these.
38887         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
38888         that time.h defines struct timespec.
38889         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
38890         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
38891         handles that.
38892         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
38893         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
38894         needed.  Set REPLACE_LOCALTIME.
38895         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
38896         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
38897         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
38898         nanosleep; time_h.m4 now does that.  Don't require
38899         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
38900         module handles this now.
38901         * modules/getdate (Depends-on): Remove timespec.  Add time.
38902         * modules/nanosleep (Depends-on): Likewise.
38903         * modules/stat-time (Depends-on): Likewise.
38904         * modules/nanosleep (Include): Include time.h, not timespec.h.
38905         * modules/strptime (Files): Remove lib/strptime.h.
38906         (Depends-on): Add extensions, time.
38907         (Include): Include time.h, not strptime.h.
38908         * modules/time_r (Files): Remove lib/time_r.h.
38909         (Depends-on): Add time.
38910         (Include): Include time.h, not time_r.h.
38911         * modules/timegm: Likewise.
38912         * modules/timespec (Description): Now does timespec-related decls
38913         of our own, instead of struct timespec itself.
38914         (Depends-on): Add time; remove extensions.
38915         (Maintainer): Add self.
38916         * modules/utimecmp (Depends-on): Add time; remove timespec.
38917         * modules/utimens (Depends-on): Likewise.
38918         * modules/xnanosleep (Depends-on): Likewise.
38919
38920 2007-02-11  Bruno Haible  <bruno@clisp.org>
38921
38922         * lib/c-strstr.c: Include allocsa.h.
38923         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38924         * lib/c-strcasestr.c: Include allocsa.h.
38925         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38926         * lib/strcasestr.c: Include allocsa.h.
38927         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
38928         * lib/mbsstr.c: Include allocsa.h.
38929         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
38930         allocsa/freesa instead of malloc/free.
38931         * lib/mbscasestr.c: Include allocsa.h.
38932         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
38933         allocsa/freesa instead of malloc/free.
38934         * modules/c-strstr (Depends-on): Add allocsa.
38935         * modules/c-strcasestr (Depends-on): Likewise.
38936         * modules/strcasestr (Depends-on): Likewise.
38937         * modules/mbsstr (Depends-on): Likewise.
38938         * modules/mbscasestr (Depends-on): Likewise.
38939
38940 2007-02-11  Bruno Haible  <bruno@clisp.org>
38941
38942         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
38943
38944         * modules/mbsspn-tests: New file.
38945         * tests/test-mbsspn.sh: New file.
38946         * tests/test-mbsspn.c: New file.
38947
38948 2007-02-11  Bruno Haible  <bruno@clisp.org>
38949
38950         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
38951
38952         * modules/mbspbrk-tests: New file.
38953         * tests/test-mbspbrk.sh: New file.
38954         * tests/test-mbspbrk.c: New file.
38955
38956 2007-02-11  Bruno Haible  <bruno@clisp.org>
38957
38958         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
38959         unneeded cast.
38960
38961         * modules/mbscspn-tests: New file.
38962         * tests/test-mbscspn.sh: New file.
38963         * tests/test-mbscspn.c: New file.
38964
38965 2007-02-11  Bruno Haible  <bruno@clisp.org>
38966
38967         * modules/mbscasecmp-tests: New file.
38968         * tests/test-mbscasecmp.sh: New file.
38969         * tests/test-mbscasecmp.c: New file.
38970
38971 2007-02-11  Bruno Haible  <bruno@clisp.org>
38972
38973         Ensure O(n) worst-case complexity of mbscasestr.
38974         * lib/mbscasestr.c: Include stdbool.h.
38975         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
38976         functions.
38977         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
38978         the bookkeeping indicates that it's worth it.
38979         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
38980
38981         * modules/mbscasestr-tests: New file.
38982         * tests/test-mbscasestr1.c: New file.
38983         * tests/test-mbscasestr2.sh: New file.
38984         * tests/test-mbscasestr2.c: New file.
38985         * tests/test-mbscasestr3.sh: New file.
38986         * tests/test-mbscasestr3.c: New file.
38987         * tests/test-mbscasestr4.sh: New file.
38988         * tests/test-mbscasestr4.c: New file.
38989         * m4/locale-tr.m4: New file.
38990
38991 2007-02-11  Bruno Haible  <bruno@clisp.org>
38992
38993         Ensure O(n) worst-case complexity of mbsstr.
38994         * lib/mbsstr.c: Include stdbool.h.
38995         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
38996         functions.
38997         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
38998         bookkeeping indicates that it's worth it.
38999         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
39000
39001         * modules/mbsstr-tests: New file.
39002         * tests/test-mbsstr1.c: New file.
39003         * tests/test-mbsstr2.sh: New file.
39004         * tests/test-mbsstr2.c: New file.
39005         * tests/test-mbsstr3.sh: New file.
39006         * tests/test-mbsstr3.c: New file.
39007         * m4/locale-fr.m4: New file.
39008
39009 2007-02-11  Bruno Haible  <bruno@clisp.org>
39010
39011         * lib/mbsrchr.c (mbsrchr): Fix bug.
39012
39013         * modules/mbsrchr-tests: New file.
39014         * tests/test-mbsrchr.sh: New file.
39015         * tests/test-mbsrchr.c: New file.
39016
39017 2007-02-11  Bruno Haible  <bruno@clisp.org>
39018
39019         * lib/mbschr.c (mbschr): Fix bug.
39020
39021         * modules/mbschr-tests: New file.
39022         * tests/test-mbschr.sh: New file.
39023         * tests/test-mbschr.c: New file.
39024         * m4/locale-zh.m4: New file.
39025
39026 2007-02-11  Bruno Haible  <bruno@clisp.org>
39027
39028         Support for copying multibyte string iterators.
39029         * lib/mbiter.h: Include <string.h>.
39030         (mbiter_multi_copy): New function.
39031         (mbi_copy): New macro.
39032         * lib/mbuiter.h: Include <string.h>.
39033         (mbuiter_multi_copy): New function.
39034         (mbui_copy): New macro.
39035
39036 2007-02-11  Bruno Haible  <bruno@clisp.org>
39037
39038         New module mbslen.
39039         * modules/mbslen: New file.
39040         * lib/mbslen.c: New file.
39041         * lib/string_.h (mbslen): New declaration.
39042         * m4/mbslen.m4: New file.
39043         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39044         GNULIB_MBSLEN.
39045         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
39046         * MODULES.html.sh (Internationalization functions): Add mbslen.
39047
39048 2007-02-11  Bruno Haible  <bruno@clisp.org>
39049
39050         Ensure O(n) worst-case complexity of strcasestr substitute.
39051         * lib/strcasestr.c: Include stdbool.h.
39052         (knuth_morris_pratt): New function.
39053         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
39054         bookkeeping indicates that it's worth it.
39055         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
39056
39057         * modules/strcasestr-tests: New file.
39058         * tests/test-strcasestr.c: New file.
39059
39060 2007-02-11  Bruno Haible  <bruno@clisp.org>
39061
39062         Ensure O(n) worst-case complexity of c_strcasestr.
39063         * lib/c-strcasestr.c: Include stdbool.h, string.h.
39064         (knuth_morris_pratt): New function.
39065         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
39066         the bookkeeping indicates that it's worth it.
39067         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
39068
39069         * modules/c-strcasestr-tests: New file.
39070         * tests/test-c-strcasestr.c: New file.
39071
39072 2007-02-11  Bruno Haible  <bruno@clisp.org>
39073
39074         Ensure O(n) worst-case complexity of c_strstr.
39075         * lib/c-strstr.c: Include stdbool.h, string.h.
39076         (knuth_morris_pratt): New function.
39077         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
39078         bookkeeping indicates that it's worth it.
39079         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
39080
39081         * lib/c-strstr.c: Complete rewrite for maintainability.
39082
39083         * modules/c-strstr-tests: New file.
39084         * tests/test-c-strstr.c: New file.
39085
39086 2007-02-11  Bruno Haible  <bruno@clisp.org>
39087
39088         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
39089         5.2.1 and earlier, whereby \055 was treated just like the range
39090         delimiter '-'.
39091         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
39092
39093 2007-02-08  Bruno Haible  <bruno@clisp.org>
39094
39095         * modules/regex (Depends-on): Add stdbool.
39096         Reported by Dalibor Topic <robilad@kaffe.org>.
39097
39098 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
39099
39100         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
39101         Prefer returning from main to exiting from it.
39102         Remove unnecessary parens after sizeof.
39103
39104 2007-02-05  Bruno Haible  <bruno@clisp.org>
39105
39106         New module mbssep.
39107         * modules/mbssep: New file.
39108         * lib/mbssep.c: New file.
39109         * lib/string_.h (strsep): Add a conditional link warning.
39110         (mbssep): New declaration.
39111         * m4/mbssep.m4: New file.
39112         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39113         GNULIB_MBSSEP.
39114         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
39115         * MODULES.html.sh (Internationalization functions): Add mbssep.
39116
39117 2007-02-05  Bruno Haible  <bruno@clisp.org>
39118
39119         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
39120         Optimize search in case of 1 delimiter.
39121
39122 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
39123
39124         * lib/acl.h: Include sys/types.h before sys/acl.h.
39125
39126 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
39127
39128         Merge upstream fix for glibc bugzilla #3957:
39129
39130         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
39131
39132         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
39133         bit for RE_HAT_LISTS_NOT_NEWLINE.
39134         (build_charclass_op): Remove bogus comment.
39135
39136 2007-02-05  Simon Josefsson  <simon@josefsson.org>
39137
39138         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
39139
39140 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
39141
39142         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
39143         * lib/memmem.c [!defined _LIBC]: Include config.h.
39144
39145 2007-02-04  Bruno Haible  <bruno@clisp.org>
39146
39147         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
39148         warning message.
39149
39150 2007-02-04  Bruno Haible  <bruno@clisp.org>
39151
39152         New module mbstok_r.
39153         * modules/mbstok_r: New file.
39154         * lib/mbstok_r.c: New file.
39155         * lib/string_.h (strtok_r): Change argument names to match the
39156         comments. Add a conditional link warning.
39157         (mbstok_r): New declaration.
39158         * m4/mbstok_r.m4: New file.
39159         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39160         GNULIB_MBSTOK_R.
39161         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
39162         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
39163
39164 2007-02-04  Bruno Haible  <bruno@clisp.org>
39165
39166         New module mbsspn.
39167         * modules/mbsspn: New file.
39168         * lib/mbsspn.c: New file.
39169         * lib/string_.h (strspn): Add a conditional link warning.
39170         (mbsspn): New declaration.
39171         * m4/mbsspn.m4: New file.
39172         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39173         GNULIB_MBSSPN.
39174         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
39175         * MODULES.html.sh (Internationalization functions): Add mbsspn.
39176
39177 2007-02-04  Bruno Haible  <bruno@clisp.org>
39178
39179         New module mbspbrk.
39180         * modules/mbspbrk: New file.
39181         * lib/mbspbrk.c: New file.
39182         * lib/string_.h (strpbrk): Add a conditional link warning.
39183         (mbspbrk): New declaration.
39184         * m4/mbspbrk.m4: New file.
39185         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39186         GNULIB_MBSPBRK.
39187         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
39188         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
39189
39190 2007-02-04  Bruno Haible  <bruno@clisp.org>
39191
39192         New module mbscspn.
39193         * modules/mbscspn: New file.
39194         * lib/mbscspn.c: New file.
39195         * lib/string_.h (strcspn): Add a conditional link warning.
39196         (mbscspn): New declaration.
39197         * m4/mbscspn.m4: New file.
39198         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39199         GNULIB_MBSCSPN.
39200         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
39201         * MODULES.html.sh (Internationalization functions): Add mbscspn.
39202
39203 2007-02-04  Bruno Haible  <bruno@clisp.org>
39204
39205         New module mbscasestr, reduced goal of strcasestr.
39206         * modules/mbscasestr: New file.
39207         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
39208         (mbscasestr): Renamed from strcasestr.
39209         * lib/strcasestr.c: Don't include mbuiter.h.
39210         (strcasestr): Remove support for multibyte locales.
39211         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
39212         Change the conditional link warning.
39213         (mbscasestr): New declaration.
39214         * m4/mbscasestr.m4: New file.
39215         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
39216         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
39217         REPLACE_STRCASESTR.
39218         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
39219         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39220         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
39221         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
39222         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
39223         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
39224         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
39225         (Depends-on): Remove mbuiter.
39226         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
39227
39228 2007-02-04  Bruno Haible  <bruno@clisp.org>
39229
39230         Simplify handling of strncasecmp.
39231         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
39232         the conditional link warning.
39233         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39234         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
39235         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
39236         * modules/strcase (configure.ac): Don't invoke
39237         gl_STRING_MODULE_INDICATOR.
39238         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
39239
39240 2007-02-04  Bruno Haible  <bruno@clisp.org>
39241
39242         New module mbscasecmp, reduced goal of strcasecmp.
39243         * modules/mbscasecmp: New file.
39244         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
39245         (mbscasecmp): Renamed from strcasecmp.
39246         * lib/strcasecmp.c: Don't include mbuiter.h.
39247         (strcasecmp): Remove support for multibyte locales.
39248         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
39249         Change the conditional link warning.
39250         (mbscasecmp): New declaration.
39251         * m4/mbscasecmp.m4: New file.
39252         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
39253         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
39254         REPLACE_STRCASECMP.
39255         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
39256         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39257         GNULIB_MBSCASECMP.
39258         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
39259         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
39260         * modules/strcase (Files): Remove m4/mbrtowc.m4.
39261         (Depends-on): Remove mbuiter.
39262         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
39263
39264 2007-02-04  Bruno Haible  <bruno@clisp.org>
39265
39266         New module mbsstr. Remove module strstr.
39267         * modules/mbsstr: New file.
39268         * modules/strstr: Remove file.
39269         * lib/mbsstr.c: Renamed from lib/strstr.c.
39270         (mbsstr): Renamed from strstr.
39271         * lib/string_.h (strstr): Remove declaration. Change the conditional
39272         link warning.
39273         (mbsstr): New declaration.
39274         * m4/mbsstr.m4: New file.
39275         * m4/strstr.m4: Remove file.
39276         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
39277         REPLACE_STRSTR.
39278         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
39279         Don't initialize GNULIB_STRSTR.
39280         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
39281         substitute GNULIB_STRSTR and REPLACE_STRSTR.
39282         * MODULES.html.sh (Internationalization functions): Add mbsstr.
39283         (Support for systems lacking ANSI C 89): Remove strstr.
39284
39285 2007-02-04  Bruno Haible  <bruno@clisp.org>
39286
39287         New module mbsrchr.
39288         * modules/mbsrchr: New file.
39289         * lib/mbsrchr.c: New file.
39290         * lib/string_.h (strrchr): Add a conditional link warning.
39291         (mbsrchr): New declaration.
39292         * m4/mbsrchr.m4: New file.
39293         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39294         GNULIB_MBSRCHR.
39295         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
39296         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
39297
39298 2007-02-04  Bruno Haible  <bruno@clisp.org>
39299
39300         New module mbschr.
39301         * modules/mbschr: New file.
39302         * lib/mbschr.c: New file.
39303         * lib/string_.h (strchr): Add a conditional link warning.
39304         (mbschr): New declaration.
39305         * m4/mbschr.m4: New file.
39306         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39307         GNULIB_MBSCHR.
39308         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
39309         * MODULES.html.sh (Internationalization functions): Add mbschr.
39310
39311 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
39312
39313         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
39314
39315         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
39316
39317 2007-02-04  Bruno Haible  <bruno@clisp.org>
39318
39319         New module description section 'configure.ac-early'.
39320         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
39321         (func_get_autoconf_early_snippet): New function.
39322         (func_import, func_create_testdir): Use it. Remove special cases for
39323         modules 'extensions' and 'lock'.
39324         * modules/extensions (configure.ac-early): Require
39325         gl_USE_SYSTEM_EXTENSIONS.
39326         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
39327
39328 2007-02-04  Bruno Haible  <bruno@clisp.org>
39329
39330         Make use of gcj-4.3's -fsource and -ftarget option.
39331         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
39332         and if so try the options -fsource and -ftarget.
39333         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
39334         source_version, ftarget_option, target_version arguments.
39335         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
39336         (is_envjavac_oldgcj_14_14_usable): Renamed from
39337         is_envjavac_gcj_14_14_usable.
39338         (is_envjavac_oldgcj_14_13_usable): Renamed from
39339         is_envjavac_gcj_14_13_usable.
39340         (is_gcj_present): Update.
39341         (is_gcj_43, is_gcj43_usable): New functions.
39342         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
39343         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
39344         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
39345         try the options -fsource and -ftarget.
39346
39347 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
39348
39349         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
39350         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
39351         larger value.
39352
39353 2007-02-03  Jim Meyering  <jim@meyering.net>
39354
39355         Give tools a better chance to allocate space for very large buffers.
39356         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
39357
39358         Make pwd and readlink work also when run with an unreadable parent dir
39359         on systems with openat support.
39360         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
39361         provided getcwd function, even when we have openat support.
39362         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
39363
39364 2007-02-02  Bruno Haible  <bruno@clisp.org>
39365
39366         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
39367         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
39368         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
39369         portability problems if one of these functions is only used on specific
39370         platforms.
39371         Reported by Paul Eggert.
39372
39373 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
39374
39375         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
39376         is causing more trouble than it's curing.
39377         * lib/regex_internal.h (__mempcpy): Remove.
39378         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
39379         (and make the code a tad smaller to boot).
39380         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
39381
39382 2007-02-02  Jim Meyering  <jim@meyering.net>
39383
39384         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
39385         section, not in the Makefile.am: one.
39386
39387 2007-02-02  Eric Blake  <ebb9@byu.net>
39388
39389         * lib/strchrnul.c: Always include config.h first.
39390
39391         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
39392         gnulib strstr is not necessary here.
39393
39394 2007-02-02  Simon Josefsson  <simon@josefsson.org>
39395
39396         * m4/socklen.m4: Fix typo.
39397
39398 2007-02-02  Eric Blake  <ebb9@byu.net>
39399
39400         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
39401         * modules/netinet_in (Makefile.am): Likewise.
39402
39403 2007-02-01  Bruno Haible  <bruno@clisp.org>
39404
39405         * lib/string_.h (GL_LINK_WARNING): New macro.
39406         (strcasecmp, strstr, strcasestr): If provided by the system,
39407         conditionally define as a macro that leads to a warning instead of to
39408         an error.
39409         (strncasecmp): Conditionally define as a macro that leads to a warning.
39410
39411 2007-02-01  Karl Berry  <karl@gnu.org>
39412
39413         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
39414
39415 2007-02-01  Bruno Haible  <bruno@clisp.org>
39416
39417         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
39418         renamings.
39419
39420 2007-02-01  Eric Blake  <ebb9@byu.net>
39421
39422         * modules/regex (Depends-on): Revert dependence on mempcpy.
39423         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
39424         module's definition of mempcpy.
39425         Reported by Paul Eggert.
39426
39427 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
39428
39429         * lib/string_.h: If the gnulib module XYZ is not present, undefine
39430         the symbol XYZ before redefining it.  This fixes a problem with
39431         programs that don't use XYZ, when compiled on systems that define
39432         XYZ to something else.
39433
39434 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
39435
39436         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
39437         occurs when "mkdir -m foo" creates a setgid directory that is (1)
39438         writeable to group or other and (2) is intended to have a special
39439         mode bit that is set or cleared.  In such a case, the directory
39440         should be neither group- nor other-writeable until the special
39441         mode bits are right.
39442
39443 2007-01-31  Eric Blake  <ebb9@byu.net>
39444
39445         * modules/mountlist (Depends-on): Add strstr.
39446
39447         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
39448         bug.
39449         * modules/string (Makefile.am): Remove redundant replacement.
39450         * modules/regex (Depends-on): Add mempcpy.
39451
39452 2007-01-31  Bruno Haible  <bruno@clisp.org>
39453
39454         New module description field 'Link'.
39455         * gnulib-tool (func_usage): Document --extract-link-directive.
39456         (sed_extract_prog): Recognize 'Link' directive.
39457         (func_get_link_directive): New function.
39458         (func_import): Show summary of link directives.
39459         Handle --extract-link-directive option.
39460         * modules/acl (Link): New section.
39461         * modules/clock-time (Link): New section.
39462         * modules/euidaccess (Link): New section.
39463         * modules/gettext (Link): New section.
39464         * modules/iconv (Link): New section.
39465         * modules/lock (Link): New section.
39466         * modules/nanosleep (Link): New section.
39467         * modules/readline (Link): New section.
39468
39469 2007-01-27  Bruno Haible  <bruno@clisp.org>
39470
39471         Enforce the use of gnulib modules for unportable <string.h> functions.
39472         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
39473         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
39474         (gl_HEADER_STRING_H_BODY): Require it.
39475         * lib/string_.h: If the gnulib module XYZ is not present, redefine
39476         the symbol XYZ to one that gives a link error.
39477         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
39478         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
39479         * modules/mempcpy (configure.ac): Likewise.
39480         * modules/memrchr (configure.ac): Likewise.
39481         * modules/stpcpy (configure.ac): Likewise.
39482         * modules/stpncpy (configure.ac): Likewise.
39483         * modules/strcase (configure.ac): Likewise.
39484         * modules/strcasestr (configure.ac): Likewise.
39485         * modules/strchrnul (configure.ac): Likewise.
39486         * modules/strdup (configure.ac): Likewise.
39487         * modules/strndup (configure.ac): Likewise.
39488         * modules/strnlen (configure.ac): Likewise.
39489         * modules/strpbrk (configure.ac): Likewise.
39490         * modules/strsep (configure.ac): Likewise.
39491         * modules/strstr (configure.ac): Likewise.
39492         * modules/strtok_r (configure.ac): Likewise.
39493
39494 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
39495
39496         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
39497
39498 2007-01-30  Jim Meyering  <jim@meyering.net>
39499
39500         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
39501
39502 2007-01-29  Bruno Haible  <bruno@clisp.org>
39503
39504         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
39505         * lib/execute.c: Likewise.
39506         * lib/pipe.c: Likewise.
39507         * lib/printf-args.h: Likewise.
39508         * lib/printf-args.c: Likewise.
39509         * lib/printf-parse.c: Likewise.
39510         * lib/vasnprintf.c: Likewise.
39511
39512 2007-01-29  Eric Blake  <ebb9@byu.net>
39513
39514         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
39515         declaration.
39516
39517 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
39518
39519         * lib/strptime.h (strptime): Use 'restrict' for args where
39520         POSIX requires this.
39521         * lib/strptime.c (strptime): Likewise.
39522         Change license notice from LGPL to GPL, since gnulib-tool will
39523         change this as needed.
39524         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
39525         defined.
39526         Include "strptime.h" first, to check interface.
39527         Do not #undef _LIBC and _NL_CURRENT.
39528         Do not include <stdlib.h>; no longer needed.
39529         Include "time_r.h" and declare ptime_locale_status
39530         only if _LIBC is not defined.
39531         (__P): Remove unused macro.
39532         (match_string): Bring back glibc version, but use it only if _LIBC
39533         is defined.
39534         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
39535         Remove unnecessary assertion and abort() call.
39536         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
39537         * m4/strptime.m4: Fix serial number comment.
39538         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
39539         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
39540         (Depends-on): Add time_r.
39541
39542 2007-01-29  Bruno Haible  <bruno@clisp.org>
39543
39544         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39545         strptime.
39546         * modules/strptime (Depends-on): Add stdbool.
39547         * lib/strptime.h: Include <time.h> always. Add comments.
39548
39549 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39550
39551         * modules/strptime: New file.
39552         * lib/strptime.h: New file.
39553         * lib/strptime.c: New file.
39554         * m4/strptime.m4: New file.
39555
39556 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
39557
39558         * MODULES.html.sh: New module mpsort.
39559         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
39560
39561         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
39562         a circularity problem with HP-UX ia64 reported by Bob Proulx in
39563         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
39564         All uses changed.
39565         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
39566         All uses changed.
39567         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
39568         to _Restrict_.
39569         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
39570         the parameter matches the prototype.
39571
39572 2007-01-28  Jim Meyering  <jim@meyering.net>
39573
39574         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
39575         sys/time.h here, reverting that part of the previous patch:
39576         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
39577
39578 2007-01-28  Bruno Haible  <bruno@clisp.org>
39579
39580         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
39581         value of $(SYS_TIME_H).
39582         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
39583         remove it conditionally, too. [added by Jim Meyering]
39584         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
39585         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
39586         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
39587         GETTIMEOFDAY_REPLACEMENT to 1.
39588
39589 2007-01-28  Bruno Haible  <bruno@clisp.org>
39590
39591         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
39592         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
39593         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
39594         Set UNISTD_H instead of UNISTD_H2.
39595         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
39596
39597 2007-01-28  Bruno Haible  <bruno@clisp.org>
39598
39599         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
39600         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
39601
39602 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39603
39604         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
39605         (func_create_testdir): Ensure C locale for `grep' and `tr'
39606         character ranges.
39607         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
39608         ACLOCAL_AMFLAGS parsing state machine.
39609
39610 2007-01-27  Bruno Haible  <bruno@clisp.org>
39611
39612         * modules/unistr/base: Update.
39613
39614 2007-01-27  Bruno Haible  <bruno@clisp.org>
39615
39616         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
39617         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
39618         * modules/unistr/u32-mbtouc-unsafe: Renamed from
39619         modules/unistr/u32-mbtouc.
39620         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
39621         * lib/unistr.h: Update.
39622         * lib/linebreak.c: Update.
39623         * modules/unistr/u32-mbtouc: Renamed from
39624         modules/unistr/u32-mbtouc-safe.
39625         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
39626         * lib/unistr.h: Update.
39627         * lib/unistr/u32-to-u8.c: Update.
39628         * lib/unistr/u32-to-u16.c: Update.
39629
39630 2007-01-27  Bruno Haible  <bruno@clisp.org>
39631
39632         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
39633         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
39634         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
39635         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
39636         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
39637         * modules/unistr/u16-mbtouc-unsafe: Renamed from
39638         modules/unistr/u16-mbtouc.
39639         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
39640         * lib/unistr.h: Update.
39641         * lib/linebreak.c: Update.
39642         * modules/linebreak: Update.
39643         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
39644         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
39645         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
39646         * modules/unistr/u16-mbtouc: Renamed from
39647         modules/unistr/u16-mbtouc-safe.
39648         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
39649         * lib/unistr.h: Update.
39650         * lib/unistr/u16-to-u8.c: Update.
39651         * modules/unistr/u16-to-u8: Update.
39652         * lib/unistr/u16-to-u32.c: Update.
39653         * modules/unistr/u16-to-u32: Update.
39654
39655 2007-01-27  Bruno Haible  <bruno@clisp.org>
39656
39657         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
39658         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
39659         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
39660         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
39661         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
39662         * modules/unistr/u8-mbtouc-unsafe: Renamed from
39663         modules/unistr/u8-mbtouc.
39664         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
39665         * lib/unistr.h: Update.
39666         * lib/striconveh.c: Update.
39667         * modules/striconveh: Update.
39668         * lib/linebreak.c: Update.
39669         * modules/linebreak: Update.
39670         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
39671         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
39672         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
39673         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
39674         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
39675         * lib/unistr.h: Update.
39676         * lib/striconveh.c: Update.
39677         * modules/striconveh: Update.
39678         * lib/unistr/u8-to-u16.c: Update.
39679         * modules/unistr/u8-to-u16: Update.
39680         * lib/unistr/u8-to-u32.c: Update.
39681         * modules/unistr/u8-to-u32: Update.
39682
39683 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39684
39685         Sync from Libtool.
39686         * lib/argz.c: Do not include strings.h nor memory.h, include
39687         string.h unconditionally.  Patch by Simon Josefsson.
39688
39689 2007-01-27  Bruno Haible  <bruno@clisp.org>
39690
39691         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
39692         from gl_HEADER_STRING_H_BODY.
39693         (gl_HEADER_STRING_H_BODY): Require it.
39694         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
39695         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
39696         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
39697         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
39698         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
39699         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
39700         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39701         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
39702         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
39703         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
39704         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
39705         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
39706         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
39707         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
39708         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
39709
39710 2007-01-27  Bruno Haible  <bruno@clisp.org>
39711
39712         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
39713         check_PROGRAMS into noinst_PROGRAMS.
39714         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
39715         check_PROGRAMS in this case.
39716         (func_import): Set for_test to false.
39717         (func_create_testdir): Set for_test to true.
39718
39719 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
39720             Bruno Haible  <bruno@clisp.org>
39721
39722         * modules/strcasestr (Files): Remove lib/strcasestr.h.
39723         (Depends-on): Add string.
39724         (Includes): Use <string.h> instead of strcasestr.h.
39725         * modules/string (Makefile.am): Also substitute the value of
39726         REPLACE_STRCASESTR.
39727         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
39728         assume strcasestr is declared in <string.h> not <strings.h>. Also
39729         set REPLACE_STRCASESTR.
39730         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
39731         REPLACE_STRCASESTR.
39732         * lib/strcasestr.h: Remove file.
39733         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
39734         * lib/string_.h (strcasestr): New declaration.
39735
39736 2007-01-27  Bruno Haible  <bruno@clisp.org>
39737
39738         * lib/string_.h: Use 'extern'.
39739
39740 2007-01-27  Jim Meyering  <jim@meyering.net>
39741
39742         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
39743         of set-but-not-used local, "q".
39744
39745         * lib/mempcpy.c: Include <config.h> before <string.h>.
39746         This fixes a compilation error on HP-UX, due to the system's
39747         "restrict"-using mempcpy prototype.
39748
39749 2007-01-26  Bruno Haible  <bruno@clisp.org>
39750
39751         Small optimization.
39752         * lib/javacomp.c: Include c-strstr.h.
39753          (is_envjavac_gcj): Use c_strstr instead of strstr.
39754         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
39755
39756 2007-01-26  Bruno Haible  <bruno@clisp.org>
39757
39758         * MODULES.html.sh (Unicode string functions): Add the new modules.
39759
39760         * modules/uniconv/u32-strconv-to-locale: New file.
39761         * lib/uniconv/u32-strconv-to-locale.c: New file.
39762
39763         * modules/uniconv/u16-strconv-to-locale: New file.
39764         * lib/uniconv/u16-strconv-to-locale.c: New file.
39765
39766         * modules/uniconv/u8-strconv-to-locale: New file.
39767         * lib/uniconv/u8-strconv-to-locale.c: New file.
39768
39769         * modules/uniconv/u32-strconv-from-locale: New file.
39770         * lib/uniconv/u32-strconv-from-locale.c: New file.
39771
39772         * modules/uniconv/u16-strconv-from-locale: New file.
39773         * lib/uniconv/u16-strconv-from-locale.c: New file.
39774
39775         * modules/uniconv/u8-strconv-from-locale: New file.
39776         * lib/uniconv/u8-strconv-from-locale.c: New file.
39777
39778         * modules/uniconv/u32-strconv-to-enc: New file.
39779         * lib/uniconv/u32-strconv-to-enc.c: New file.
39780         * modules/uniconv/u32-strconv-to-enc-tests: New file.
39781         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
39782
39783         * modules/uniconv/u16-strconv-to-enc: New file.
39784         * lib/uniconv/u16-strconv-to-enc.c: New file.
39785         * lib/uniconv/u-strconv-to-enc.h: New file.
39786         * modules/uniconv/u16-strconv-to-enc-tests: New file.
39787         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
39788
39789         * modules/uniconv/u8-strconv-to-enc: New file.
39790         * lib/uniconv/u8-strconv-to-enc.c: New file.
39791         * modules/uniconv/u8-strconv-to-enc-tests: New file.
39792         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
39793
39794         * modules/uniconv/u32-strconv-from-enc: New file.
39795         * lib/uniconv/u32-strconv-from-enc.c: New file.
39796         * modules/uniconv/u32-strconv-from-enc-tests: New file.
39797         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
39798
39799         * modules/uniconv/u16-strconv-from-enc: New file.
39800         * lib/uniconv/u16-strconv-from-enc.c: New file.
39801         * modules/uniconv/u16-strconv-from-enc-tests: New file.
39802         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
39803
39804         * modules/uniconv/u8-strconv-from-enc: New file.
39805         * lib/uniconv/u8-strconv-from-enc.c: New file.
39806         * lib/uniconv/u-strconv-from-enc.h: New file.
39807         * modules/uniconv/u8-strconv-from-enc-tests: New file.
39808         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
39809
39810         * modules/uniconv/u32-conv-from-enc: New file.
39811         * lib/uniconv/u32-conv-from-enc.c: New file.
39812         * modules/uniconv/u32-conv-from-enc-tests: New file.
39813         * tests/uniconv/test-u32-conv-from-enc.c: New file.
39814
39815         * modules/uniconv/u16-conv-from-enc: New file.
39816         * lib/uniconv/u16-conv-from-enc.c: New file.
39817         * lib/uniconv/u-conv-from-enc.h: New file.
39818         * modules/uniconv/u16-conv-from-enc-tests: New file.
39819         * tests/uniconv/test-u16-conv-from-enc.c: New file.
39820
39821         * modules/uniconv/u8-conv-from-enc: New file.
39822         * lib/uniconv/u8-conv-from-enc.c: New file.
39823         * modules/uniconv/u8-conv-from-enc-tests: New file.
39824         * tests/uniconv/test-u8-conv-from-enc.c: New file.
39825
39826         * modules/uniconv/base: New file.
39827         * lib/uniconv.h: New file.
39828
39829 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
39830
39831         * doc/gnulib-tool.texi (Initial import): Update to match current
39832         behavior with strdup module.
39833         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
39834         * lib/memmem.h: Remove; all uses removed.  This is now done
39835         by <string.h>.
39836         * lib/mempcpy.h: Likewise.
39837         * lib/memrchr.h: Likewise.
39838         * lib/stpcpy.h: Likewise.
39839         * lib/stpncpy.h: Likewise.
39840         * lib/strcase.h: Likewise.
39841         * lib/strchrnul.h: Likewise.
39842         * lib/strdup.h: Likewise.
39843         * lib/strndup.h: Likewise.
39844         * lib/strnlen.h: Likewise.
39845         * lib/strpbrk.h: Likewise.
39846         * lib/strsep.h: Likewise.
39847         * lib/strstr.h: Likewise.
39848         * lib/strtok_r.h: Likewise.
39849         * lib/string_.h: New file.
39850         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
39851         Rely on <string.h> instead.
39852         * lib/canon-host.c: Likewise.
39853         * lib/chdir-long.c: Likewise.
39854         * lib/concatpath.c: Likewise.
39855         * lib/exclude.c: Likewise.
39856         * lib/fchdir.c: Likewise.
39857         * lib/getaddrinfo.c: Likewise.
39858         * lib/getcwd.c: Likewise.
39859         * lib/getsubopt.c: Likewise.
39860         * lib/glob.c: Likewise.
39861         * lib/hard-locale.c: Likewise.
39862         * lib/iconvme.c: Likewise.
39863         * lib/javacomp.c: Likewise.
39864         * lib/mempcpy.c: Likewise.
39865         * lib/memrchr.c: Likewise.
39866         * lib/regex_internal.h: Likewise.
39867         * lib/stpncpy.c: Likewise.
39868         * lib/strcasecmp.c: Likewise.
39869         * lib/strchrnul.c: Likewise.
39870         * lib/strdup.c: Likewise.
39871         * lib/striconv.c: Likewise.
39872         * lib/striconveh.c: Likewise.
39873         * lib/striconveha.c: Likewise.
39874         * lib/strncasecmp.c: Likewise.
39875         * lib/strndup.c: Likewise.
39876         * lib/strnlen.c: Likewise.
39877         * lib/strsep.c: Likewise.
39878         * lib/strstr.c: Likewise.
39879         * lib/strtok_r.c: Likewise.
39880         * lib/userspec.c: Likewise.
39881         * lib/w32spawn.h: Likewise.
39882         * lib/xstrndup.c: Likewise.
39883         * lib/mountlist.c (strstr): Remove decl.
39884         * m4/string_h.m4: New file.
39885         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
39886         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
39887         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
39888         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
39889         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
39890         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
39891         Set REPLACE_STRCASECMP if necessary.
39892         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
39893         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
39894         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
39895         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
39896         HAVE_DECL_STRDUP if necessary.
39897         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
39898         since gl_FUNC_STRNDUP does that now.
39899         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
39900         Check for decl here...
39901         (gl_PREREQ_STRNLEN): ... not here.
39902         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
39903         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
39904         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
39905         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
39906         necessary.
39907         * modules/string: New file.
39908         * modules/memmem (Files): Remove special-purpose include file.
39909         (Depends-on): Add string.
39910         (Include): Include <string.h>, not the removed file.
39911         * modules/mempcpy: Likewise.
39912         * modules/memrchr: Likewise.
39913         * modules/stpcpy: Likewise.
39914         * modules/stpncpy: Likewise.
39915         * modules/strcase: Likewise.
39916         * modules/strchrnul: Likewise.
39917         * modules/strdup: Likewise.
39918         * modules/strndup: Likewise.
39919         * modules/strnlen: Likewise.
39920         * modules/strpbrk: Likewise.
39921         * modules/strsep: Likewise.
39922         * modules/strstr: Likewise.
39923         * modules/strtok_r: Likewise.
39924         * tests/test-dirname.c: Don't include "strdup.h", since
39925         <string.h> now suffices.
39926         * tests/test-memmem.c: Don't include "memmem.h", since
39927         <string.h> now suffices.
39928
39929 2007-01-25  Bruno Haible  <bruno@clisp.org>
39930
39931         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
39932         *resultp is 0.
39933
39934         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
39935         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
39936         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
39937         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
39938
39939         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
39940         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
39941         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
39942         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
39943         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
39944         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
39945
39946 2007-01-24  Bruno Haible  <bruno@clisp.org>
39947
39948         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
39949         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
39950         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
39951         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
39952         gl_FUNC_FTS_CORE.
39953         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
39954         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
39955         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
39956         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
39957         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
39958         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
39959         gl_FUNC_FCHOWNAT.
39960         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
39961         gl_FUNC_STRFTIME.
39962         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
39963         Reported by Ralf Wildenhues.
39964
39965 2007-01-24  Bruno Haible  <bruno@clisp.org>
39966
39967         Drop AC_REQUIRE calls that are redundant with the module dependencies.
39968         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
39969         gl_GETADDRINFO.
39970         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
39971         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
39972         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
39973
39974 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
39975
39976         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
39977         Don't use 'exit'; just return from 'main'.
39978         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
39979
39980         * lib/fnmatch_.h: Readjust white space and comments to match
39981         glibc, to avoid spurious diffs.
39982
39983 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
39984
39985         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
39986         2004-12-01 change by Jakub Jelinek, since this code won't compile
39987         if !LIBC.  Problem reported by Bob Proulx.
39988
39989 2007-01-23  Bruno Haible  <bruno@clisp.org>
39990
39991         * lib/striconveh.c: Include c-strcaseeq.h.
39992         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
39993         * modules/striconveh (Depends-on): Add c-strcaseeq.
39994
39995 2007-01-23  Bruno Haible  <bruno@clisp.org>
39996
39997         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
39998
39999         * modules/c-strcaseeq: New file.
40000         * lib/c-strcaseeq.h: New file.
40001
40002         * modules/streq: New file.
40003         * lib/streq.h: New file.
40004
40005 2007-01-23  Bruno Haible  <bruno@clisp.org>
40006
40007         * modules/striconveha-tests: New file.
40008         * tests/test-striconveha.c: New file.
40009
40010         * lib/striconveha.h: Include <stdbool.h>.
40011         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
40012         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
40013         (mem_iconveha_notranslit): Renamed from mem_iconveha.
40014         (mem_iconveha): New function.
40015         (str_iconveha_notranslit): Renamed from str_iconveha.
40016         (str_iconveha): New function.
40017         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
40018         c-strcase.
40019
40020 2007-01-23  Bruno Haible  <bruno@clisp.org>
40021
40022         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
40023         encodings without forgiving before trying any encoding with handler.
40024         (str_iconveha): Try all encodings without forgiving before trying any
40025         encoding with handler.
40026
40027 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
40028
40029         Import the following changes from libc.
40030
40031         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
40032
40033         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
40034
40035         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
40036
40037         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
40038         normal_bracket label.
40039
40040         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
40041
40042         [BZ #361]
40043         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
40044         to normal_bracket after fetching the next character.
40045
40046 2007-01-22  Bruno Haible  <bruno@clisp.org>
40047
40048         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
40049         argument.
40050         * lib/striconveh.c (iconv_carefully_1): New function.
40051         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
40052         argument.
40053         (str_cd_iconveh): Update.
40054         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
40055         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
40056         * tests/test-striconveh.c (MAGIC): New macro.
40057         (new_offsets): New function.
40058         (main): Test call with and without offsets.
40059
40060 2007-01-22  Bruno Haible  <bruno@clisp.org>
40061
40062         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
40063         * modules/sys_select (Makefile.am): Likewise.
40064         * modules/sys_socket (Makefile.am): Likewise.
40065         * modules/sys_time (Makefile.am): Likewise.
40066
40067 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
40068
40069         * modules/gettimeofday (License): Change from GPL to LGPL, since
40070         gettimeofday is a library function.
40071
40072 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40073
40074         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
40075
40076 2007-01-21  Bruno Haible  <bruno@clisp.org>
40077
40078         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
40079
40080 2007-01-21  Bruno Haible  <bruno@clisp.org>
40081
40082         * modules/striconveha: New file.
40083         * lib/striconveha.h: New file.
40084         * lib/striconveha.c: New file.
40085         * MODULES.html.sh (Internationalization functions): Add striconveha.
40086         * lib/striconv.c (str_iconv): Optimize the case of an empty input
40087         string.
40088         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
40089
40090 2007-01-21  Bruno Haible  <bruno@clisp.org>
40091
40092         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
40093         * lib/striconveh.c (str_iconveh): Likewise.
40094
40095 2007-01-21  Bruno Haible  <bruno@clisp.org>
40096
40097         * lib/striconveh.h (mem_iconveh): New declaration.
40098         * lib/striconveh.c (mem_iconveh): New function.
40099         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
40100
40101 2007-01-21  Bruno Haible  <bruno@clisp.org>
40102
40103         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
40104
40105         * lib/striconveh.h (mem_cd_iconveh): Change specification.
40106         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
40107         original result buffer.
40108         (str_cd_iconveh): Update.
40109         * tests/test-striconveh.c (main): Update.
40110
40111         * lib/striconv.h (mem_cd_iconv): Change specification.
40112         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
40113         result buffer.
40114         (str_cd_iconv): Update.
40115         * tests/test-striconv.c (main): Update.
40116
40117 2007-01-21  Bruno Haible  <bruno@clisp.org>
40118
40119         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
40120
40121 2007-01-20  Jim Meyering  <jim@meyering.net>
40122
40123         * lib/userspec.c (parse_with_separator): If a user or group string
40124         starts with "+", skip the corresponding name-to-ID look-up, since
40125         such a look-up must fail: user and group names may not include "+".
40126
40127 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
40128
40129         * lib/poll.c: Include sys/time.h and time.h unconditionally,
40130         since we now assume the sys_time module.
40131         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
40132         check for sys/time.h; no longer needed.
40133         * modules/poll (Depends-on): Depend on sys_time.
40134
40135 2007-01-18  Bruno Haible  <bruno@clisp.org>
40136
40137         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
40138         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
40139
40140         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
40141         gettimeofday.
40142
40143         * tests/test-gettimeofday.c: Include <time.h>.
40144         (dummy): Remove variable.
40145
40146         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
40147         gl_HEADER_SYS_TIME_H.
40148         (gl_HEADER_SYS_TIME_H): New macro.
40149
40150         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
40151         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40152         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
40153         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
40154         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40155         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
40156         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
40157         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40158         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
40159         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
40160         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40161
40162         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
40163         last change; it caused a compilation error when cross-compiling to
40164         Cygwin.
40165
40166 2007-01-18  Jim Meyering  <jim@meyering.net>
40167
40168         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
40169         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
40170         than the race-prone "test -d sys || mkdir sys".
40171         (configure.ac): Use AC_PROG_MKDIR_P.
40172         * modules/sys_select: Likewise.
40173         * modules/sys_socket: Likewise.
40174         * modules/sys_time: Likewise.
40175
40176 2007-01-18  Eric Blake  <ebb9@byu.net>
40177
40178         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
40179         replace gettimeofday.
40180         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
40181         name, to avoid infinite recursion.
40182
40183 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
40184
40185         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
40186         module sys_time.
40187         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
40188         assume timespec.h defines struct timeval.
40189         * lib/settime.c: Likewise.
40190         * lib/utimens.c: Likewise.
40191         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
40192         since we now assume the gettimeofday module.
40193         * lib/tempname.c (__gen_tempname): Likewise.
40194         * lib/gettimeofday.h: Remove.
40195         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
40196         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
40197         Include <time.h>, for 'time()'.
40198         (localtime_buffer_addr): Also use this workaround if
40199         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
40200         to simplify the uses.  All uses changed.
40201         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
40202         that #undef is inside {}, and 'const' follows type name consistently.
40203         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
40204         (gettimeofday): Do not use the maximum possible value for
40205         tv->tv_usec, since that might break usages other than ls.c.
40206         Instead, we'll leave ls.c alone.  This undoes today's patch
40207         by Bruno.  Add a compile-time warning for 1s-clock resolution;
40208         we've never observed the problem but might as well keep the
40209         canary.
40210         * lib/nanosleep.c: Include timespec.h first, for interface check.
40211         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
40212         now assume the sys_time module.
40213         * lib/tempname.c: Likewise.
40214         * lib/timespec.h: Likewise.
40215         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
40216         needed.
40217         * lib/strftime.c: Likewise.
40218         * lib/timespec.h: Likewise.
40219         * lib/posixtm.c: Include posixtm.h first, for interface check.
40220         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
40221         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
40222         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
40223         * lib/sys_time_.h: New file.
40224         * lib/timespec.h (struct timespec): Use long int, not long.
40225         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
40226         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
40227         Remove obsolescent call to AC_HEADER_TIME.
40228         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
40229         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
40230         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
40231         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
40232         Likewise.
40233         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
40234         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
40235         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
40236         into the sys_time module.  Check for gettimeofday just once.
40237         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
40238         for gettimeofday signature to just check the signature.  Merely
40239         compile it, since linking doesn't test signature.  Improve test for
40240         whether gettimeofday.o is actually needed.
40241         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
40242         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
40243         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
40244         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40245         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
40246         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
40247         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
40248         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
40249         than worrying about sys/time.h.
40250         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
40251         Don't bother worrying about TIME_WITH_SYS_TIME.
40252         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
40253         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
40254         * m4/sys_time_h.m4: New file.
40255         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
40256         Don't include sys/time.h.  Return from main rather than exiting.
40257         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
40258         all uses changed.
40259         * modules/gethrxtime (Depends-on): Add sys_time.
40260         * modules/gettime (Depends-on): Likewise.
40261         * modules/gettimeofday (Depends-on): Likewise.
40262         * modules/nanosleep (Depends-on): Likewise.
40263         * modules/settime (Depends-on): Likewise.
40264         * modules/tempname (Depends-on): Likewise.
40265         * modules/utimens (Depends-on): Likewise.
40266         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
40267         (Include:) Change back to <sys/time.h>.
40268         (Maintainer:) Add self.
40269         * modules/sys_time: New file.
40270         * modules/tempname (Depends-on): Add gettimeofday.
40271         * tests/test-gettimeofday.c: Include <sys/time.h>
40272         rather than gettimeofday.h.
40273
40274 2007-01-17  Bruno Haible  <bruno@clisp.org>
40275
40276         * gnulib-tool (func_get_license): Revert last patch. Instead, let
40277         the license default to GPL.
40278         (func_create_testdir): Don't complain if a module is LGPL and its
40279         tests module depends on GPLed modules.
40280
40281 2007-01-17  Bruno Haible  <bruno@clisp.org>
40282
40283         * lib/gettimeofday.c (gettimeofday): Add code for the case
40284         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
40285         maximum possible value for tv->tv_usec, rather than the minimum one.
40286
40287 2005-10-08  Martin Lambers  <marlam@marlam.de>
40288 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
40289 2007-01-16  Bruno Haible  <bruno@clisp.org>
40290
40291         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
40292         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
40293         gl_FUNC_GETTIMEOFDAY.
40294         (Include): Add gettimeofday.h.
40295         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
40296         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
40297         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
40298         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
40299         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
40300         * lib/gettimeofday.h: New file.
40301         * lib/gettimeofday.c: Include <sys/timeb.h>.
40302         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
40303         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40304         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
40305         fall back on time().
40306
40307         * tests/test-gettimeofday.c: New file.
40308         * modules/gettimeofday-tests: New file.
40309
40310 2007-01-16  Eric Blake  <ebb9@byu.net>
40311
40312         * modules/fnmatch (Depends-on): Depend on wchar.
40313         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
40314         * m4/fnmatch.m4: Likewise.
40315         * modules/mbchar (Makefile.am): Assume <wchar.h>.
40316         * m4/mbchar.m4: Likewise.
40317         * modules/mbswidth (Depends-on): Depend on wchar.
40318         * lib/mbswidth.c: Assume <wchar.h>.
40319         * m4/mbswidth.m4: Likewise.
40320         * modules/quotearg (Depends-on): Depend on wchar.
40321         * lib/quotearg.c: Assume <wchar.h>.
40322         * m4/quotearg.m4: Likewise.
40323         * modules/regex (Depends-on): Depend on wchar.
40324         * lib/regex_internal.h: Assume <wchar.h>.
40325         * m4/regex.m4: Likewise.
40326         * modules/stdint (Depends-on): Depend on wchar.
40327         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
40328         * m4/stdint.m4: Likewise.
40329         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
40330         * modules/strftime (Depends-on): Depend on wchar.
40331         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
40332         * modules/strtol (Depends-on): Depend on wchar.
40333         * lib/strtol.c: Assume <wchar.h>.
40334         * modules/wcwidth (Depends-on): Depend on wchar.
40335         * lib/wcwidth.h: Assume <wchar.h>.
40336         * m4/wcwidth.m4: Likewise.
40337
40338 2007-01-16  Bruno Haible  <bruno@clisp.org>
40339
40340         * modules/csharpexec-script: New, created from...
40341         * modules/csharpexec: ... this.
40342
40343 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
40344
40345         * modules/javaexec-script: New, created from...
40346         * modules/javaexec: ... this.
40347
40348 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40349
40350         * modules/poll (Dependencies): Add sys_select.
40351
40352 2007-01-15  Jim Meyering  <jim@meyering.net>
40353
40354         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
40355         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
40356         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
40357         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
40358
40359 2007-01-15  Bruno Haible  <bruno@clisp.org>
40360
40361         * modules/striconveh: New file.
40362         * lib/striconveh.h: New file.
40363         * lib/striconveh.c: New file.
40364         * MODULES.html.sh (Internationalization functions): Add striconveh.
40365
40366         * modules/striconveh-tests: New file.
40367         * tests/test-striconveh.c: New file.
40368
40369 2007-01-15  Bruno Haible  <bruno@clisp.org>
40370
40371         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
40372         not from GNU libiconv or GNU libc.
40373
40374 2007-01-15  Bruno Haible  <bruno@clisp.org>
40375
40376         * doc/gnulib-intro.texi (Copyright): Explain the different license
40377         terms for module descriptions, autoconf macros, tests, documentation.
40378
40379 2007-01-14  Bruno Haible  <bruno@clisp.org>
40380
40381         * modules/striconv-tests: New file.
40382         * tests/test-striconv.c: New file.
40383
40384 2007-01-14  Bruno Haible  <bruno@clisp.org>
40385
40386         * modules/iconv-tests: New file.
40387         * tests/test-iconv.c: New file.
40388
40389 2007-01-14  Bruno Haible  <bruno@clisp.org>
40390
40391         * gnulib-tool (func_get_license): For test modules, use the license of
40392         the main module.
40393
40394 2007-01-14  Bruno Haible  <bruno@clisp.org>
40395
40396         * modules/iconv (Include): Clarify that <iconv.h> can only be included
40397         if iconv is found to exist.
40398
40399 2007-01-14  Bruno Haible  <bruno@clisp.org>
40400
40401         * modules/c-ctype-tests: New file.
40402         * tests/test-c-ctype.c: New file.
40403
40404 2007-01-14  Bruno Haible  <bruno@clisp.org>
40405
40406         * modules/binary-io-tests: New file.
40407         * tests/test-binary-io.sh: New file.
40408         * tests/test-binary-io.c: New file.
40409
40410 2007-01-14  Bruno Haible  <bruno@clisp.org>
40411
40412         * modules/array-oset-tests: New file.
40413         * tests/test-array_oset.c: New file.
40414
40415 2007-01-14  Bruno Haible  <bruno@clisp.org>
40416
40417         * modules/array-list-tests: New file.
40418         * tests/test-array_list.c: New file.
40419
40420 2007-01-14  Bruno Haible  <bruno@clisp.org>
40421
40422         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
40423         and make.
40424         Reported by Simon Josefsson in
40425         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
40426
40427 2007-01-14  Bruno Haible  <bruno@clisp.org>
40428
40429         * modules/allocsa-tests: New file.
40430         * tests/test-allocsa.c: New file.
40431
40432 2007-01-14  Bruno Haible  <bruno@clisp.org>
40433
40434         * modules/fchdir (Depends-on): Add absolute-header.
40435         * modules/unistd (Depends-on): Likewise.
40436
40437 2006-12-30  Bruno Haible  <bruno@clisp.org>
40438
40439         * modules/fchdir: New file.
40440         * modules/unistd (Files): Add lib/unistd_.h.
40441         (Makefile.am): Generate unistd.h from unistd_.h.
40442         * lib/fchdir.c: New file.
40443         * lib/dirent_.h: New file.
40444         * lib/unistd_.h: New file.
40445         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
40446         * m4/fchdir.m4: New file.
40447         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
40448         (gl_HEADER_UNISTD): Invoke it.
40449         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
40450         function.
40451         * lib/backupfile.c (opendir, closedir): Undefine.
40452         * lib/chown.c (open, close): Undefine.
40453         * lib/clean-temp.c (open, close): Undefine.
40454         * lib/copy-file.c (open, close): Undefine.
40455         * lib/execute.c (open, close): Undefine.
40456         * lib/fsusage.c (open, close): Undefine.
40457         * lib/gc-gnulib.c (open, close): Undefine.
40458         * lib/getcwd.c (opendir, closedir): Undefine.
40459         * lib/glob.c (opendir, closedir): Undefine.
40460         * lib/javacomp.c (open, close): Undefine.
40461         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
40462         * lib/openat-proc.c (open, close): Undefine.
40463         * lib/pagealign_alloc.c (open, close): Undefine.
40464         * lib/pipe.c (open, close): Undefine.
40465         * lib/progreloc.c (open, close): Undefine.
40466         * lib/savedir.c (opendir, closedir): Undefine.
40467         * lib/utime.c (open, close): Undefine.
40468         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
40469
40470 2007-01-10  Bruno Haible  <bruno@clisp.org>
40471
40472         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
40473
40474 2007-01-12  Eric Blake  <ebb9@byu.net>
40475
40476         Provide a robust <wchar.h>.  Further simplifications are now
40477         possible in other modules, but not included here.
40478         * modules/wchar: New module.
40479         * m4/wchar.m4: New file.
40480         * lib/wchar_.h: Likewise.
40481         * modules/mbchar (Depends-on): Depend on wchar, as the first use
40482         of the new module.
40483         * MODULES.html.sh (Extended multibyte and wide character utilities):
40484         New section.
40485
40486 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
40487
40488         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
40489         to a reasonable default for memory allocation.
40490         (xreadlink): Don't allocate a huge buffer, to work around a buggy
40491         file system that reports garbage st_size values for symlinks.
40492         Problem reported by Liyang Hu.
40493
40494 2007-01-11  Simon Josefsson  <simon@josefsson.org>
40495
40496         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
40497         Emacs .#* auto-save files).
40498
40499 2007-01-11  Bruno Haible  <bruno@clisp.org>
40500
40501         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
40502         directory.
40503
40504 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
40505
40506         Use @...@ consistently in lib/wctype_.h.
40507         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
40508         on it being set to 1 or 0.
40509         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
40510         go back to AC_SUBSTing it.
40511         * modules/wctype (Makefile.am): Undo previous change.
40512
40513 2007-01-10  Eric Blake  <ebb9@byu.net>
40514
40515         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
40516         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
40517         * modules/wctype (Makefile.am): Likewise.
40518         Reported by Chris McGuire.
40519
40520 2007-01-10  Jim Meyering  <jim@meyering.net>
40521
40522         fts.c: a small readability/maintainability improvement
40523         * lib/fts.c (fts_read): Make this code slightly more readable and
40524         maintainable by hoisting the "sp->fts_cur = p" assignments to
40525         immediately follow the statements that set P.  Derived from
40526         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
40527
40528 2007-01-10  Eric Blake  <ebb9@byu.net>
40529
40530         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
40531         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
40532         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
40533         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
40534         Reported by Chris McGuire.
40535
40536 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40537
40538         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
40539         in sed script.
40540
40541 2007-01-09  Bruno Haible  <bruno@clisp.org>
40542
40543         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
40544         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
40545         variables.
40546         (func_module): Use them.
40547
40548 2007-01-09  Bruno Haible  <bruno@clisp.org>
40549
40550         * modules/unistr/base: New file.
40551         * lib/unistr.h: New file.
40552
40553         * modules/unistr/u8-to-u16: New file.
40554         * lib/unistr/u8-to-u16.c: New file.
40555
40556         * modules/unistr/u8-to-u32: New file.
40557         * lib/unistr/u8-to-u32.c: New file.
40558
40559         * modules/unistr/u16-to-u8: New file.
40560         * lib/unistr/u16-to-u8.c: New file.
40561
40562         * modules/unistr/u16-to-u32: New file.
40563         * lib/unistr/u16-to-u32.c: New file.
40564
40565         * modules/unistr/u32-to-u8: New file.
40566         * lib/unistr/u32-to-u8.c: New file.
40567
40568         * modules/unistr/u32-to-u16: New file.
40569         * lib/unistr/u32-to-u16.c: New file.
40570
40571         * modules/unistr/u8-check: New file.
40572         * modules/unistr/u16-check: New file.
40573         * modules/unistr/u32-check: New file.
40574         * lib/unistr/u8-check.c: New file.
40575         * lib/unistr/u16-check.c: New file.
40576         * lib/unistr/u32-check.c: New file.
40577
40578         * modules/unistr/u8-chr: New file.
40579         * modules/unistr/u16-chr: New file.
40580         * modules/unistr/u32-chr: New file.
40581         * lib/unistr/u8-chr.c: New file.
40582         * lib/unistr/u16-chr.c: New file.
40583         * lib/unistr/u32-chr.c: New file.
40584
40585         * modules/unistr/u8-cmp: New file.
40586         * modules/unistr/u16-cmp: New file.
40587         * modules/unistr/u32-cmp: New file.
40588         * lib/unistr/u8-cmp.c: New file.
40589         * lib/unistr/u16-cmp.c: New file.
40590         * lib/unistr/u32-cmp.c: New file.
40591
40592         * modules/unistr/u8-cpy: New file.
40593         * modules/unistr/u16-cpy: New file.
40594         * modules/unistr/u32-cpy: New file.
40595         * lib/unistr/u8-cpy.c: New file.
40596         * lib/unistr/u16-cpy.c: New file.
40597         * lib/unistr/u32-cpy.c: New file.
40598         * lib/unistr/u-cpy.h: New file.
40599
40600         * modules/unistr/u8-cpy-alloc: New file.
40601         * modules/unistr/u16-cpy-alloc: New file.
40602         * modules/unistr/u32-cpy-alloc: New file.
40603         * lib/unistr/u8-cpy-alloc.c: New file.
40604         * lib/unistr/u16-cpy-alloc.c: New file.
40605         * lib/unistr/u32-cpy-alloc.c: New file.
40606         * lib/unistr/u-cpy-alloc.h: New file.
40607
40608         * modules/unistr/u8-endswith: New file.
40609         * modules/unistr/u16-endswith: New file.
40610         * modules/unistr/u32-endswith: New file.
40611         * lib/unistr/u8-endswith.c: New file.
40612         * lib/unistr/u16-endswith.c: New file.
40613         * lib/unistr/u32-endswith.c: New file.
40614         * lib/unistr/u-endswith.h: New file.
40615
40616         * modules/unistr/u8-mblen: New file.
40617         * modules/unistr/u16-mblen: New file.
40618         * modules/unistr/u32-mblen: New file.
40619         * lib/unistr/u8-mblen.c: New file.
40620         * lib/unistr/u16-mblen.c: New file.
40621         * lib/unistr/u32-mblen.c: New file.
40622
40623         * modules/unistr/u8-mbtouc: New file.
40624         * modules/unistr/u16-mbtouc: New file.
40625         * modules/unistr/u32-mbtouc: New file.
40626         * lib/unistr/u8-mbtouc.c: New file.
40627         * lib/unistr/u16-mbtouc.c: New file.
40628         * lib/unistr/u32-mbtouc.c: New file.
40629
40630         * modules/unistr/u8-mbtouc-safe: New file.
40631         * modules/unistr/u16-mbtouc-safe: New file.
40632         * modules/unistr/u32-mbtouc-safe: New file.
40633         * lib/unistr/u8-mbtouc-safe.c: New file.
40634         * lib/unistr/u16-mbtouc-safe.c: New file.
40635         * lib/unistr/u32-mbtouc-safe.c: New file.
40636
40637         * modules/unistr/u8-move: New file.
40638         * modules/unistr/u16-move: New file.
40639         * modules/unistr/u32-move: New file.
40640         * lib/unistr/u8-move.c: New file.
40641         * lib/unistr/u16-move.c: New file.
40642         * lib/unistr/u32-move.c: New file.
40643         * lib/unistr/u-move.h: New file.
40644
40645         * modules/unistr/u8-next: New file.
40646         * modules/unistr/u16-next: New file.
40647         * modules/unistr/u32-next: New file.
40648         * lib/unistr/u8-next.c: New file.
40649         * lib/unistr/u16-next.c: New file.
40650         * lib/unistr/u32-next.c: New file.
40651
40652         * modules/unistr/u8-prev: New file.
40653         * modules/unistr/u16-prev: New file.
40654         * modules/unistr/u32-prev: New file.
40655         * lib/unistr/u8-prev.c: New file.
40656         * lib/unistr/u16-prev.c: New file.
40657         * lib/unistr/u32-prev.c: New file.
40658
40659         * modules/unistr/u8-set: New file.
40660         * modules/unistr/u16-set: New file.
40661         * modules/unistr/u32-set: New file.
40662         * lib/unistr/u8-set.c: New file.
40663         * lib/unistr/u16-set.c: New file.
40664         * lib/unistr/u32-set.c: New file.
40665         * lib/unistr/u-set.h: New file.
40666
40667         * modules/unistr/u8-startswith: New file.
40668         * modules/unistr/u16-startswith: New file.
40669         * modules/unistr/u32-startswith: New file.
40670         * lib/unistr/u8-startswith.c: New file.
40671         * lib/unistr/u16-startswith.c: New file.
40672         * lib/unistr/u32-startswith.c: New file.
40673         * lib/unistr/u-startswith.h: New file.
40674
40675         * modules/unistr/u8-stpcpy: New file.
40676         * modules/unistr/u16-stpcpy: New file.
40677         * modules/unistr/u32-stpcpy: New file.
40678         * lib/unistr/u8-stpcpy.c: New file.
40679         * lib/unistr/u16-stpcpy.c: New file.
40680         * lib/unistr/u32-stpcpy.c: New file.
40681         * lib/unistr/u-stpcpy.h: New file.
40682
40683         * modules/unistr/u8-stpncpy: New file.
40684         * modules/unistr/u16-stpncpy: New file.
40685         * modules/unistr/u32-stpncpy: New file.
40686         * lib/unistr/u8-stpncpy.c: New file.
40687         * lib/unistr/u16-stpncpy.c: New file.
40688         * lib/unistr/u32-stpncpy.c: New file.
40689         * lib/unistr/u-stpncpy.h: New file.
40690
40691         * modules/unistr/u8-strcat: New file.
40692         * modules/unistr/u16-strcat: New file.
40693         * modules/unistr/u32-strcat: New file.
40694         * lib/unistr/u8-strcat.c: New file.
40695         * lib/unistr/u16-strcat.c: New file.
40696         * lib/unistr/u32-strcat.c: New file.
40697         * lib/unistr/u-strcat.h: New file.
40698
40699         * modules/unistr/u8-strchr: New file.
40700         * modules/unistr/u16-strchr: New file.
40701         * modules/unistr/u32-strchr: New file.
40702         * lib/unistr/u8-strchr.c: New file.
40703         * lib/unistr/u16-strchr.c: New file.
40704         * lib/unistr/u32-strchr.c: New file.
40705
40706         * modules/unistr/u8-strcmp: New file.
40707         * modules/unistr/u16-strcmp: New file.
40708         * modules/unistr/u32-strcmp: New file.
40709         * lib/unistr/u8-strcmp.c: New file.
40710         * lib/unistr/u16-strcmp.c: New file.
40711         * lib/unistr/u32-strcmp.c: New file.
40712
40713         * modules/unistr/u8-strcpy: New file.
40714         * modules/unistr/u16-strcpy: New file.
40715         * modules/unistr/u32-strcpy: New file.
40716         * lib/unistr/u8-strcpy.c: New file.
40717         * lib/unistr/u16-strcpy.c: New file.
40718         * lib/unistr/u32-strcpy.c: New file.
40719         * lib/unistr/u-strcpy.h: New file.
40720
40721         * modules/unistr/u8-strcspn: New file.
40722         * modules/unistr/u16-strcspn: New file.
40723         * modules/unistr/u32-strcspn: New file.
40724         * lib/unistr/u8-strcspn.c: New file.
40725         * lib/unistr/u16-strcspn.c: New file.
40726         * lib/unistr/u32-strcspn.c: New file.
40727         * lib/unistr/u-strcspn.h: New file.
40728
40729         * modules/unistr/u8-strdup: New file.
40730         * modules/unistr/u16-strdup: New file.
40731         * modules/unistr/u32-strdup: New file.
40732         * lib/unistr/u8-strdup.c: New file.
40733         * lib/unistr/u16-strdup.c: New file.
40734         * lib/unistr/u32-strdup.c: New file.
40735         * lib/unistr/u-strdup.h: New file.
40736
40737         * modules/unistr/u8-strlen: New file.
40738         * modules/unistr/u16-strlen: New file.
40739         * modules/unistr/u32-strlen: New file.
40740         * lib/unistr/u8-strlen.c: New file.
40741         * lib/unistr/u16-strlen.c: New file.
40742         * lib/unistr/u32-strlen.c: New file.
40743         * lib/unistr/u-strlen.h: New file.
40744
40745         * modules/unistr/u8-strmblen: New file.
40746         * modules/unistr/u16-strmblen: New file.
40747         * modules/unistr/u32-strmblen: New file.
40748         * lib/unistr/u8-strmblen.c: New file.
40749         * lib/unistr/u16-strmblen.c: New file.
40750         * lib/unistr/u32-strmblen.c: New file.
40751
40752         * modules/unistr/u8-strmbtouc: New file.
40753         * modules/unistr/u16-strmbtouc: New file.
40754         * modules/unistr/u32-strmbtouc: New file.
40755         * lib/unistr/u8-strmbtouc.c: New file.
40756         * lib/unistr/u16-strmbtouc.c: New file.
40757         * lib/unistr/u32-strmbtouc.c: New file.
40758
40759         * modules/unistr/u8-strncat: New file.
40760         * modules/unistr/u16-strncat: New file.
40761         * modules/unistr/u32-strncat: New file.
40762         * lib/unistr/u8-strncat.c: New file.
40763         * lib/unistr/u16-strncat.c: New file.
40764         * lib/unistr/u32-strncat.c: New file.
40765         * lib/unistr/u-strncat.h: New file.
40766
40767         * modules/unistr/u8-strncmp: New file.
40768         * modules/unistr/u16-strncmp: New file.
40769         * modules/unistr/u32-strncmp: New file.
40770         * lib/unistr/u8-strncmp.c: New file.
40771         * lib/unistr/u16-strncmp.c: New file.
40772         * lib/unistr/u32-strncmp.c: New file.
40773
40774         * modules/unistr/u8-strncpy: New file.
40775         * modules/unistr/u16-strncpy: New file.
40776         * modules/unistr/u32-strncpy: New file.
40777         * lib/unistr/u8-strncpy.c: New file.
40778         * lib/unistr/u16-strncpy.c: New file.
40779         * lib/unistr/u32-strncpy.c: New file.
40780         * lib/unistr/u-strncpy.h: New file.
40781
40782         * modules/unistr/u8-strnlen: New file.
40783         * modules/unistr/u16-strnlen: New file.
40784         * modules/unistr/u32-strnlen: New file.
40785         * lib/unistr/u8-strnlen.c: New file.
40786         * lib/unistr/u16-strnlen.c: New file.
40787         * lib/unistr/u32-strnlen.c: New file.
40788         * lib/unistr/u-strnlen.h: New file.
40789
40790         * modules/unistr/u8-strpbrk: New file.
40791         * modules/unistr/u16-strpbrk: New file.
40792         * modules/unistr/u32-strpbrk: New file.
40793         * lib/unistr/u8-strpbrk.c: New file.
40794         * lib/unistr/u16-strpbrk.c: New file.
40795         * lib/unistr/u32-strpbrk.c: New file.
40796         * lib/unistr/u-strpbrk.h: New file.
40797
40798         * modules/unistr/u8-strrchr: New file.
40799         * modules/unistr/u16-strrchr: New file.
40800         * modules/unistr/u32-strrchr: New file.
40801         * lib/unistr/u8-strrchr.c: New file.
40802         * lib/unistr/u16-strrchr.c: New file.
40803         * lib/unistr/u32-strrchr.c: New file.
40804
40805         * modules/unistr/u8-strspn: New file.
40806         * modules/unistr/u16-strspn: New file.
40807         * modules/unistr/u32-strspn: New file.
40808         * lib/unistr/u8-strspn.c: New file.
40809         * lib/unistr/u16-strspn.c: New file.
40810         * lib/unistr/u32-strspn.c: New file.
40811         * lib/unistr/u-strspn.h: New file.
40812
40813         * modules/unistr/u8-strstr: New file.
40814         * modules/unistr/u16-strstr: New file.
40815         * modules/unistr/u32-strstr: New file.
40816         * lib/unistr/u8-strstr.c: New file.
40817         * lib/unistr/u16-strstr.c: New file.
40818         * lib/unistr/u32-strstr.c: New file.
40819         * lib/unistr/u-strstr.h: New file.
40820
40821         * modules/unistr/u8-strtok: New file.
40822         * modules/unistr/u16-strtok: New file.
40823         * modules/unistr/u32-strtok: New file.
40824         * lib/unistr/u8-strtok.c: New file.
40825         * lib/unistr/u16-strtok.c: New file.
40826         * lib/unistr/u32-strtok.c: New file.
40827         * lib/unistr/u-strtok.h: New file.
40828
40829         * modules/unistr/u8-uctomb: New file.
40830         * modules/unistr/u16-uctomb: New file.
40831         * modules/unistr/u32-uctomb: New file.
40832         * lib/unistr/u8-uctomb.c: New file.
40833         * lib/unistr/u16-uctomb.c: New file.
40834         * lib/unistr/u32-uctomb.c: New file.
40835
40836         * MODULES.html.sh (Unicode string functions): Add the new modules.
40837
40838 2007-01-08  Bruno Haible  <bruno@clisp.org>
40839
40840         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
40841         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
40842         subdirectories.
40843
40844 2007-01-08  Karl Berry  <karl@gnu.org>
40845
40846         * doc/error.texi: mention that main() fns must set program_name
40847         when progname is used.
40848
40849 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
40850
40851         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
40852         WCTYPE_H is empty, for the benefit of builds from non-distclean
40853         directories.  Problem reported by Eric Blake in
40854         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
40855
40856 2007-01-08  Bruno Haible  <bruno@clisp.org>
40857
40858         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
40859         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
40860         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
40861         PROVIDE_CANONICALIZE_FILENAME_MODE.
40862         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
40863
40864 2007-01-08  Bruno Haible  <bruno@clisp.org>
40865
40866         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
40867         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
40868         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
40869         * lib/fts.c: Likewise.
40870         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
40871
40872 2006-12-25  Bruno Haible  <bruno@clisp.org>
40873
40874         * modules/utf8-ucs4-safe: New file.
40875         * lib/utf8-ucs4-safe.h: New file.
40876         * lib/unistr/utf8-ucs4-safe.c: New file.
40877
40878         * modules/utf16-ucs4-safe: New file.
40879         * lib/utf16-ucs4-safe.h: New file.
40880         * lib/unistr/utf16-ucs4-safe.c: New file.
40881
40882         * MODULES.html.sh (Unicode string functions): Add the new modules.
40883
40884 2007-01-08  Bruno Haible  <bruno@clisp.org>
40885
40886         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
40887         (Depends-on): Add unitypes.
40888         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
40889         (u8_mbtouc_aux): Move out to separate file.
40890         (u8_mbtouc): Use ucs4_t, uint8_t types.
40891         * lib/unistr/utf8-ucs4.c: New file.
40892
40893         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
40894         (Depends-on): Add unitypes.
40895         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
40896         (u16_mbtouc_aux): Move out to separate file.
40897         (u16_mbtouc): Use ucs4_t, uint16_t types.
40898         * lib/unistr/utf16-ucs4.c: New file.
40899
40900         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
40901         (Depends-on): Add unitypes.
40902         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
40903         (u8_uctomb_aux): Move out to separate file.
40904         (u8_uctomb): Use ucs4_t, uint8_t types.
40905         * lib/unistr/ucs4-utf8.c: New file.
40906
40907         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
40908         (Depends-on): Add unitypes.
40909         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
40910         (u16_uctomb_aux): Move out to separate file.
40911         (u16_uctomb): Use ucs4_t, uint16_t types.
40912         * lib/unistr/ucs4-utf16.c: New file.
40913
40914 2006-12-25  Bruno Haible  <bruno@clisp.org>
40915
40916         * modules/unitypes: New file.
40917         * lib/unitypes.h: New file.
40918         * MODULES.html.sh (func_all_modules): New section "Unicode string
40919         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
40920         this section. Add unitypes.
40921
40922 2007-01-08  Bruno Haible  <bruno@clisp.org>
40923
40924         Avoid variable names that conflict with those from libtool.
40925         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
40926         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
40927         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
40928         library_names_spec to acl_library_names_spec, hardcode_* to
40929         acl_hardcode_*.
40930         Reported by Ralf Wildenhues.
40931
40932 2007-01-08  Bruno Haible  <bruno@clisp.org>
40933
40934         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
40935         definition.
40936         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
40937         definition.
40938         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
40939         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
40940         definition.
40941         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
40942         definition.
40943         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
40944         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
40945         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
40946         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
40947         definition.
40948         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
40949         definition.
40950         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
40951         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
40952         GC_USE_<algorithm>.
40953         * lib/gc-libgcrypt.c: Likewise.
40954         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
40955         * modules/gc-arctwo (configure.ac): Likewise.
40956         * modules/gc-des (configure.ac): Likewise.
40957         * modules/gc-hmac-md5 (configure.ac): Likewise.
40958         * modules/gc-hmac-sha1 (configure.ac): Likewise.
40959         * modules/gc-md2 (configure.ac): Likewise.
40960         * modules/gc-md4 (configure.ac): Likewise.
40961         * modules/gc-md5 (configure.ac): Likewise.
40962         * modules/gc-random (configure.ac): Likewise.
40963         * modules/gc-rijndael (configure.ac): Likewise.
40964         * modules/gc-sha1 (configure.ac): Likewise.
40965
40966 2007-01-08  Bruno Haible  <bruno@clisp.org>
40967
40968         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
40969         macro definition.
40970         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
40971         definition.
40972         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
40973         definition.
40974         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
40975         * modules/fcntl-safer (configure.ac): Likewise.
40976         * modules/fopen-safer (configure.ac): Likewise.
40977         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
40978         GNULIB_FWRITEERROR macro definition.
40979
40980 2007-01-08  Bruno Haible  <bruno@clisp.org>
40981
40982         * m4/gnulib-common.m4: New file.
40983         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
40984         (func_get_filelist): Add m4/gnulib-common.m4.
40985
40986 2007-01-08  Bruno Haible  <bruno@clisp.org>
40987
40988         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
40989         command.
40990
40991 2007-01-08  Jim Meyering  <jim@meyering.net>
40992
40993         Use a more robust test for a "can't happen" condition.
40994         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
40995         narrowed the st_size value.  Presuming the "can't happen" condition
40996         is true, that narrowing could conceivably convert an invalid st_size
40997         value into a valid one.  Instead, use a change based on Matthew
40998         Woehlke's original patch.
40999
41000         Slight readability improvement: use an assert-like macro
41001         in place of literal "abort ()" uses.
41002         * lib/fts.c (fts_assert): Define.
41003         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
41004         Use this macro instead of a bare 'abort'.
41005
41006 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
41007
41008         Don't worry about using IRIX 5.3's wctype.h broken definitions;
41009         simply work around them.
41010         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
41011         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
41012         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
41013         declaring.
41014         Don't bother to define as macros, since the standard doesn't require it.
41015         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
41016         longer worry about IRIX 5.3.
41017         (HAVE_WCTYPE_CTMP_BUG): Remove.
41018
41019 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
41020
41021         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
41022         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
41023         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
41024         Problems reported by Georg Schwarz for IRIX 5.3.
41025
41026         * gnulib-tool (autoconf_minversion): Take the maximum version number
41027         found, not the minimum.  Problem reported by James Youngman.
41028
41029 2007-01-03  Karl Berry  <karl@gnu.org>
41030
41031         * doc/error.texi: new file, explaining interaction with progname.
41032         * doc/gnulib.texi: include it.  Update copyright.
41033
41034 2007-01-03  Simon Josefsson  <simon@josefsson.org>
41035
41036         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
41037         AC_CANONICAL_HOST, to improve autobuild outputs.
41038
41039 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
41040             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
41041
41042         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
41043         sockets, server sockets, and other file descriptors.  Count errors
41044         to compute the return value.  Reorder the code a bit to be easier
41045         to follow.  Don't set event bits that were not requested (except
41046         POLLERR and POLLHUP).
41047
41048 2007-01-01  Bruno Haible  <bruno@clisp.org>
41049
41050         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
41051
41052 2007-01-03  Jim Meyering  <jim@meyering.net>
41053
41054         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
41055
41056 2007-01-02  Bruno Haible  <bruno@clisp.org>
41057
41058         * modules/settime (Include): Require timespec.h.
41059         * modules/nanosleep (Include): Likewise.
41060
41061 2007-01-01  Bruno Haible  <bruno@clisp.org>
41062
41063         * gnulib-tool (func_emit_copyright_notice): Bump year.
41064         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
41065
41066 2007-01-01  Bruno Haible  <bruno@clisp.org>
41067
41068         Improve support for OpenBSD.
41069         * build-aux/config.rpath (libname_spec): Export.
41070         (library_names_spec): New variable. Export.
41071         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
41072         library_names_spec from the config.rpath output. Locate shared library
41073         through the name pattern in library_names_spec.
41074
41075 2007-01-01  Eric Blake  <ebb9@byu.net>
41076
41077         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
41078
41079 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
41080
41081         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
41082         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
41083         assume the C locale, and avoid an "eval" that could cause trouble.
41084         Problem with SORT reported by Bob Proulx.
41085
41086         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
41087         Define.  Trivial patch from Henning Nielsen Lund, originally
41088         sent to bug-grep@gnu.org today.
41089
41090 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
41091
41092         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
41093         struct stat.  Problem reported by Henning Nielsen Lund.
41094         * lib/acl.c: Include acl.h first, to check interface.  Don't
41095         bother to include sys/types.h and sys/stat.h again.
41096
41097 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
41098
41099         Import the following change from libc; problem reported by
41100         Sven Verdoolaege.
41101
41102         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
41103
41104         [BZ #1373]
41105         * lib/argp.h: Remove __NTH for __argp_usage inline function.
41106
41107 2006-12-28  Jim Meyering  <jim@meyering.net>
41108
41109         * build-aux/announce-gen: Do not assume that the package
41110         builds any of tar.gz, tar.bz2, and .xdelta files.
41111         Suggestion from Simon Josefsson.
41112
41113 2006-12-28  Simon Josefsson  <simon@josefsson.org>
41114
41115         * modules/announce-gen: New file.
41116
41117 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
41118
41119         * lib/mbchar.h: Just include <wctype.h>; the wctype module
41120         handles its gotchas now.
41121         * lib/mbswidth.c: Likewise.
41122         * lib/wcwidth.h: Likewise.
41123         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
41124         and iswcntrl; the wctype module does this stuff now.
41125         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
41126         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
41127         * modules/mbchar (Depends-on): Add wctype.
41128         * modules/mbswidth (Depends-on): Likewise.
41129         * modules/wcwidth (Depends-on): Likewise.
41130
41131 2006-12-27  Eric Blake  <ebb9@byu.net>
41132
41133         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
41134         module uses more than what <wctype.h> is required to provide.
41135
41136 2006-12-26  Eric Blake  <ebb9@byu.net>
41137
41138         * gnulib-tool (sed_extract_prog): Avoid space-tab.
41139
41140 2006-12-26  Eric Blake  <ebb9@byu.net>
41141
41142         * modules/absolute-header: New module.
41143         * modules/fcntl (Depends-on): Depend on it.
41144         * modules/inttypes (Depends-on): Likewise.
41145         * modules/stdint (Depends-on): Likewise.
41146         * modules/sys_stat (Depends-on): Likewise.
41147         * modules/wctype (Depends-on): Likewise.
41148         * MODULES.html.sh (Support for building libraries and
41149         executables): Document it.
41150
41151 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
41152
41153         * gnulib-tool (SED): Remove, undoing previous change.
41154         The problem was that it broke coreutils on Solaris, because
41155         "sed --posix" leaked into a makefile.
41156         (sed): New alias, if 'alias' and GNU sed.
41157
41158 2006-12-24  Jim Meyering  <jim@meyering.net>
41159
41160         Work around an fchownat bug in glibc-2.4:
41161         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
41162         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
41163         in spite of the -P option.
41164         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
41165         New macros.
41166         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
41167         * modules/openat (Files): Add lib/fchownat.c.
41168         * lib/openat.c (fchownat): Don't define here.  Move to...
41169         * lib/fchownat.c: ...this new file.
41170
41171 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
41172
41173         Fix bug reported by Bruno Haible in
41174         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
41175         where quotearg.c didn't compile on Mac OS X 10.2 because it
41176         lacks <wchar.h> and wint_t.
41177         * lib/wctype_.h (__wctype_wint_t): New type.
41178         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
41179         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
41180         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
41181         Arg is now of type __wctype_wint_t, not wint_t.
41182         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
41183         substitute HAVE_WINT_T.
41184         * modules/wctype (Files): Add m4/wint_t.m4.
41185         (wctype.h): Substitute HAVE_WINT_T.
41186
41187 2006-12-23  Bruno Haible  <bruno@clisp.org>
41188
41189         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
41190
41191 2006-12-23  Bruno Haible  <bruno@clisp.org>
41192
41193         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
41194         S_ISLNK.
41195         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
41196         mingw.
41197
41198 2006-12-22  Bruno Haible  <bruno@clisp.org>
41199
41200         * lib/copy-file.c: Include acl.h.
41201         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
41202         Close the file descriptors only after being done with copy_acl.
41203         * modules/copy-file (Depends-on): Add acl.
41204
41205 2006-12-22  Bruno Haible  <bruno@clisp.org>
41206
41207         * gnulib-tool (SED): New variable.
41208         Use $SED instead of sed everywhere.
41209
41210 2006-12-22  Bruno Haible  <bruno@clisp.org>
41211
41212         * modules/no-c++: New file.
41213         * m4/no-c++.m4: New file.
41214         * MODULES.html.sh (Support for building libraries and executables):
41215         Add no-c++.
41216
41217 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
41218
41219         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
41220         Include <limits.h>, and use its INT_MAX to rewrite the
41221         j loop so that it does not overflow 'int'.  Problem reported by
41222         Ralf Wildenhues in
41223         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
41224         Play it safe by shifting left by 1 rather than multiplying by 2,
41225         as GCC is less likely to optimize this away when the value
41226         is signed (when it assumes overflow leads to undefined behavior).
41227         Also, don't assume time_t uses two's complement.
41228
41229 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
41230
41231         * MODULES.html.sh: New module wctype.
41232         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
41233         * lib/fnmatch.c: Don't bother to include <wchar.h> before
41234         <wctype.h>, since the new wctype module should fix this.
41235         * lib/quotearg.c: Include <wctype.h> unconditionally, since
41236         the wctype module should arrange for it.
41237         * lib/regex_internal.h: Likewise.
41238         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
41239         since the wctype module should handle this now.
41240         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
41241         * modules/fnmatch (Depends-on): Add wctype.
41242         * modules/quotearg (Depends-on): Likewise.
41243         * modules/regex (Depends-on): Likewise.
41244
41245 2006-12-19  Bruno Haible  <bruno@clisp.org>
41246
41247         * lib/strdup.h [C++]: Wrap definitions in extern "C".
41248         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
41249
41250 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41251
41252         * modules/savewd (Depends-on): Fix dependency on fcntl.
41253
41254 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
41255
41256         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
41257         conforms to C99, rather than relying on the user's environment
41258         setting of STDINT_H.
41259
41260 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
41261         and Eric Blake  <ebb9@byu.net>
41262
41263         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
41264         This is more consistent with the other defines here.
41265         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
41266         Port to z/OS.  Problem reported by Paul Gilmartin.
41267         Change local vars to use gl_ prefix rather than ac_.
41268         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
41269         with other defines.
41270         * modules/double-slash-root: New module.
41271         * modules/dirname (Files): Remove m4/double-slash-root.m4.
41272         (Depends-on): Add double-slash-root.
41273         * MODULES.html.sh (File system functions): Mention new module.
41274
41275 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
41276
41277         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
41278         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
41279         This is for the benefit of gzip, which doesn't do i18n.
41280
41281 2006-12-12  Jim Meyering  <jim@meyering.net>
41282
41283         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
41284         Reported by Andreas Schwab <schwab@suse.de>.
41285
41286 2006-12-12  Bruno Haible  <bruno@clisp.org>
41287
41288         Merge these changes.
41289         2006-09-05  Bruno Haible  <bruno@clisp.org>
41290         * lib/iconvme.c (iconv_string): No need to save and restore errno when
41291         iconv_alloc succeeded.
41292         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
41293         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
41294         test for " && dest " at the end - dest is always != NULL there. Call
41295         iconv with 4xNULL arguments initially, to reset the state. Call iconv
41296         with 2xNULL arguments, also to flush the state storage. Handle the
41297         IRIX iconv behaviour. Realloc the final result, to throw away unused
41298         memory.
41299
41300 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
41301
41302         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
41303         and fchmodat unconditionally, since glibc 2.4 has them.
41304         Problem reported by Arkadiusz Miskiewicz.
41305
41306 2006-12-10  Bruno Haible  <bruno@clisp.org>
41307
41308         * gnulib-tool (func_import): Show the include files only for those
41309         modules that are copied and specified.
41310         Reported by Karl Berry.
41311
41312 2006-12-08  Jim Meyering  <jim@meyering.net>
41313
41314         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
41315         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
41316
41317         * build-aux/announce-gen: Add two new options, both optional:
41318         --bootstrap-tools=TOOL_LIST
41319               a comma-separated list of tools, e.g.,
41320               autoconf,automake,bison,gnulib
41321         --gnulib-snapshot-date=DATE
41322               if gnulib is in the bootstrap tool list,
41323               then report this as the snapshot date.
41324               If not specified, use the current date/time.
41325               If you specify a date here, be sure it's UTC.
41326
41327 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41328
41329         * tests/test-argp-2.sh: Fix test to match actual output.
41330         (func_compare): Fix sed script to be portable.
41331
41332 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
41333
41334         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
41335         workaround for this case.  It is not autoconfigured now; offhand
41336         it's hard to see how to autoconfigure it.
41337
41338 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
41339
41340         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
41341         a directory that is about to be chowned.  Such a directory's
41342         initial file permissions should permit the owner only and this
41343         should not be changed until after the chown, since the group and
41344         other bits would be incorrect if they granted permission before
41345         the chown.
41346
41347         Fix porting problem for iswctype reported by Georg Schwarz in:
41348         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
41349         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
41350         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
41351         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
41352         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
41353
41354 2006-12-03  Jim Meyering  <jim@meyering.net>
41355
41356         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
41357         p->fts_statp may not yet be defined.
41358         (fts_read): Instead, set it in the caller, once p->fts_statp is
41359         sure to be defined, and corresponds to a top-level directory.
41360         This bug made du -x fail.  Here's the coreutils test case:
41361         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
41362         Reported by Mike Frysinger.
41363
41364 2006-12-01  Jim Meyering  <jim@meyering.net>
41365
41366         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
41367         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
41368         Reported by Simon Josefsson.
41369
41370 2006-11-30  Jim Meyering  <jim@meyering.net>
41371
41372         * m4/warning.m4: Use the all-permissive copyright notice
41373         recommended by RMS (rather than LGPL).
41374         * m4/vararrays.m4: Likewise.
41375         * m4/flexmember.m4: Likewise.
41376
41377 2006-11-29  Bruno Haible  <bruno@clisp.org>
41378
41379         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
41380         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
41381         using +=.
41382         Reported by Simon Josefsson <simon@josefsson.org>.
41383
41384 2006-11-28  James Youngman <jay@gnu.org>
41385
41386         * README: Advise users that they might find the bug-gnulib@gnu.org
41387         and autotools-announce@gnu.org mailing lists useful.
41388
41389 2006-11-28  Bruno Haible  <bruno@clisp.org>
41390
41391         * m4/ptrdiff_max.m4: Remove file.
41392
41393 2006-11-21  Bruno Haible  <bruno@clisp.org>
41394
41395         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
41396         _AC_COMPUTE_INT.
41397         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
41398         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
41399         _AC_COMPUTE_INT.
41400         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
41401         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
41402         _AC_COMPUTE_INT.
41403         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
41404
41405 2006-11-28  Jim Meyering  <jim@meyering.net>
41406
41407         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
41408         warning from "gcc -Wshadow" about shadowing the builtin.
41409
41410 2006-11-27  Bruno Haible  <bruno@clisp.org>
41411
41412         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
41413         _AC_COMPUTE_INT.
41414         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
41415
41416 2006-11-27  Bruno Haible  <bruno@clisp.org>
41417             Paul Eggert  <eggert@cs.ucla.edu>
41418
41419         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
41420
41421 2006-11-26  Bruno Haible  <bruno@clisp.org>
41422
41423         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
41424         noinst_LTLIBRARIES.
41425
41426 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
41427             Bruno Haible  <bruno@clisp.org>
41428
41429         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
41430         if compiling with "gcc -ansi".
41431
41432 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
41433
41434         Fix some incompatibilities with gcc -ansi -pedantic.
41435         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
41436         if compiling pedantically with GCC, unless it's C99 or later.
41437         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
41438         it mishandles gcc -ansi -pedantic as well.
41439         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
41440         if gcc -pedantic.
41441         * lib/regexec.c (check_node_accept_bytes): Don't use auto
41442         initializers for struct if -pedantic, unless it's C99 or later.
41443
41444 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
41445
41446         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
41447         Don't close an fd more than once. Identical atimes indicate
41448         success, not failure.
41449
41450 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
41451
41452         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
41453
41454 2006-11-23  Jim Meyering  <jim@meyering.net>
41455
41456         * build-aux/announce-gen: New file.  From coreutils.
41457
41458 2006-11-22  Jim Meyering  <jim@meyering.net>
41459
41460         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
41461         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
41462         (fts_read): Use a temporary to narrow the overused st_size member
41463         before using it in a switch statement.  Reported by Matthew Woehlke.
41464
41465         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
41466         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
41467
41468 2006-11-20  Bruno Haible  <bruno@clisp.org>
41469
41470         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
41471         changequote instead of pairs of brackets.
41472         Reported by Andreas Schwab <schwab@suse.de>.
41473
41474 2006-11-21  Jim Meyering  <jim@meyering.net>
41475
41476         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
41477         so as to remain compatible with older compilers.
41478         Patch from Michael Deutschmann.
41479
41480 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
41481
41482         * MODULES.html.sh (File system functions): Add openat.
41483
41484         * lib/openat.h (rpl_fstatat): New macro, if
41485         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
41486         (fstatat): Define to rpl_fstatat under the same conditions,
41487         unless COMPILING_FSTATAT.
41488         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
41489         seems to have the bug.
41490         * lib/fstatat.c: New file.
41491         * modules/openat (Files): Add it.
41492
41493 2006-11-20  Bruno Haible  <bruno@clisp.org>
41494
41495         * Makefile: New file.
41496
41497 2006-11-20  Jim Meyering  <jim@meyering.net>
41498
41499         The beginnings of syntax-related checks for gnulib.
41500         * lib/Makefile: New file.
41501         * lib/t-idcache: New script.  Ensure that the two halves of
41502         idcache.c stay in sync.
41503
41504         * lib/idcache.c: Adjust comments in user- and group- portions to
41505         be more accurate, and to be consistent with one another.
41506
41507 2006-11-20  Jim Meyering  <jim@meyering.net>
41508
41509         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
41510         continue using the flexible array member (thus, this module performs
41511         half as many malloc calls), with the addition that...
41512         (getgroup, getuser): Consistently record a non-match via an empty
41513         "name" string, and map an empty string match to a NULL return value.
41514         * modules/idcache (Depends-on): Re-add flexmember.
41515
41516         * lib/idcache.c (getuser): Remove all uses of the register keyword.
41517         (getuidbyname, getgroup, getgidbyname): Likewise.
41518
41519         Use cleaner syntax: NULL rather than 0.
41520         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
41521
41522 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
41523
41524         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
41525         It mishandled the case where the group was missing.
41526         Problem reported by Greg Schafer.
41527         * modules/idcache: Likewise.
41528
41529 2006-11-18  Jim Meyering  <jim@meyering.net>
41530
41531         * check-module (%exempt_header): Add exception for some
41532         conditionally-included headers.
41533
41534         * modules/i-ring (Depends-on): Add verify.
41535         (License): Change to LGPL.
41536
41537 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
41538
41539         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
41540         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
41541         and inttostr.h.  Use snprintf rather than uinttostr, so that
41542         LGPLed code doesn't depend on GPLed.
41543
41544 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
41545
41546         * modules/inline (License): Change from GPL to LGPL.
41547
41548 2006-11-17  Jim Meyering  <jim@meyering.net>
41549
41550         * modules/d-type (License): Switch to LGPL.
41551
41552 2006-11-15  Bruno Haible  <bruno@clisp.org>
41553
41554         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
41555
41556 2006-11-15  Eric Blake  <ebb9@byu.net>
41557
41558         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
41559         the module dependency.
41560
41561 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41562             Bruno Haible  <bruno@clisp.org>
41563
41564         * gnulib-tool (func_create_testdir): Add license consistency check.
41565
41566 2006-11-15  Eric Blake  <ebb9@byu.net>
41567
41568         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
41569         random "(cached)" in configure output.
41570
41571 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41572
41573         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
41574         test for conforming inttypes.h is both announced and cached.
41575
41576         * MODULES.html.sh (seen_modules, seen_files): New variables.
41577         (func_module): Rewrite to use a few less gnulib-tool and sed
41578         invocations.  Avoid a couple of quadratic algorithms for ...
41579         (missed_modules, missed_files): ... these, with ...
41580         (func_append, func_tmpdir): ... these new functions, from
41581         gnulib-tool.  Analogously, install traps for cleanup.
41582
41583         * tests/test-gc.c (main): Remove unused variables.
41584         * tests/test-read-file.c: Include stdlib.h, for 'free'.
41585
41586 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
41587
41588         * modules/inttostr (License): Change to LGPL.
41589
41590 2006-11-14  Eric Blake  <ebb9@byu.net>
41591
41592         * modules/tempname (License): Change to LGPL.
41593
41594 2006-11-14  Eric Blake  <ebb9@byu.net>
41595
41596         * doc/functions.texi (Function Portability): *printf functions on
41597         Cygwin now understand all POSIX size specifiers.
41598
41599 2006-11-14  Bruno Haible  <bruno@clisp.org>
41600
41601         * modules/c-ctype (License): Change to LGPL.
41602
41603 2006-11-12  Bruno Haible  <bruno@clisp.org>
41604
41605         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
41606         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
41607         for GNOME libraries, for which the include files are installed in
41608         subdirectories of $prefix/include.
41609
41610 2006-11-12  Bruno Haible  <bruno@clisp.org>
41611
41612         * m4/lib-link.m4: Require at least autoconf-2.54.
41613         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
41614         name to underscores for the --with option.
41615
41616 2006-11-13  Bruno Haible  <bruno@clisp.org>
41617
41618         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
41619         the tests directory.
41620         Reported by Ralf Wildenhues.
41621
41622 2006-11-13  Bruno Haible  <bruno@clisp.org>
41623
41624         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
41625         (func_emit_initmacro_end): Undo the override here.
41626         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
41627         Works around the famous automake error in coreutils.
41628
41629 2006-11-13  Eric Blake  <ebb9@byu.net>
41630
41631         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
41632         element, not its node.
41633
41634 2006-11-12  Bruno Haible  <bruno@clisp.org>
41635
41636         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
41637         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
41638
41639 2006-11-12  Bruno Haible  <bruno@clisp.org>
41640
41641         * gnulib-tool: New option --local-symlink.
41642         (func_usage): Document it.
41643         (lsymbolic): New variable.
41644         (func_import, func_create_testdir): If --symlink was not specified,
41645         test whether --local-symlink was specified and the file comes from
41646         the local_gnulib_dir.
41647
41648 2006-11-12  Bruno Haible  <bruno@clisp.org>
41649
41650         * gnulib-tool (func_ln): New function.
41651         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
41652
41653 2006-11-12  Bruno Haible  <bruno@clisp.org>
41654
41655         Finish support for source files in subdirectories.
41656         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
41657         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
41658         AUTOMAKE_OPTIONS.
41659         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
41660
41661 2006-11-12  Bruno Haible  <bruno@clisp.org>
41662
41663         * gnulib-tool (func_get_automake_snippet): Synthesize also an
41664         EXTRA_lib_SOURCES augmentation.
41665         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
41666
41667 2006-11-12  Jim Meyering  <jim@meyering.net>
41668
41669         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
41670         file descriptors.  This also averts a failure on systems with
41671         native openat support when a traversed directory lacks "x" access.
41672         * lib/fts_.h: Include "i-ring.h"
41673         (struct FTS) [fts_fd_ring]: New member.
41674         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
41675         (FCHDIR): Add parentheses.
41676         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
41677         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
41678         When descending, rather than simply closing the previous
41679         fts_cwd_fd value, push that file descriptor onto the ring.
41680         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
41681         (fts_open): Initialize the new fd_ring member.
41682         (fts_close): Clear the ring.
41683         (fts_safe_changedir): When possible, use our new fd_ring to skip
41684         the diropen and fstat and dev/ino comparison that would normally
41685         accompany a virtual `chdir ("..")'.
41686
41687         * modules/fts (Depends-on): Add i-ring.
41688         * modules/i-ring: New module.
41689         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
41690         * m4/i-ring.m4: New file.
41691
41692 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41693
41694         * gnulib-tool (func_create_testdir): Fix replacement of
41695         `build-aux' in configure.ac.  Run autotools in gltests
41696         subdirectory.
41697         (func_create_testdir, func_create_megatestdir, test): There is
41698         no need for '--force' in most autotool invocations in a new
41699         tree.  Actually fail the whole test if any of the tools, or the
41700         configure or make stages fail.
41701
41702         Sync from Automake.
41703         * build-aux/gnupload: Revert last change.  Add pointer to upload
41704         instructions of the GNU Maintenance Instructions.
41705         Suggestion by Karl Berry.
41706
41707 2006-11-10  Jim Meyering  <jim@meyering.net>
41708
41709         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
41710
41711 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
41712
41713         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
41714         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
41715         (bind_textdomain_codeset) [! ENABLE_NLS]:
41716         Evaluate all the arguments.  That way, callers get compatible behavior
41717         if the arguments have side effects.  Also, it avoids some GCC
41718         diagnostics in some cases; Joel E. Denny reported problems when Bison
41719         was configured with --enable-gcc-warnigs.
41720
41721 2006-11-10  Jim Meyering  <jim@meyering.net>
41722
41723         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
41724         relevant options in CFLAGS (like -O, -fno-inline) are taken into
41725         account.
41726
41727 2006-11-10  Jim Meyering  <jim@meyering.net>
41728
41729         * modules/inline: New file/module.
41730         * modules/xalloc (Files): Remove m4/inline.m4.
41731         (Depends-on): Add inline, instead.
41732         * modules/oset: Likewise.
41733         * modules/list: Likewise.
41734
41735 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
41736
41737         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
41738         Problem reported by Matthew Woehlke.
41739
41740 2006-11-09  Bruno Haible  <bruno@clisp.org>
41741
41742         * lib/tempname.c (gen_tempname): Remove variant that invokes
41743         __gen_tempname.
41744         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
41745         __gen_tempname.
41746
41747 2006-11-08  Bruno Haible  <bruno@clisp.org>
41748
41749         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
41750         to 'yes' instead of 'cross-compiling'.
41751
41752 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
41753
41754         * lib/quotearg.h (quotearg_free): New decl.
41755         * lib/quotearg.c (quotearg_free): New function.
41756         (slot0, nslots, slotvec0, slotvec):
41757         Now file-scope so that quotearg_free can get at them.
41758
41759 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41760
41761         Sync from Automake.
41762         * build-aux/gnupload: Add missing 'gnu' to example URL.
41763         Report by Karl Berry.
41764
41765 2006-11-08  Bruno Haible  <bruno@clisp.org>
41766
41767         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
41768         Suggested by Paul Eggert.
41769
41770 2006-11-08  Jim Meyering  <jim@meyering.net>
41771
41772         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
41773         It's already included if !_LIBC.
41774         (fts_safe_changedir): Add a comment.
41775
41776 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
41777
41778         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
41779         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
41780         Matthew Woehlke.
41781
41782         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
41783         definitions up, to avoid colliding with change below.
41784         (static_inline) [HAVE_INLINE]: New macro.
41785         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
41786         Provide extern decls when !HAVE_INLINE.  Do not define unless
41787         static_inline is defined, either by us or by xmalloc.c.  Use
41788         static_inline rather than static inline.
41789         (XCALLOC): Optimize sizeof(T) = 1 case.
41790         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
41791
41792 2006-11-07  Bruno Haible  <bruno@clisp.org>
41793
41794         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
41795         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
41796         AC_C_INLINE.
41797         * modules/xalloc (Files): Add m4/inline.m4.
41798
41799 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41800
41801         * README: Fix typo.
41802         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
41803         (Miscellanous Notes): ...from this.
41804
41805 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
41806
41807         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
41808         Mention that offsetof should be used instead of sizeof.
41809         From Bruno Haible.
41810
41811 2006-11-07  Bruno Haible  <bruno@clisp.org>
41812
41813         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
41814
41815 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
41816
41817         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
41818         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
41819         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
41820         (gl_tree_add_before, gl_tree_add_after):
41821         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
41822         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
41823         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
41824         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
41825         (gl_linked_add_after, gl_linked_add_at): Likewise.
41826         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
41827         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
41828         (gl_tree_add_before, gl_tree_add_after): Likewise.
41829         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
41830         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
41831         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
41832
41833 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41834
41835         * lib/gl_oset.h: Use C comment style, not C++ comment style.
41836
41837 2006-11-06  Bruno Haible  <bruno@clisp.org>
41838
41839         * m4/inline.m4: New file.
41840         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
41841         * modules/list (Files): Add m4/inline.m4.
41842         * modules/oset (Files): Likewise.
41843
41844 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
41845
41846         * lib/idcache.c: Include <stddef.h>, for offsetof.
41847         (struct userid.name): Change from char * to a flexible array member.
41848         All uses changed.
41849         * modules/idcache (Depends-on): Add flexmember.
41850
41851         * MODULES.html.sh (Core language properties): New module flexmember.
41852         * modules/flexmember, m4/flexmember.m4: New files.
41853
41854         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
41855         inline functions that are identical with the old xnmalloc_inline,
41856         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
41857         that we can avoid some unnecessary integer multiplications and
41858         divisions in the common case where the element size is known at
41859         compile time.
41860         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
41861         needed.
41862         (xnboundedmalloc): Remove.
41863         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
41864         arguments, for consistency with rest of this header.
41865         (xcharalloc): Rewrite using XNMALLOC.
41866         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
41867         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
41868         versions have been moved to lib/xalloc.h and renamed to be the
41869         non-*_inline versions.
41870         (xmalloc, xrealloc): Implement without reference to the xnmalloc
41871         and xnrealloc functions, since those functions are now inline and
41872         now call us.
41873         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
41874         renaming described above.
41875         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
41876         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
41877         captures the dependency in AC_C_INLINE.
41878
41879         New module canonicalize-lgpl, proposed by Charles Wilson in
41880         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
41881         with a few small changes afterwards.
41882         * MODULES.html.sh (File system functions): New module
41883         canonicalize-lgpl.
41884         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
41885         and canonicalize_file_name.
41886         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
41887         * modules/canonicalize-lgpl: New files.
41888
41889 2006-11-05  Bruno Haible  <bruno@clisp.org>
41890
41891         * gnulib-tool (func_import, func_create_testdir): Create directories
41892         also for files in subdirectories of lib/.
41893
41894 2006-11-05  Bruno Haible  <bruno@clisp.org>
41895
41896         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
41897         ANSI C compliant.
41898
41899 2006-11-03  Bruno Haible  <bruno@clisp.org>
41900
41901         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
41902         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
41903         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
41904         (xnboundedmalloc): New inline function.
41905         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
41906         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
41907         xmalloc.
41908         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
41909         xmalloc.
41910         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
41911         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
41912         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
41913         xmalloc.
41914         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
41915         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
41916         xmalloc.
41917         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
41918         gl_tree_add_after): Use XMALLOC instead of xmalloc.
41919         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
41920         xmalloc.
41921         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
41922         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
41923         gl_tree_add_after): Use XMALLOC instead of xmalloc.
41924         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
41925         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
41926         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
41927         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
41928
41929 2006-11-03  Bruno Haible  <bruno@clisp.org>
41930
41931         * lib/c-ctype.h [C++]: Define functions without name mangling.
41932         * lib/fwriteerror.h [C++]: Likewise.
41933         * lib/gcd.h [C++]: Likewise.
41934         * lib/linebreak.h [C++]: Likewise.
41935
41936 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
41937
41938         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
41939         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
41940         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
41941         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
41942         Check for functions and headers just once.
41943         Check for declaration of canonicalize_file_name.
41944         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
41945
41946 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
41947
41948         * gnulib-tool (func_import): Fix typo in actioncmd.
41949
41950 2006-11-02  Bruno Haible  <bruno@clisp.org>
41951
41952         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
41953         newline sequence in the Makefile.am snippet as a space, like "make"
41954         does.
41955         Reported by Roger Persson <perrog@gmail.com>.
41956
41957 2006-11-01  Bruno Haible  <bruno@clisp.org>
41958
41959         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
41960         already declared in <string.h>.
41961         * lib/strcase.h (strncasecmp): Don't declare it if yes.
41962
41963 2006-11-01  Bruno Haible  <bruno@clisp.org>
41964
41965         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
41966         * lib/strcase.h: Include <string.h>.
41967         (strcasecmp): Define to rpl_strcasecmp here.
41968
41969 2006-11-01  Bruno Haible  <bruno@clisp.org>
41970
41971         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
41972
41973 2006-11-01  Eric Blake  <ebb9@byu.net>
41974
41975         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
41976
41977         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
41978
41979 2006-10-29  Bruno Haible  <bruno@clisp.org>
41980
41981         Make it compile in C++ mode.
41982         * lib/full-write.c (full_rw): Add a cast.
41983
41984 2006-11-01  Bruno Haible  <bruno@clisp.org>
41985
41986         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
41987         be POSIX compliant.
41988         Reported by Roger Persson <perrog@gmail.com>.
41989
41990 2006-11-01  Eric Blake  <ebb9@byu.net>
41991
41992         * lib/getopt_.h: Fix comments.
41993
41994 2006-10-31  Eric Blake  <ebb9@byu.net>
41995
41996         * modules/tmpdir (Depends-on): Add sys_stat.
41997         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
41998         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
41999         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
42000         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
42001         tempname.
42002
42003 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
42004
42005         Avoid some C++ diagnostics reported by Bruno Haible.
42006         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
42007         xmalloc.
42008         (quotearg_alloc): Use xcharalloc rather than xmalloc.
42009         (struct slotvec): Move to top level.
42010         (quotearg_n_options): Rewrite to avoid xmalloc.
42011         * lib/xalloc.h (xcharalloc): New function.
42012         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
42013         [defined __cplusplus]: Add function template that provides result
42014         type propagation.  This part of the change is from Bruno Haible.
42015
42016 2006-10-29  Bruno Haible  <bruno@clisp.org>
42017
42018         Make it compile in C++ mode.
42019         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
42020         * lib/strnlen1.c (strnlen1): Cast memchr result.
42021         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
42022         * lib/clean-temp.c (string_equals, string_hash): Add casts.
42023         (create_temp_dir): Rename local variable 'template'.
42024         (compile_csharp_using_sscli): Add cast.
42025         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
42026         * lib/findprog.c (find_in_path): Likewise.
42027         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
42028         * lib/wait-process.c (register_slave_subprocess): Likewise.
42029
42030 2006-10-22  Bruno Haible  <bruno@clisp.org>
42031
42032         * modules/tsearch: New file.
42033         * lib/tsearch.h: New file.
42034         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
42035         * m4/tsearch.m4: New file.
42036         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
42037
42038 2006-10-29  Eric Blake  <ebb9@byu.net>
42039
42040         * lib/arcfour.c: Assume config.h.
42041         * lib/arctwo.c: Likewise.
42042         * lib/base64.c: Likewise.
42043         * lib/check-version.c: Likewise.
42044         * lib/crc.c: Likewise.
42045         * lib/des.c: Likewise.
42046         * lib/gc-gnulib.c: Likewise.
42047         * lib/gc-libgcrypt.c: Likewise.
42048         * lib/gc-pbkdf2-sha1.c: Likewise.
42049         * lib/getaddrinfo.c: Likewise.
42050         * lib/getdelim.c: Likewise.
42051         * lib/getline.c: Likewise.
42052         * lib/hmac-md5.c: Likewise.
42053         * lib/hmac-sha1.c: Likewise.
42054         * lib/iconvme.c: Likewise.
42055         * lib/md2.c: Likewise.
42056         * lib/md4.c: Likewise.
42057         * lib/memxor.c: Likewise.
42058         * lib/read-file.c: Likewise.
42059         * lib/readline.c: Likewise.
42060         * lib/rijndael-alg-fst.c: Likewise.
42061         * lib/rijndael-api-fst.c: Likewise.
42062         * lib/xgetdomainname.c: Likewise.
42063
42064 2006-10-28  Eric Blake  <ebb9@byu.net>
42065
42066         * lib/xstrndup.c: Assume config.h.
42067
42068 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
42069
42070         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
42071         stat-macros.h is now for our own macros, whereas stat_h is for
42072         macros in the <sys/stat.h> name space.
42073         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
42074         (STAT_MACROS_H): Remove.
42075         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
42076         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
42077         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
42078         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
42079         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
42080         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
42081         Move these macros to ...
42082         * lib/stat_.h: here.  Don't include stat-macros.h.
42083         * lib/canonicalize.c: Don't include stat-macros.h.
42084         * lib/chown.c: Likewise.
42085         * lib/euidaccess.c: Likewise.
42086         * lib/file-type.c: Likewise.
42087         * lib/filemode.c: Likewise.
42088         * lib/glob.c: Likewise.
42089         * lib/isapipe.c: Likewise.
42090         * lib/lchown.c: Likewise.
42091         * lib/lstat.c: Likewise.
42092         * lib/mkdir-p.c: Likewise.
42093         * lib/rmdir.c: Likewise.
42094         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
42095         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
42096         unless mkdir isn't declared, to speed up 'configure'.
42097         Always create sys/stat.h, since it's unlikely any real sys/stat.h
42098         would define all the S_* symbols.
42099         * modules/canonicalize (Depends-on):
42100         Depend on sys_stat, not stat-macros.
42101         * modules/chown: Likewise.
42102         * modules/euidaccess: Likewise.
42103         * modules/filemode: Likewise.
42104         * modules/file-type: Likewise.
42105         * modules/glob: Likewise.
42106         * modules/isapipe: Likewise.
42107         * modules/lchown: Likewise.
42108         * modules/lstat: Likewise.
42109         * modules/mkancesdirs: Likewise.
42110         * modules/rmdir: Likewise.
42111         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
42112         * modules/modechange: Likewise.
42113         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
42114         (configure.ac): Remove gl_STAT_MACROS.
42115         * modules/sys_stat (Depends-on): Remove stat-macros.
42116
42117 2006-10-27  Bruno Haible  <bruno@clisp.org>
42118
42119         * m4/signed.m4: Remove file.
42120         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
42121         invocation.
42122         * modules/vasnprintf (Files): Remove m4/signed.m4.
42123
42124 2006-10-27  Bruno Haible  <bruno@clisp.org>
42125
42126         Update to GNU gettext 0.16.
42127         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
42128         m4/inttypes-h.m4, m4/signed.m4.
42129         * m4/gettext.m4: Update to GNU gettext 0.16.
42130         * m4/intl.m4: New file, from GNU gettext.
42131         * m4/intldir.m4: New file, from GNU gettext.
42132         * config/srclist.txt: Update
42133
42134 2006-10-27  Eric Blake  <ebb9@byu.net>
42135
42136         * MODULES.html.sh: Document tempname.
42137         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
42138         dependencies.
42139         (Files): Move lib/tempname.c...
42140         * modules/tempname: ...to this new module.
42141         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
42142         (gl_PREREQ_TEMPNAME): Move...
42143         * m4/tempname.m4: ...to this new file.
42144         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
42145         * modules/sys_stat (Depends-on): Add stat-macros.
42146         * lib/stat_.h (includes): Pick up stat macros.
42147         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
42148         if stat macros are broken.
42149         * lib/tempname.c (includes): No need to include "stat-macros.h".
42150         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
42151         (direxists, __path_search) [!_LIBC]: Don't compile these in
42152         gnulib; the tmpdir module covers that.
42153         * lib/tempname.h: New file.
42154
42155 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
42156
42157         * COPYING: Explain how gnulib-tool converts licence headers.
42158         Almost all wording by Eric Blake.
42159
42160 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
42161
42162         * lib/mbchar.h (is_basic_table): Make read-only.
42163         * lib/mbchar.c (is_basic_table): Likewise.
42164         Reported by John Darrington.
42165
42166 2006-10-25  Bruno Haible  <bruno@clisp.org>
42167
42168         * lib/progname.h (set_program_name): Undefine before defining.
42169
42170 2006-10-25  Bruno Haible  <bruno@clisp.org>
42171
42172         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
42173         false for non-gcc C++ compilers.
42174         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
42175
42176 2006-10-24  Bruno Haible  <bruno@clisp.org>
42177
42178         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
42179         iconv implementations like Irix iconv.
42180
42181 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
42182
42183         * modules/vararrays: New file.
42184         * m4/vararrays.m4: New file, taken from diffutils.
42185         * MODULES.html.sh: New module vararrays.
42186
42187 2006-10-24  Karl Berry  <karl@gnu.org>
42188
42189         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
42190         Don't call GNU Unix.
42191
42192 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42193
42194         * users.txt: Add Libtool.
42195
42196         Sync from Libtool:
42197
42198         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
42199
42200         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
42201         to gnulib's policy of including config.h unconditionally.
42202
42203 2006-10-24  Bruno Haible  <bruno@clisp.org>
42204
42205         * modules/wcwidth (Files): Add m4/wint_t.m4.
42206         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
42207         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
42208
42209 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
42210
42211         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
42212         to pacify GCC with some -W flags enabled.  Problem reported by
42213         Bruno Haible.
42214
42215 2006-10-24  Jim Meyering  <jim@meyering.net>
42216
42217         * MODULES.html.sh: Remove uinttostr.  It's not a module.
42218         Reported by Karl Berry.
42219
42220 2006-10-23  Bruno Haible  <bruno@clisp.org>
42221
42222         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
42223
42224 2006-10-24  Bruno Haible  <bruno@clisp.org>
42225
42226         * lib/gl_list.h: Use C comment style, not C++ comment style.
42227
42228 2006-10-23  Eric Blake  <ebb9@byu.net>
42229
42230         * lib/getaddrinfo.c (includes): Add missing include.
42231
42232 2006-10-23  Bruno Haible  <bruno@clisp.org>
42233             Paul Eggert  <eggert@cs.ucla.edu>
42234
42235         Ability to rename obstack_free.
42236         * lib/obstack.h (__obstack_free): New macro. Declare instead of
42237         obstack_free.
42238         (obstack_free): Invoke the __obstack_free macro.
42239         * lib/obstack.c (obstack_free): Use __obstack_free macro.
42240
42241 2006-10-23  Bruno Haible  <bruno@clisp.org>
42242             Paul Eggert  <eggert@cs.ucla.edu>
42243
42244         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
42245         __argc, __argv from the declaration. (They are defined as macros on
42246         mingw.)
42247
42248 2006-10-22  Bruno Haible  <bruno@clisp.org>
42249
42250         * doc/gnulib-intro.texi: New file.
42251         * doc/gnulib.texi: Include it.
42252
42253 2006-10-21  Bruno Haible  <bruno@clisp.org>
42254
42255         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
42256         "Introduction", "Miscellanous Notes", "Particular Modules".
42257
42258 2006-10-21  Bruno Haible  <bruno@clisp.org>
42259
42260         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42261         Change mostlyclean-local rule to avoid sh syntax error from bash
42262         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
42263
42264 2006-10-23  Jim Meyering  <jim@meyering.net>
42265
42266         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
42267         in place of snprintf.
42268
42269         * modules/inttostr (Files): Add lib/uinttostr.c.
42270         * lib/uinttostr.c (inttostr): New file/function.
42271         * lib/inttostr.h (uinttostr): Declare.
42272         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
42273         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
42274         Add uinttostr.
42275         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
42276
42277 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
42278
42279         * lib/canonicalize.c (ELOOP): Define if not already defined.
42280         Problem reported by Bruno Haible in
42281         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
42282
42283 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
42284
42285         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
42286         Problem reported by Perry Smith and Ville Laurikari.
42287
42288         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
42289         uses.
42290
42291 2006-10-19  Bruno Haible  <bruno@clisp.org>
42292
42293         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
42294         for mingw.
42295
42296 2006-10-19  Bruno Haible  <bruno@clisp.org>
42297
42298         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
42299         Needed for mingw.
42300
42301 2006-10-19  Bruno Haible  <bruno@clisp.org>
42302
42303         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
42304
42305 2006-10-19  Bruno Haible  <bruno@clisp.org>
42306
42307         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
42308         it.
42309
42310 2006-10-19  Bruno Haible  <bruno@clisp.org>
42311
42312         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
42313         invocation.
42314
42315 2006-10-19  Bruno Haible  <bruno@clisp.org>
42316
42317         * gnulib-tool (func_create_testdir): Don't include ftruncate and
42318         mountlist by default.
42319
42320 2006-10-16  Bruno Haible  <bruno@clisp.org>
42321
42322         * lib/c-strstr.c: Include c-strstr.h.
42323
42324 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
42325
42326         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
42327         in a slash.
42328
42329 2006-10-18  Bruno Haible  <bruno@clisp.org>
42330
42331         * lib/lock.h [C++]: Wrap definitions in extern "C".
42332
42333 2006-10-18  Bruno Haible  <bruno@clisp.org>
42334
42335         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
42336         gl_LIBOBJS list.
42337
42338 2006-10-18  Bruno Haible  <bruno@clisp.org>
42339
42340         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
42341
42342 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
42343
42344         * lib/xstrtol.h: Include gettext.h.
42345         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
42346         Problem reported by Eric Blake.
42347         * modules/xstrtol (Depends-on): Add gettext-h.
42348
42349 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
42350
42351         * lib/strftime.c (advance): New macro.
42352         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
42353         incomplete type, so you can't add 0 to it.  Problem and patch
42354         reported by Eelco Dolstra for dietlibc.
42355
42356 2006-10-18  Jim Meyering  <jim@meyering.net>
42357
42358         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
42359         type for a local, and rename it: s/up/user_proc/.
42360
42361 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
42362
42363         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
42364         READ_UTMP_USER_PROCESS.
42365         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
42366
42367 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
42368
42369         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
42370         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
42371
42372 2006-10-17  Eric Blake  <ebb9@byu.net>
42373
42374         * lib/sigprocmask.c (sigprocmask): Fix typo.
42375
42376         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
42377
42378         * modules/clean-temp (Makefile.am): Don't add to make output...
42379         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
42380         config.h.
42381
42382 2006-10-17  Bruno Haible  <bruno@clisp.org>
42383
42384         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
42385         differently if DEFAULT_TEXT_DOMAIN is set.
42386
42387 2006-10-16  Bruno Haible  <bruno@clisp.org>
42388
42389         * lib/clean-temp.c: Include fwriteerror.h.
42390
42391 2006-10-16  Bruno Haible  <bruno@clisp.org>
42392
42393         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
42394
42395 2006-10-16  Bruno Haible  <bruno@clisp.org>
42396
42397         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
42398         * lib/sigprocmask.h: Include <sys/types.h>.
42399         (sigset_t): Use the system's definition if present.
42400
42401 2006-10-17  Eric Blake  <ebb9@byu.net>
42402
42403         * lib/xvasprintf.c (includes): Assume config.h.
42404         * lib/xasprintf.c (includes): Likewise.
42405
42406 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
42407
42408         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
42409         at least as wide as intmax_t.
42410
42411 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
42412
42413         (Imported from Automake.)
42414         * build-aux/gnupload: Update to version 1.1 of directive file.
42415
42416 2006-10-16  Eric Blake  <ebb9@byu.net>
42417
42418         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
42419         match Automake 1.10a.
42420
42421 2006-10-14  Bruno Haible  <bruno@clisp.org>
42422
42423         * modules/sigprocmask: New file.
42424         * lib/sigprocmask.h: New file.
42425         * lib/sigprocmask.c: New file.
42426         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
42427         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
42428         request sigprocmask.o.
42429         (gl_PREREQ_SIGPROCMASK): New macro.
42430         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
42431         (Depends-on): Add sigprocmask.
42432         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
42433         gt_SIGNALBLOCKING. Test for 'raise' only once.
42434         * lib/fatal-signal.c: Include sigprocmask.h.
42435         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
42436         unblock_fatal_signals): Define always.
42437         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42438         sigprocmask.
42439
42440 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
42441
42442         Sync from Automake.
42443         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
42444         which incorrectly sets the mode of an existing destination
42445         directory.  In some cases the unpatched install-sh could do the
42446         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
42447         system.  We hope this is rare in practice, but it's clearly worth
42448         fixing.  Problem reported by Alex Unleashed in
42449         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
42450         Also, don't bother to check for -m bugs unless we're using -m;
42451         suggested by Stepan Kasal.
42452
42453 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42454
42455         Sync from Automake.
42456         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
42457         `-c' flag, so they appear at the same position as in %FASTDEP%
42458         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
42459         which ignores unknown options only after the first non-option.
42460         Bug report against M4 by Nelson H. F. Beebe.
42461
42462 2006-10-13  Jim Meyering  <jim@meyering.net>
42463
42464         Fix a bug in yesterday's change.
42465         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
42466         p->fts_statp->st_dev would be used uninitialized.
42467         Ensures that we always call fts_stat on the very first entry.
42468         Miklos Szeredi reported that find -xdev stopped working.
42469
42470 2006-10-12  Bruno Haible  <bruno@clisp.org>
42471
42472         * gnulib-tool (func_get_automake_snippet): Append an automatically
42473         computed EXTRA_DIST augmentation.
42474         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
42475         * modules/alloca-opt (Makefile.am): Likewise.
42476         * modules/allocsa (Makefile.am): Likewise.
42477         * modules/arcfour (Makefile.am): Likewise.
42478         * modules/arctwo (Makefile.am): Likewise.
42479         * modules/argmatch (Makefile.am): Likewise.
42480         * modules/argz (Makefile.am): Likewise.
42481         * modules/atexit (Makefile.am): Likewise.
42482         * modules/backupfile (Makefile.am): Likewise.
42483         * modules/byteswap (Makefile.am): Likewise.
42484         * modules/c-strtod (Makefile.am): Likewise.
42485         * modules/c-strtold (Makefile.am): Likewise.
42486         * modules/calloc (Makefile.am): Likewise.
42487         * modules/canon-host (Makefile.am): Likewise.
42488         * modules/canonicalize (Makefile.am): Likewise.
42489         * modules/chdir-long (Makefile.am): Likewise.
42490         * modules/chdir-safer (Makefile.am): Likewise.
42491         * modules/check-version (Makefile.am): Likewise.
42492         * modules/chown (Makefile.am): Likewise.
42493         * modules/cloexec (Makefile.am): Likewise.
42494         * modules/close-stream (Makefile.am): Likewise.
42495         * modules/closeout (Makefile.am): Likewise.
42496         * modules/crc (Makefile.am): Likewise.
42497         * modules/csharpexec (Makefile.am): Likewise.
42498         * modules/cycle-check (Makefile.am): Likewise.
42499         * modules/des (Makefile.am): Likewise.
42500         * modules/dev-ino (Makefile.am): Likewise.
42501         * modules/dirfd (Makefile.am): Likewise.
42502         * modules/dirname (Makefile.am): Likewise.
42503         * modules/dup2 (Makefile.am): Likewise.
42504         * modules/eealloc (Makefile.am): Likewise.
42505         * modules/error (Makefile.am): Likewise.
42506         * modules/euidaccess (Makefile.am): Likewise.
42507         * modules/exclude (Makefile.am): Likewise.
42508         * modules/exitfail (Makefile.am): Likewise.
42509         * modules/fcntl-safer (Makefile.am): Likewise.
42510         * modules/fcntl (Makefile.am): Likewise.
42511         * modules/file-type (Makefile.am): Likewise.
42512         * modules/fileblocks (Makefile.am): Likewise.
42513         * modules/filemode (Makefile.am): Likewise.
42514         * modules/filenamecat (Makefile.am): Likewise.
42515         * modules/fnmatch (Makefile.am): Likewise.
42516         * modules/fopen-safer (Makefile.am): Likewise.
42517         * modules/fpending (Makefile.am): Likewise.
42518         * modules/fprintftime (Makefile.am): Likewise.
42519         * modules/free (Makefile.am): Likewise.
42520         * modules/fsusage (Makefile.am): Likewise.
42521         * modules/ftruncate (Makefile.am): Likewise.
42522         * modules/fts (Makefile.am): Likewise.
42523         * modules/gc-arcfour (Makefile.am): Likewise.
42524         * modules/gc-des (Makefile.am): Likewise.
42525         * modules/gc-hmac-md5 (Makefile.am): Likewise.
42526         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
42527         * modules/gc-md4 (Makefile.am): Likewise.
42528         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
42529         * modules/gc-sha1 (Makefile.am): Likewise.
42530         * modules/gc (Makefile.am): Likewise.
42531         * modules/getaddrinfo (Makefile.am): Likewise.
42532         * modules/getcwd (Makefile.am): Likewise.
42533         * modules/getdelim (Makefile.am): Likewise.
42534         * modules/getdomainname (Makefile.am): Likewise.
42535         * modules/getgroups (Makefile.am): Likewise.
42536         * modules/gethostname (Makefile.am): Likewise.
42537         * modules/gethrxtime (Makefile.am): Likewise.
42538         * modules/getline (Makefile.am): Likewise.
42539         * modules/getloadavg (Makefile.am): Likewise.
42540         * modules/getlogin_r (Makefile.am): Likewise.
42541         * modules/getndelim2 (Makefile.am): Likewise.
42542         * modules/getopt (Makefile.am): Likewise.
42543         * modules/getpagesize (Makefile.am): Likewise.
42544         * modules/getpass-gnu (Makefile.am): Likewise.
42545         * modules/getpass (Makefile.am): Likewise.
42546         * modules/getsubopt (Makefile.am): Likewise.
42547         * modules/gettime (Makefile.am): Likewise.
42548         * modules/gettimeofday (Makefile.am): Likewise.
42549         * modules/getugroups (Makefile.am): Likewise.
42550         * modules/getusershell (Makefile.am): Likewise.
42551         * modules/glob (Makefile.am): Likewise.
42552         * modules/group-member (Makefile.am): Likewise.
42553         * modules/hard-locale (Makefile.am): Likewise.
42554         * modules/hash (Makefile.am): Likewise.
42555         * modules/hmac-md5 (Makefile.am): Likewise.
42556         * modules/hmac-sha1 (Makefile.am): Likewise.
42557         * modules/human (Makefile.am): Likewise.
42558         * modules/idcache (Makefile.am): Likewise.
42559         * modules/imaxabs (Makefile.am): Likewise.
42560         * modules/imaxdiv (Makefile.am): Likewise.
42561         * modules/inet_ntop (Makefile.am): Likewise.
42562         * modules/inet_pton (Makefile.am): Likewise.
42563         * modules/intprops (Makefile.am): Likewise.
42564         * modules/inttostr (Makefile.am): Likewise.
42565         * modules/inttypes (Makefile.am): Likewise.
42566         * modules/isapipe (Makefile.am): Likewise.
42567         * modules/javaversion (Makefile.am): Likewise.
42568         * modules/lchmod (Makefile.am): Likewise.
42569         * modules/lchown (Makefile.am): Likewise.
42570         * modules/localcharset (Makefile.am): Likewise.
42571         * modules/long-options (Makefile.am): Likewise.
42572         * modules/lstat (Makefile.am): Likewise.
42573         * modules/malloc (Makefile.am): Likewise.
42574         * modules/mathl (Makefile.am): Likewise.
42575         * modules/mbchar (Makefile.am): Likewise.
42576         * modules/md2 (Makefile.am): Likewise.
42577         * modules/md4 (Makefile.am): Likewise.
42578         * modules/md5 (Makefile.am): Likewise.
42579         * modules/memcasecmp (Makefile.am): Likewise.
42580         * modules/memchr (Makefile.am): Likewise.
42581         * modules/memcmp (Makefile.am): Likewise.
42582         * modules/memcoll (Makefile.am): Likewise.
42583         * modules/memcpy (Makefile.am): Likewise.
42584         * modules/memmem (Makefile.am): Likewise.
42585         * modules/memmove (Makefile.am): Likewise.
42586         * modules/mempcpy (Makefile.am): Likewise.
42587         * modules/memrchr (Makefile.am): Likewise.
42588         * modules/memset (Makefile.am): Likewise.
42589         * modules/memxor (Makefile.am): Likewise.
42590         * modules/mkancesdirs (Makefile.am): Likewise.
42591         * modules/mkdir-p (Makefile.am): Likewise.
42592         * modules/mkdir (Makefile.am): Likewise.
42593         * modules/mkdtemp (Makefile.am): Likewise.
42594         * modules/mkstemp (Makefile.am): Likewise.
42595         * modules/mktime (Makefile.am): Likewise.
42596         * modules/modechange (Makefile.am): Likewise.
42597         * modules/mountlist (Makefile.am): Likewise.
42598         * modules/nanosleep (Makefile.am): Likewise.
42599         * modules/obstack (Makefile.am): Likewise.
42600         * modules/openat (Makefile.am): Likewise.
42601         * modules/pagealign_alloc (Makefile.am): Likewise.
42602         * modules/pathmax (Makefile.am): Likewise.
42603         * modules/physmem (Makefile.am): Likewise.
42604         * modules/poll (Makefile.am): Likewise.
42605         * modules/posixtm (Makefile.am): Likewise.
42606         * modules/posixver (Makefile.am): Likewise.
42607         * modules/putenv (Makefile.am): Likewise.
42608         * modules/quote (Makefile.am): Likewise.
42609         * modules/quotearg (Makefile.am): Likewise.
42610         * modules/raise (Makefile.am): Likewise.
42611         * modules/read-file (Makefile.am): Likewise.
42612         * modules/readline (Makefile.am): Likewise.
42613         * modules/readlink (Makefile.am): Likewise.
42614         * modules/readtokens (Makefile.am): Likewise.
42615         * modules/readutmp (Makefile.am): Likewise.
42616         * modules/realloc (Makefile.am): Likewise.
42617         * modules/regex (Makefile.am): Likewise.
42618         * modules/rename-dest-slash (Makefile.am): Likewise.
42619         * modules/rename (Makefile.am): Likewise.
42620         * modules/rijndael (Makefile.am): Likewise.
42621         * modules/rmdir (Makefile.am): Likewise.
42622         * modules/rpmatch (Makefile.am): Likewise.
42623         * modules/safe-read (Makefile.am): Likewise.
42624         * modules/safe-write (Makefile.am): Likewise.
42625         * modules/same-inode (Makefile.am): Likewise.
42626         * modules/same (Makefile.am): Likewise.
42627         * modules/save-cwd (Makefile.am): Likewise.
42628         * modules/savedir (Makefile.am): Likewise.
42629         * modules/setenv (Makefile.am): Likewise.
42630         * modules/settime (Makefile.am): Likewise.
42631         * modules/sha1 (Makefile.am): Likewise.
42632         * modules/sig2str (Makefile.am): Likewise.
42633         * modules/snprintf (Makefile.am): Likewise.
42634         * modules/stat-macros (Makefile.am): Likewise.
42635         * modules/stat-time (Makefile.am): Likewise.
42636         * modules/stdbool (Makefile.am): Likewise.
42637         * modules/stdint (Makefile.am): Likewise.
42638         * modules/stdlib-safer (Makefile.am): Likewise.
42639         * modules/stpcpy (Makefile.am): Likewise.
42640         * modules/stpncpy (Makefile.am): Likewise.
42641         * modules/strcase (Makefile.am): Likewise.
42642         * modules/strcasestr (Makefile.am): Likewise.
42643         * modules/strchrnul (Makefile.am): Likewise.
42644         * modules/strcspn (Makefile.am): Likewise.
42645         * modules/strdup (Makefile.am): Likewise.
42646         * modules/strerror (Makefile.am): Likewise.
42647         * modules/strftime (Makefile.am): Likewise.
42648         * modules/strndup (Makefile.am): Likewise.
42649         * modules/strnlen (Makefile.am): Likewise.
42650         * modules/strpbrk (Makefile.am): Likewise.
42651         * modules/strsep (Makefile.am): Likewise.
42652         * modules/strstr (Makefile.am): Likewise.
42653         * modules/strtod (Makefile.am): Likewise.
42654         * modules/strtoimax (Makefile.am): Likewise.
42655         * modules/strtok_r (Makefile.am): Likewise.
42656         * modules/strtol (Makefile.am): Likewise.
42657         * modules/strtoll (Makefile.am): Likewise.
42658         * modules/strtoul (Makefile.am): Likewise.
42659         * modules/strtoull (Makefile.am): Likewise.
42660         * modules/strtoumax (Makefile.am): Likewise.
42661         * modules/strverscmp (Makefile.am): Likewise.
42662         * modules/sys_socket (Makefile.am): Likewise.
42663         * modules/sys_stat (Makefile.am): Likewise.
42664         * modules/sysexits (Makefile.am): Likewise.
42665         * modules/time_r (Makefile.am): Likewise.
42666         * modules/timegm (Makefile.am): Likewise.
42667         * modules/timespec (Makefile.am): Likewise.
42668         * modules/tmpfile-safer (Makefile.am): Likewise.
42669         * modules/trim (Makefile.am): Likewise.
42670         * modules/unistd-safer (Makefile.am): Likewise.
42671         * modules/unlinkdir (Makefile.am): Likewise.
42672         * modules/unlocked-io (Makefile.am): Likewise.
42673         * modules/userspec (Makefile.am): Likewise.
42674         * modules/utime (Makefile.am): Likewise.
42675         * modules/utimecmp (Makefile.am): Likewise.
42676         * modules/utimens (Makefile.am): Likewise.
42677         * modules/vasnprintf (Makefile.am): Likewise.
42678         * modules/vasprintf (Makefile.am): Likewise.
42679         * modules/vsnprintf (Makefile.am): Likewise.
42680         * modules/xalloc (Makefile.am): Likewise.
42681         * modules/xgetcwd (Makefile.am): Likewise.
42682         * modules/xnanosleep (Makefile.am): Likewise.
42683         * modules/xreadlink (Makefile.am): Likewise.
42684         * modules/xstrtod (Makefile.am): Likewise.
42685         * modules/xstrtol (Makefile.am): Likewise.
42686         * modules/xstrtold (Makefile.am): Likewise.
42687         * modules/yesno (Makefile.am): Likewise.
42688         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
42689
42690 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
42691
42692         * modules/error (Makefile.am): Distribute files through
42693         EXTRA_DIST, not lib_SOURCES.
42694
42695 2006-10-12  Eric Blake  <ebb9@byu.net>
42696
42697         * modules/error (Makefile.am): Distribute files in /lib.
42698         * modules/obstack (Makefile.am): Likewise.
42699
42700 2006-10-12  Bruno Haible  <bruno@clisp.org>
42701
42702         * modules/acl (Makefile.am): Distribute all files in lib/ through
42703         EXTRA_DIST.
42704         * modules/arcfour (Makefile.am): Likewise.
42705         * modules/arctwo (Makefile.am): Likewise.
42706         * modules/argmatch (Makefile.am): Likewise.
42707         * modules/argz (Makefile.am): Likewise.
42708         * modules/atexit (Makefile.am): Likewise.
42709         * modules/backupfile (Makefile.am): Likewise.
42710         * modules/c-strtod (Makefile.am): Likewise.
42711         * modules/c-strtold (Makefile.am): Likewise.
42712         * modules/calloc (Makefile.am): Likewise.
42713         * modules/canon-host (Makefile.am): Likewise.
42714         * modules/canonicalize (Makefile.am): Likewise.
42715         * modules/chdir-long (Makefile.am): Likewise.
42716         * modules/chdir-safer (Makefile.am): Likewise.
42717         * modules/check-version (Makefile.am): Likewise.
42718         * modules/chown (Makefile.am): Likewise.
42719         * modules/cloexec (Makefile.am): Likewise.
42720         * modules/close-stream (Makefile.am): Likewise.
42721         * modules/closeout (Makefile.am): Likewise.
42722         * modules/crc (Makefile.am): Likewise.
42723         * modules/cycle-check (Makefile.am): Likewise.
42724         * modules/des (Makefile.am): Likewise.
42725         * modules/dirfd (Makefile.am): Likewise.
42726         * modules/dirname (Makefile.am): Likewise.
42727         * modules/dup2 (Makefile.am): Likewise.
42728         * modules/euidaccess (Makefile.am): Likewise.
42729         * modules/exclude (Makefile.am): Likewise.
42730         * modules/exitfail (Makefile.am): Likewise.
42731         * modules/fcntl-safer (Makefile.am): Likewise.
42732         * modules/file-type (Makefile.am): Likewise.
42733         * modules/fileblocks (Makefile.am): Likewise.
42734         * modules/filemode (Makefile.am): Likewise.
42735         * modules/filenamecat (Makefile.am): Likewise.
42736         * modules/fnmatch (Makefile.am): Likewise.
42737         * modules/fopen-safer (Makefile.am): Likewise.
42738         * modules/fpending (Makefile.am): Likewise.
42739         * modules/fprintftime (Makefile.am): Likewise.
42740         * modules/free (Makefile.am): Likewise.
42741         * modules/fsusage (Makefile.am): Likewise.
42742         * modules/ftruncate (Makefile.am): Likewise.
42743         * modules/fts (Makefile.am): Likewise.
42744         * modules/gc (Makefile.am): Likewise.
42745         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
42746         * modules/getaddrinfo (Makefile.am): Likewise.
42747         * modules/getcwd (Makefile.am): Likewise.
42748         * modules/getdelim (Makefile.am): Likewise.
42749         * modules/getdomainname (Makefile.am): Likewise.
42750         * modules/getgroups (Makefile.am): Likewise.
42751         * modules/gethostname (Makefile.am): Likewise.
42752         * modules/gethrxtime (Makefile.am): Likewise.
42753         * modules/getline (Makefile.am): Likewise.
42754         * modules/getloadavg (Makefile.am): Likewise.
42755         * modules/getlogin_r (Makefile.am): Likewise.
42756         * modules/getopt (Makefile.am): Likewise.
42757         * modules/getpass (Makefile.am): Likewise.
42758         * modules/getpass-gnu (Makefile.am): Likewise.
42759         * modules/getsubopt (Makefile.am): Likewise.
42760         * modules/gettime (Makefile.am): Likewise.
42761         * modules/gettimeofday (Makefile.am): Likewise.
42762         * modules/getugroups (Makefile.am): Likewise.
42763         * modules/getusershell (Makefile.am): Likewise.
42764         * modules/glob (Makefile.am): Likewise.
42765         * modules/group-member (Makefile.am): Likewise.
42766         * modules/hard-locale (Makefile.am): Likewise.
42767         * modules/hash (Makefile.am): Likewise.
42768         * modules/hmac-md5 (Makefile.am): Likewise.
42769         * modules/hmac-sha1 (Makefile.am): Likewise.
42770         * modules/human (Makefile.am): Likewise.
42771         * modules/idcache (Makefile.am): Likewise.
42772         * modules/imaxabs (Makefile.am): Likewise.
42773         * modules/imaxdiv (Makefile.am): Likewise.
42774         * modules/inet_ntop (Makefile.am): Likewise.
42775         * modules/inet_pton (Makefile.am): Likewise.
42776         * modules/inttostr (Makefile.am): Likewise.
42777         * modules/isapipe (Makefile.am): Likewise.
42778         * modules/lchown (Makefile.am): Likewise.
42779         * modules/long-options (Makefile.am): Likewise.
42780         * modules/lstat (Makefile.am): Likewise.
42781         * modules/malloc (Makefile.am): Likewise.
42782         * modules/mathl (Makefile.am): Likewise.
42783         * modules/mbchar (Makefile.am): Likewise.
42784         * modules/md2 (Makefile.am): Likewise.
42785         * modules/md4 (Makefile.am): Likewise.
42786         * modules/md5 (Makefile.am): Likewise.
42787         * modules/memcasecmp (Makefile.am): Likewise.
42788         * modules/memchr (Makefile.am): Likewise.
42789         * modules/memcmp (Makefile.am): Likewise.
42790         * modules/memcoll (Makefile.am): Likewise.
42791         * modules/memcpy (Makefile.am): Likewise.
42792         * modules/memmem (Makefile.am): Likewise.
42793         * modules/memmove (Makefile.am): Likewise.
42794         * modules/mempcpy (Makefile.am): Likewise.
42795         * modules/memrchr (Makefile.am): Likewise.
42796         * modules/memset (Makefile.am): Likewise.
42797         * modules/memxor (Makefile.am): Likewise.
42798         * modules/mkancesdirs (Makefile.am): Likewise.
42799         * modules/mkdir (Makefile.am): Likewise.
42800         * modules/mkdir-p (Makefile.am): Likewise.
42801         * modules/mkdtemp (Makefile.am): Likewise.
42802         * modules/mkstemp (Makefile.am): Likewise.
42803         * modules/mktime (Makefile.am): Likewise.
42804         * modules/modechange (Makefile.am): Likewise.
42805         * modules/mountlist (Makefile.am): Likewise.
42806         * modules/nanosleep (Makefile.am): Likewise.
42807         * modules/openat (Makefile.am): Likewise.
42808         * modules/pagealign_alloc (Makefile.am): Likewise.
42809         * modules/physmem (Makefile.am): Likewise.
42810         * modules/poll (Makefile.am): Likewise.
42811         * modules/posixtm (Makefile.am): Likewise.
42812         * modules/posixver (Makefile.am): Likewise.
42813         * modules/putenv (Makefile.am): Likewise.
42814         * modules/quote (Makefile.am): Likewise.
42815         * modules/quotearg (Makefile.am): Likewise.
42816         * modules/raise (Makefile.am): Likewise.
42817         * modules/read-file (Makefile.am): Likewise.
42818         * modules/readline (Makefile.am): Likewise.
42819         * modules/readlink (Makefile.am): Likewise.
42820         * modules/readtokens (Makefile.am): Likewise.
42821         * modules/readutmp (Makefile.am): Likewise.
42822         * modules/realloc (Makefile.am): Likewise.
42823         * modules/regex (Makefile.am): Likewise.
42824         * modules/rename (Makefile.am): Likewise.
42825         * modules/rename-dest-slash (Makefile.am): Likewise.
42826         * modules/rijndael (Makefile.am): Likewise.
42827         * modules/rmdir (Makefile.am): Likewise.
42828         * modules/rpmatch (Makefile.am): Likewise.
42829         * modules/safe-read (Makefile.am): Likewise.
42830         * modules/safe-write (Makefile.am): Likewise.
42831         * modules/same (Makefile.am): Likewise.
42832         * modules/save-cwd (Makefile.am): Likewise.
42833         * modules/savedir (Makefile.am): Likewise.
42834         * modules/setenv (Makefile.am): Likewise.
42835         * modules/settime (Makefile.am): Likewise.
42836         * modules/sha1 (Makefile.am): Likewise.
42837         * modules/sig2str (Makefile.am): Likewise.
42838         * modules/snprintf (Makefile.am): Likewise.
42839         * modules/stdlib-safer (Makefile.am): Likewise.
42840         * modules/stpcpy (Makefile.am): Likewise.
42841         * modules/stpncpy (Makefile.am): Likewise.
42842         * modules/strcase (Makefile.am): Likewise.
42843         * modules/strcasestr (Makefile.am): Likewise.
42844         * modules/strchrnul (Makefile.am): Likewise.
42845         * modules/strcspn (Makefile.am): Likewise.
42846         * modules/strdup (Makefile.am): Likewise.
42847         * modules/strerror (Makefile.am): Likewise.
42848         * modules/strftime (Makefile.am): Likewise.
42849         * modules/strndup (Makefile.am): Likewise.
42850         * modules/strnlen (Makefile.am): Likewise.
42851         * modules/strpbrk (Makefile.am): Likewise.
42852         * modules/strsep (Makefile.am): Likewise.
42853         * modules/strstr (Makefile.am): Likewise.
42854         * modules/strtod (Makefile.am): Likewise.
42855         * modules/strtoimax (Makefile.am): Likewise.
42856         * modules/strtok_r (Makefile.am): Likewise.
42857         * modules/strtol (Makefile.am): Likewise.
42858         * modules/strtoll (Makefile.am): Likewise.
42859         * modules/strtoul (Makefile.am): Likewise.
42860         * modules/strtoull (Makefile.am): Likewise.
42861         * modules/strtoumax (Makefile.am): Likewise.
42862         * modules/strverscmp (Makefile.am): Likewise.
42863         * modules/time_r (Makefile.am): Likewise.
42864         * modules/timegm (Makefile.am): Likewise.
42865         * modules/tmpfile-safer (Makefile.am): Likewise.
42866         * modules/unistd-safer (Makefile.am): Likewise.
42867         * modules/unlinkdir (Makefile.am): Likewise.
42868         * modules/userspec (Makefile.am): Likewise.
42869         * modules/utime (Makefile.am): Likewise.
42870         * modules/utimecmp (Makefile.am): Likewise.
42871         * modules/utimens (Makefile.am): Likewise.
42872         * modules/vasnprintf (Makefile.am): Likewise.
42873         * modules/vasprintf (Makefile.am): Likewise.
42874         * modules/vsnprintf (Makefile.am): Likewise.
42875         * modules/xalloc (Makefile.am): Likewise.
42876         * modules/xgetcwd (Makefile.am): Likewise.
42877         * modules/xnanosleep (Makefile.am): Likewise.
42878         * modules/xreadlink (Makefile.am): Likewise.
42879         * modules/xstrtod (Makefile.am): Likewise.
42880         * modules/xstrtol (Makefile.am): Likewise.
42881         * modules/xstrtold (Makefile.am): Likewise.
42882         * modules/yesno (Makefile.am): Likewise.
42883
42884 2006-10-12  Jim Meyering  <jim@meyering.net>
42885
42886         * m4/getloadavg.m4: Revert the change below.
42887
42888         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
42889         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
42890         fail with a symlink, which is what coreutils' ./bootstrap now
42891         creates by default.
42892
42893 2006-10-12  Bruno Haible  <bruno@clisp.org>
42894
42895         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
42896         mingw.
42897         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
42898         MSVC and mingw explicitly.
42899
42900 2006-10-11  Simon Josefsson  <jas@extundo.com>
42901             Bruno Haible  <bruno@clisp.org>
42902
42903         Add support for multiple gnulib-tool invocations in the scope of a
42904         single configure.ac file.
42905         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
42906         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
42907         with the same contents as the _LIBADD variable.
42908         (func_emit_initmacro_start, func_emit_initmacro_end,
42909         func_emit_initmacro_done): New functions.
42910         (func_import, func_create_testdir): Invoke them. Allow the identifiers
42911         gl_LIBOBJS and gl_LTLIBOBJS.
42912
42913 2006-10-11  Bruno Haible  <bruno@clisp.org>
42914
42915         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
42916         (func_create_testdir): Don't create po/Makefile.am, don't invoke
42917         autoreconf. Instead, invoke autopoint explicitly but move back the
42918         *.m4 files from gnulib.
42919
42920 2006-10-11  Bruno Haible  <bruno@clisp.org>
42921
42922         * gnulib-tool (func_usage): Make module names after --create-testdir
42923         optional.
42924         (func_create_testdir): If no module was specified, use nearly all
42925         modules.
42926
42927 2006-10-12  Jim Meyering  <jim@meyering.net>
42928
42929         Big performance improvement for fts-based tools that use FTS_NOSTAT.
42930         Avoid spurious inode-mismatch problems on non-POSIX file systems.
42931         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
42932         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
42933         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
42934         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
42935         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
42936         (fts_set_stat_required): New function.
42937         (fts_open): Defer the calls to fts_stat, if possible or requested.
42938         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
42939         into fts_stat itself.
42940         (fts_read): Perform any required (deferred) fts_stat call.
42941         (fts_build): Likewise, for the directory we're about to open and read.
42942         In the readdir loop, carefully decide whether each entry will require
42943         an eventual call to fts_stat, using dirent.d_type info if available.
42944         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
42945         a command line argument into this function.  Update all callers.
42946         Map a return value of FTS_DOT to FTS_D for a command line argument.
42947         * modules/fts (Depends-on): Add d-type.  Alphabetize.
42948         Thanks to Miklos Szeredi for his tenacity and for the initial
42949         bug report about "find" failing on a FUSE-based file system.
42950
42951         * lib/fts.c (fts_open): Use consistent indentation.
42952
42953 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
42954
42955         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
42956         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
42957         reported by Jim Meyering.  All uses of cache variables renamed
42958         to match Autoconf's.
42959         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
42960         the other one.
42961
42962         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
42963         Fix misspelling in diagnostic.
42964
42965 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
42966
42967         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
42968         defined.  Problem reported by Matthew Woehlke.
42969
42970         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
42971         Add support for Tandem NonStop R series.
42972         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
42973         Use new macro.
42974
42975         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
42976         (has_trailing_slash): Omit size arg; all callers changed.
42977         Omit 'inline', since it doesn't help performance and we'd
42978         need to configure it.
42979         Don't count //, ///, etc. as having a trailing slash.
42980         As a side effect, this removes a C99ism reported by Matthew Woehlke.
42981         (rpl_rename_dest_slash): On failure, use rename's errno rather
42982         than (in some cases) an incorrect or junk errno.
42983         Simplify code by removing need to compute length; this does
42984         cause it to make two passes instead of one over the file name,
42985         but it's worth it.
42986
42987         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
42988         change, since Autoconf's version may no longer be appropriate now
42989         that we are using CVS Autoconf's version.  Add support for Tandem.
42990
42991 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
42992             Bruno Haible  <bruno@clisp.org>
42993
42994         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
42995         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
42996         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
42997         gl_AC_TYPE_LONG_LONG.
42998
42999         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
43000         instead of HAVE_LONG_LONG.
43001         * lib/printf-args.c (printf_fetchargs): Likewise.
43002         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
43003         * lib/vasnprintf.c (VASNPRINTF): Likewise.
43004         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
43005         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
43006         gl_AC_TYPE_LONG_LONG.
43007
43008 2006-10-11  Bruno Haible  <bruno@clisp.org>
43009
43010         * m4/longlong.m4: Add comments.
43011         * m4/ulonglong.m4: Likewise.
43012
43013 2006-10-10  Bruno Haible  <bruno@clisp.org>
43014
43015         Make it possible to #define stpcpy, strdup to aliases.
43016         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
43017         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
43018
43019 2006-10-10  Bruno Haible  <bruno@clisp.org>
43020
43021         Make it possible to #define gcd to an alias.
43022         * lib/gcd.c: Include config.h.
43023
43024 2006-10-10  Bruno Haible  <bruno@clisp.org>
43025
43026         Make it possible to #define c_isascii to an alias.
43027         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
43028         defined. Undefine the macros before defining them, to avoid gcc
43029         warnings.
43030         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
43031         define NO_C_CTYPE_MACROS early.
43032
43033 2006-10-10  Bruno Haible  <bruno@clisp.org>
43034
43035         Make it possible to #define set_program_name to an alias.
43036         * lib/progname.c: Don't undefine set_program_name; instead, undefine
43037         ENABLE_RELOCATABLE early.
43038
43039 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
43040
43041         Port to Tandem NSK OSS, which has 64-bit signed int but at most
43042         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
43043         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
43044         More generally, don't assume that 64-bit signed int is available
43045         if unsigned int is, and vice versa.
43046         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
43047         unsigned symbols, not on their signed counterparts.
43048         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
43049         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
43050         (UINT64_C, UINTMAX_C):
43051         Likewise.
43052         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
43053         unsigned counterparts.
43054         (Have_long_long, Unsigned): New macros.
43055         (Int): Renamed from INT.
43056         (strtoimax): Use the new macros.
43057         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
43058         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
43059         * modules/inttypes (inttypes.h): Substitute
43060         HAVE_UNSIGNED_LONG_LONG_INT.
43061         * modules/stdint (stdint.h): Likewise.
43062         (Files): Add m4/ulonglong.m4.
43063
43064 2006-10-10  Bruno Haible  <bruno@clisp.org>
43065
43066         Fix a gcc -Wshadow warning.
43067         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
43068         to 'bucket'.
43069         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
43070         gl_linked_indexof_from_to): Likewise.
43071         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
43072         Likewise.
43073         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
43074         Likewise.
43075         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
43076         Reported by Eric Blake.
43077
43078 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
43079
43080         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
43081         for NetBSD.  Problem reported by Bruno Haible.
43082
43083 2006-10-09  Jim Meyering  <jim@meyering.net>
43084
43085         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
43086         Patch from Bruno Haible.
43087
43088 2006-10-09  Jim Meyering  <jim@meyering.net>
43089
43090         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
43091         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
43092         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
43093
43094 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
43095
43096         Don't include <config.h> twice; this doesn't work in some cases,
43097         e.g., when config.h has "#define intmax_t long long int" and
43098         we include <config.h>, <inttypes.h>, <config.h> in that order.
43099         Problem reported by Matthew Woehlke in:
43100         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
43101         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
43102         * lib/fts-cycle.c: Don't include config.h.
43103         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
43104         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
43105         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
43106         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
43107         inttypes.h.
43108         * lib/xstrtoumax.c: Likewise.
43109         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
43110         __strtol and the like, so that this module is more like its siblings.
43111         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
43112         Remove; no longer needed now that we assume gnulib inttypes.h.
43113
43114 2006-10-08  Bruno Haible  <bruno@clisp.org>
43115
43116         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
43117         option.
43118
43119 2006-10-07  Jim Meyering  <jim@meyering.net>
43120
43121         * modules/inttypes (inttypes.h): Revert what seems to have been
43122         an inadvertent part of today's change: use "|", not "/" in the
43123         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
43124
43125 2006-10-07  Bruno Haible  <bruno@clisp.org>
43126
43127         * modules/sublist: New file.
43128
43129 2006-10-07  Bruno Haible  <bruno@clisp.org>
43130
43131         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
43132         * modules/argz (argz.h): Likewise.
43133         * modules/arpa_inet (arpa/inet.h): Likewise.
43134         * modules/byteswap (byteswap.h): Likewise.
43135         * modules/configmake (configmake.h): Likewise.
43136         * modules/fcntl (fcntl.h): Likewise.
43137         * modules/fnmatch (fnmatch.h): Likewise.
43138         * modules/getopt (getopt.h): Likewise.
43139         * modules/glob (glob.h): Likewise.
43140         * modules/inttypes (inttypes.h): Likewise.
43141         * modules/netinet_in (netinet/in.h): Likewise.
43142         * modules/poll (poll.h): Likewise.
43143         * modules/stdbool (stdbool.h): Likewise.
43144         * modules/stdint (stdint.h): Likewise.
43145         * modules/sys_select (sys/select.h): Likewise.
43146         * modules/sys_socket (sys/socket.h): Likewise.
43147         * modules/sys_stat (sys/stat.h): Likewise.
43148         * modules/sysexits (sysexits.h): Likewise.
43149         * modules/unistd (unistd.h): Likewise.
43150         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43151         Add a "DO NOT EDIT" comment to the generated file.
43152         (func_import): Likewise for gnulib-comp.m4.
43153
43154 2006-10-07  Bruno Haible  <bruno@clisp.org>
43155
43156         * lib/gl_sublist.h: New file.
43157         * lib/gl_sublist.c: New file.
43158
43159 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
43160
43161         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
43162         name (relative to the original working directory) and the file
43163         name component (relative to the temporary working directory).  All
43164         callers changed.
43165         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
43166         * lib/mkdir-p.c (make_dir_parents): Likewise.
43167         * lib/mkdir-p.h (make_dir_parents): Likewise.
43168
43169 2006-10-06  Eric Blake  <ebb9@byu.net>
43170
43171         Define several macros for use by the clean-temp module.
43172         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
43173         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
43174         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
43175
43176         * lib/clean-temp.h (close_stream_temp): New declaration.
43177         * lib/clean-temp.c (includes): Pull in headers according to what
43178         other modules are in use.
43179         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
43180
43181 2006-10-06  Bruno Haible  <bruno@clisp.org>
43182
43183         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
43184         instead of fopen, fwriteerror.
43185
43186 2006-10-06  Bruno Haible  <bruno@clisp.org>
43187
43188         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
43189         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
43190         int.
43191         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
43192         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
43193         Return an error indicator.
43194         Suggested by Eric Blake.
43195
43196 2006-10-06  Bruno Haible  <bruno@clisp.org>
43197
43198         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
43199         Reported by Eric Blake.
43200
43201 2006-10-06  Bruno Haible  <bruno@clisp.org>
43202
43203         * modules/closeout (Description): Mention stderr too.
43204
43205 2006-10-06  Bruno Haible  <bruno@clisp.org>
43206         and Paul Eggert  <eggert@cs.ucla.edu>
43207
43208         * lib/closeout.c (close_stdout): Also close stderr.
43209         * lib/closeout.h: Update comment.
43210
43211 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
43212
43213         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
43214         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
43215         * lib/dirchownmod.c: Include lchown.h.
43216         * lib/lchown.c: Don't include files that lchown.h now includes.
43217         Don't declare chown, since lchown.h now does that.
43218         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
43219         (lchown): Define to rpl_chown if lchown is declared but
43220         does not exist.  Declare using a prototype if lchown is not
43221         declared.  Add a copyright notice.
43222         * lib/mkstemp.h: Include <unistd.h>.
43223         * lib/openat.c: Include lchown.h.
43224
43225         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
43226         we now test for that separately.
43227         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
43228         rather than O_NOFOLLOW, when testing whether it's possible to
43229         avoid a race condition reliably.
43230         * lib/savewd.c (savewd_chdir): Likewise.
43231
43232         Remove macros that are no longer needed now that stdint.h is
43233         reliable.
43234         * lib/fsusage.c (UINTMAX_MAX): Remove.
43235         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
43236         * lib/utimecmp.c (SIZE_MAX): Remove.
43237
43238         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
43239
43240         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
43241         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
43242         O_NOATIME works.
43243
43244 2006-10-05  Bruno Haible  <bruno@clisp.org>
43245
43246         * lib/gl_list.h (gl_sortedlist_search_from_to,
43247         gl_sortedlist_indexof_from_to): New declarations.
43248         (gl_list_implementation): New fields sortedlist_search_from_to,
43249         sortedlist_indexof_from_to.
43250         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
43251         inline functions.
43252         * lib/gl_list.c (gl_sortedlist_search_from_to,
43253         gl_sortedlist_indexof_from_to): New functions.
43254         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
43255         function.
43256         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
43257         (gl_array_sortedlist_search_from_to): New function.
43258         (gl_array_list_implementation): Update.
43259         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
43260         function.
43261         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
43262         (gl_carray_sortedlist_search_from_to): New function.
43263         (gl_carray_list_implementation): Update.
43264         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
43265         gl_linked_sortedlist_indexof_from_to): New functions.
43266         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
43267         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
43268         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
43269         gl_tree_sortedlist_indexof_from_to): New functions.
43270         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
43271         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
43272         Update.
43273         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
43274         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
43275         Update.
43276
43277 2006-10-05  Bruno Haible  <bruno@clisp.org>
43278
43279         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
43280         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
43281         (struct gl_list_implementation): Add fields search_from_to,
43282         indexof_from_to. Remove fields search, indexof.
43283         (gl_list_search): Use the search_from_to method.
43284         (gl_list_search_from, gl_list_search_from_to): New functions.
43285         (gl_list_indexof): Use the indexof_from_to method.
43286         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
43287         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
43288         (gl_list_search_from, gl_list_search_from_to): New functions.
43289         (gl_list_indexof): Use the indexof_from_to method.
43290         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
43291         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
43292         gl_array_indexof. Add start_index, end_index arguments.
43293         (gl_array_search_from_to): Renamed from gl_array_search. Add
43294         start_index, end_index arguments.
43295         (gl_array_remove, gl_array_list_implementation): Update.
43296         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
43297         gl_carray_indexof. Add start_index, end_index arguments.
43298         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
43299         start_index, end_index arguments.
43300         (gl_carray_remove, gl_carray_list_implementation): Update.
43301         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
43302         gl_linked_search. Add start_index, end_index arguments.
43303         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
43304         start_index, end_index arguments.
43305         (gl_linked_remove): Update.
43306         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
43307         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
43308         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
43309         field to 'size_t'.
43310         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
43311         gl_tree_search. Add start_index, end_index arguments.
43312         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
43313         start_index, end_index arguments.
43314         (gl_tree_remove): Update.
43315         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
43316         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
43317         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
43318         function.
43319         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
43320         gl_tree_search. Add start_index, end_index arguments.
43321         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
43322         start_index, end_index arguments.
43323         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
43324         Update.
43325         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
43326
43327 2006-10-05  Bruno Haible  <bruno@clisp.org>
43328
43329         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
43330
43331         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
43332         fwriteerror_temp): New declarations.
43333         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
43334         (descriptors): New variable.
43335         (cleanup): First, close the descriptors.
43336         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
43337         fclose_temp, fwriteerror_temp): New functions.
43338
43339 2006-10-04  Jim Meyering  <jim@meyering.net>
43340
43341         * lib/fts.c (fts_open): Tiny comment change.
43342
43343 2006-10-04  Bruno Haible  <bruno@clisp.org>
43344
43345         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
43346         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
43347         gl_LOCK_BODY.
43348         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
43349         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
43350         gl_LOCK_EARLY_BODY.
43351         (gl_LOCK): Require gl_LOCK_BODY.
43352
43353 2006-10-04  Bruno Haible  <bruno@clisp.org>
43354
43355         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
43356         (gl_oset_search_atleast): New declaration.
43357         (struct gl_oset_implementation): Add field 'search_atleast'.
43358         (gl_oset_search_atleast): New inline function.
43359         * lib/gl_oset.c (gl_oset_search_atleast): New function.
43360         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
43361         (gl_array_oset_implementation): Update.
43362         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
43363         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
43364         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
43365
43366 2006-10-04  Bruno Haible  <bruno@clisp.org>
43367
43368         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
43369
43370 2006-10-03  Bruno Haible  <bruno@clisp.org>
43371
43372         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
43373         from gl_avltreehash_list_implementation.
43374
43375 2006-10-03  Bruno Haible  <bruno@clisp.org>
43376
43377         * lib/gl_oset.c (gl_oset_add): Fix return type.
43378
43379 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
43380
43381         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
43382
43383 2006-10-02  Eric Blake  <ebb9@byu.net>
43384
43385         * modules/strnlen (Depends-on): Add extensions.
43386
43387 2006-10-02  Eric Blake  <ebb9@byu.net>
43388
43389         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
43390         definition in 2.60+.
43391
43392 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
43393
43394         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
43395         checks.
43396
43397 2006-10-02  Bruno Haible  <bruno@clisp.org>
43398
43399         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
43400         to the AUTOMAKE_OPTIONS.
43401         Reported by Jim Meyering.
43402
43403 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
43404
43405         Work around bug in Solaris 10 /proc file system:
43406         /proc/self/fd/NNN/.. isn't the parent directory of
43407         the directory whose file descriptor is NNN.  This needs to
43408         be worked around at run time, not compile time, since a
43409         program might be built on Solaris 8, where things work, and
43410         run on Solaris 10.
43411         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
43412         to use the following interface instead:
43413         (OPENAT_BUFFER_SIZE): New macro.
43414         (openat_proc_name): New function.
43415         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
43416         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
43417         Likewise.
43418         * lib/openat-proc.c: New file.
43419         * modules/openat (Files): Add lib/openat-proc.c.
43420         (Depends-on): Add same-inode, stdbool.
43421         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
43422
43423 2006-09-29  Bruno Haible  <bruno@clisp.org>
43424
43425         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
43426         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
43427         argument. Set stdout_closed before testing for ferror, not after.
43428         (fwriteerror, fwriteerror_no_ebadf): New functions.
43429
43430 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43431
43432         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
43433
43434 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
43435
43436         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
43437         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
43438
43439 2006-09-28  Jim Meyering  <jim@meyering.net>
43440
43441         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
43442         Include <unistd.h>.
43443
43444 2006-09-28  Bruno Haible  <bruno@clisp.org>
43445
43446         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
43447         * modules/linkedhash-list (Depends-on): Likewise.
43448         * modules/rbtreehash-list (Depends-on): Likewise.
43449
43450 2006-09-28  Bruno Haible  <bruno@clisp.org>
43451
43452         * lib/strndup.h: Simplify the redefinition of strndup.
43453         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
43454         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
43455
43456 2006-09-28  Bruno Haible  <bruno@clisp.org>
43457
43458         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
43459         * lib/gl_linkedhash_list.c: Likewise.
43460         * lib/gl_rbtreehash_list.c: Likewise.
43461
43462 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
43463
43464         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
43465         getaddrinfo.
43466
43467         * lib/__fpending.h: Don't include <stdio_ext.h> unless
43468         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
43469         it causes <stdio_ext.h> to cause a compile-time error.
43470         Problem reported by Nelson H. F. Beebe.
43471         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
43472         of HAVE_DECL___PENDING.
43473
43474         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
43475         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
43476         declaration.
43477
43478 2006-09-27  Jim Meyering  <jim@meyering.net>
43479
43480         This file could end up with a definition for a function
43481         named __strndup, rather than rpl_strndup on a system with
43482         incomplete weak_alias support.
43483         * lib/strndup.c (strndup): Rename from __strndup.
43484         Remove #defines that used to map __strndup to strndup.
43485         Don't use K&R prototypes.
43486         Remove LIBC-related code, since this file is not sync'd with glibc.
43487         * lib/strndup.h: Revamp, accordingly.
43488         * m4/strndup.m4: Modernize.
43489
43490 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
43491
43492         * modules/savewd (Depends-on): Add 'raise'.
43493         * lib/savewd.c: Include <signal.h>, for 'raise'.
43494
43495 2006-09-26  Jim Meyering  <jim@meyering.net>
43496
43497         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
43498         when we detect Darwin 8.7.0's acl_get_file bug.
43499         Rearrange to perform the new (below) run-test while $LIBS
43500         contains any acl-related library.  Set USE_ACL at the end.
43501         (gl_ACL_GET_FILE): New function.
43502
43503 2006-09-26  Eric Blake  <ebb9@byu.net>
43504
43505         * lib/verror.c: Include <config.h> unconditionally.
43506
43507 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
43508
43509         * modules/clock-time (Maintainer): Add self.
43510         * modules/getlogin_r (Depends-on): Add extensions.
43511
43512 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43513
43514         * modules/clock-time: New module.
43515         * modules/nanosleep (Depends-on): Add clock-time.
43516         * modules/gethrxtime (Depends-on): Likewise.
43517         * modules/gettime (Depends-on): Likewise.
43518         * modules/settime (Depends-on): Likewise.
43519
43520         * modules/fts-lgpl: Depend on openat.
43521         * modules/mkancesdirs: Depend on savewd.
43522         * modules/mkdir-p: Likewise.
43523
43524 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43525
43526         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
43527
43528         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
43529         `gl_have_arbitrary_file_name_length_limit' to
43530         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
43531         actually works between configure runs.
43532
43533 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43534             Bruno Haible  <bruno@clisp.org>
43535
43536         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
43537
43538 2006-09-25  Jim Meyering  <jim@meyering.net>
43539
43540         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
43541         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
43542
43543 2006-09-25  Eric Blake  <ebb9@byu.net>
43544
43545         * gnulib-tool (func_import, func_create_testdir): Fix typos in
43546         exec's in 2006-09-18 patch when shuffling fds.
43547
43548 2006-09-25  Bruno Haible  <bruno@clisp.org>
43549
43550         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
43551         Reported by Jim Meyering.
43552
43553 2006-09-24  Jim Meyering  <jim@meyering.net>
43554
43555         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
43556         compare a pointer against a literal "0".  That caused failures with
43557         at least HP-UX's hpcc.
43558
43559 2006-09-22  Simon Josefsson  <jas@extundo.com>
43560
43561         * modules/gc-sha1:
43562         * modules/gc-md4:
43563         * modules/gc-hmac-sha1:
43564         * modules/gc-hmac-md5:
43565         * modules/gc-des:
43566         * modules/gc-arcfour: Distribute more files.
43567
43568 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43569
43570         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
43571         (gl_linked_iterator_from_to): Initialize struct completely.
43572         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
43573         (gl_tree_iterator_from_to): Likewise
43574         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
43575         * lib/gl_array_list.c [lint] (gl_array_iterator)
43576         (gl_array_iterator_from_to): Likewise.
43577         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
43578         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
43579         (gl_carray_iterator_from_to): Likewise.
43580
43581         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
43582         * lib/md4.c (md4_process_block): Remove unused variable.
43583         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
43584         parentheses for clarity.
43585
43586 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43587
43588         * modules/bison-i18n (Depends-on): Add gettext.
43589
43590 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43591
43592         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
43593         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
43594         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
43595         also add missing comma that caused broken test.
43596         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
43597         stdlib.h, for `abort'.
43598         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
43599         variables.
43600         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
43601         include unistd.h if present, for `rmdir'.
43602         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
43603         variables.
43604         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
43605         in the process include standard headers for prototypes.
43606         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
43607         gets declared on GNU/Linux.
43608         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
43609         unistd.h, for `rmdir'.
43610         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
43611
43612         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
43613         always true.
43614         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
43615
43616         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
43617
43618 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43619
43620         * gnulib-tool (func_version): Create output all at once.  This
43621         may help avoid triggering unnecessary SIGPIPEs, and at any
43622         rate it doesn't hurt.
43623
43624 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43625             Bruno Haible  <bruno@clisp.org>
43626
43627         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
43628         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
43629         * m4/signed.m4 (bh_C_SIGNED): Likewise.
43630
43631         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
43632         (gl_FUNC_VASPRINTF): Invoke it.
43633
43634 2006-09-22  Bruno Haible  <bruno@clisp.org>
43635
43636         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
43637         getloadavg.c as first argument.
43638
43639 2006-09-22  Bruno Haible  <bruno@clisp.org>
43640
43641         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
43642         at the beginning of the gl_INIT macro.
43643         * modules/getloadavg (configure.ac): Pass $gl_source_base to
43644         gl_GETLOADAVG.
43645
43646 2006-09-22  Bruno Haible  <bruno@clisp.org>
43647
43648         * gnulib-tool (func_create_megatestdir): Don't include the config-h
43649         module.
43650         Suggested by Ralf Wildenhues.
43651
43652 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
43653
43654         Import this patch from libc:
43655
43656         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
43657
43658         * lib/regex_internal.c (re_string_reconstruct): Handle
43659         offset < pstr->valid_raw_len && pstr->offsets_needed case.
43660         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
43661         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
43662         re_string_context_at.
43663
43664         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
43665         now requires it.
43666         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
43667         gl_REGEX now does it for us.
43668         (gl_REGEX): Add test taken from
43669         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
43670
43671         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
43672         Check that large offsets work.  Modernize Autoconf usages.
43673         Prefer "yes" to mean a good thing rather than a bad.
43674         Don't put "#define mkstemp" in config.h, as this might interfere
43675         with standard system headers that "#define mkstemp mkstemp64".
43676
43677         * modules/mkstemp (Depends-on): Add extensions, so that
43678         mkstemp is visible on some platforms.
43679         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
43680         (Include): Change to "mkstemp.h" from <stdlib.h>.
43681         (Files): Add mkstemp.h.
43682
43683         * lib/mkstemp.h: New file, since some standard headers
43684         #define mkstemp.
43685         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
43686         Include "mkstemp.h".
43687         Make the _LIBC code resemble glibc original more,
43688         e.g., use K&R style.
43689         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
43690         (mkstemp): Remove, since mkstemp.h does this for us.
43691         * lib/stdlib--.h: Include mkstemp.h.
43692
43693         Import this patch from libc:
43694
43695         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
43696
43697         * lib/tempname.c (__gen_tempname): Change attempts_min
43698         into a macro.  Use preprocessor to decide how to initialize
43699         attempts [Coverity CID 67].
43700
43701 2006-09-20  Bruno Haible  <bruno@clisp.org>
43702
43703         * lib/mkdtemp.c: Import from libc.
43704         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
43705                 * sysdeps/posix/tempname.c (__gen_tempname): Change
43706                 attempts_min into a macro.  Use preprocessor to decide how to
43707                 initialize attempts [Coverity CID 67].
43708         2001-11-27  Paul Eggert  <eggert@twinsun.com>
43709                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
43710                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
43711
43712 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43713
43714         * gnulib-tool (func_exit): New function, to allow to pass the
43715         exit status portably through the trap.  Use everywhere.
43716         (--help, --version): Signal a write error.
43717         (trap): catch SIGPIPE, for write errors.
43718         Exit at the end of the trap, with the correct exit status.
43719
43720 2006-09-19  Karl Berry  <karl@gnu.org>
43721
43722         * doc/gnulib.texi: note about the license texinfo files.
43723
43724 2006-09-19  Eric Blake  <ebb9@byu.net>
43725
43726         * gnulib-tool: Avoid space-tab.
43727
43728 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
43729
43730         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
43731         that prevented coreutils 6.1 from building.  Problem reported
43732         by Petter Reinholdtsen.
43733
43734 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
43735
43736         * gnulib-tool (avoidlist): Fix typo that broke options like
43737         --avoid=lock that are used by coreutils bootstrap.
43738
43739 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
43740
43741         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
43742         more systematically.
43743
43744 2006-09-18  Jim Meyering  <jim@meyering.net>
43745
43746         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
43747
43748 2006-09-18  Bruno Haible  <bruno@clisp.org>
43749
43750         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
43751
43752 2006-09-18  Bruno Haible  <bruno@clisp.org>
43753
43754         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
43755         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
43756         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
43757         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
43758         * m4/gettext.m4: Require autoconf >= 2.52.
43759         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
43760         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
43761         of gl_cv_header_inttypes_h.
43762
43763 2006-09-18  Bruno Haible  <bruno@clisp.org>
43764
43765         * lib/javaversion.c: Include configmake.h.
43766
43767 2006-09-18  Bruno Haible  <bruno@clisp.org>
43768
43769         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
43770         avoid that the while loops be executed in a subshell.
43771
43772 2006-09-18  Bruno Haible  <bruno@clisp.org>
43773
43774         * MODULES.html.sh (func_module): Break long lines.
43775         Suggested by Bruce Korb <bkorb@gnu.org>.
43776
43777 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43778
43779         Speed up by a factor of 1.12.
43780         * gnulib-tool (nl): New variable.
43781         (func_import): Rewrite include directive extraction to only read each
43782         directive once.
43783
43784 2006-09-17  Bruno Haible  <bruno@clisp.org>
43785
43786         * modules/javaversion (Makefile.am): Remove DEFS setting.
43787         (Depends-on): Add configmake, for PKGDATADIR definition.
43788
43789 2006-09-17  Bruno Haible  <bruno@clisp.org>
43790
43791         * gnulib-tool (func_create_testdir): Rewrite all files at once.
43792
43793 2006-09-17  Bruno Haible  <bruno@clisp.org>
43794
43795         * gnulib-tool (func_append): New function, stolen from libtool.m4.
43796         (func_modules_transitive_closure, func_modules_add_dummy,
43797         func_modules_to_filelist, func_import, func_create_testdir,
43798         func_create_megatestdir, ...): Use it wherever possible.
43799         Suggested by Ralf Wildenhues.
43800
43801 2006-09-16  Karl Berry  <karl@gnu.org>
43802
43803         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
43804         to avoid sectioning errors.
43805         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
43806         [ifinfo]: blank line after @center-ed titles.
43807         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
43808         Spell FSF address consistently with others.
43809         (These changes approved by rms.)
43810
43811 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43812
43813         Speed up by a factor of 1.61.
43814         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
43815         already checked module names again.
43816
43817 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43818
43819         Speed up by a factor of 1.13.
43820         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
43821         for new_files, and the input to func_add_or_update.
43822
43823 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43824
43825         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
43826         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
43827
43828 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
43829
43830         * modules/mkancesdirs (Depends-on): Add fcntl.
43831         * modules/savewd: New file.
43832         * MODULES.html.sh (File system functions): Add savewd.
43833
43834         * modules/configmake (Makefile.am): Add support for the
43835         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
43836
43837 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
43838
43839         * m4/savewd.m4: New file.
43840
43841 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
43842
43843         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
43844         (dirchownmod): New arg FD.  All callers changed.
43845         Use FD rather than opening the directory ourself, as opening is
43846         now the caller's responsibility.
43847         * lib/dirchownmod.h: Likewise.
43848         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
43849         hosts that require <sys/types.h> before <sys/stat.h>.  Include
43850         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
43851         (test_dir): Remove.
43852         (mkancesdirs): Return length of prefix of FILE that has already
43853         been made, or -2 if there is a child doing the work.  Redo
43854         algorithm so that it is O(N) rather than O(N**2).  Optimize away
43855         ".", and treat ".." specially since it might stray back into
43856         already-created areas.  Use a subprocess if necessary.  New arg
43857         WD; all users changed.  MAKE_DIR function should now return 1
43858         if it creates a directory that is not readable.  Return -2 if
43859         a child process is spun off.
43860         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
43861         Adjust signature to match code.
43862         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
43863         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
43864         all users changed.
43865         * lib/savewd.c, lib/savewd.h: New files.
43866
43867 2006-09-15  Jim Meyering  <jim@meyering.net>
43868
43869         * modules/rename-dest-slash: New module.
43870         * MODULES.html.sh (posix_compat): Add it here.
43871
43872         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
43873
43874 2006-09-15  Jim Meyering  <jim@meyering.net>
43875
43876         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
43877         file.
43878
43879         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
43880
43881 2006-09-15  Jim Meyering  <jim@meyering.net>
43882
43883         * lib/rename-dest-slash.c (has_trailing_slash): Use
43884         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
43885         (rpl_rename_dest_slash): Perform the cheaper trailing slash
43886         test before testing whether SRC is a directory.
43887         Suggestions from Bruno Haible.
43888
43889         Avoid a warning about an unused variable.
43890         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
43891         into the #ifdef block where it's used.
43892
43893         * lib/rename-dest-slash.c: New file.
43894
43895 2006-09-14  Bruno Haible  <bruno@clisp.org>
43896
43897         * lib/allocsa.c: Include <config.h> unconditionally.
43898         * lib/asnprintf.c: Likewise.
43899         * lib/asprintf.c: Likewise.
43900         * lib/c-strcasecmp.c: Likewise.
43901         * lib/c-strcasestr.c: Likewise.
43902         * lib/c-strncasecmp.c: Likewise.
43903         * lib/c-strstr.c: Likewise.
43904         * lib/classpath.c: Likewise.
43905         * lib/clean-temp.c: Likewise.
43906         * lib/concatpath.c: Likewise.
43907         * lib/copy-file.c: Likewise.
43908         * lib/csharpcomp.c: Likewise.
43909         * lib/csharpexec.c: Likewise.
43910         * lib/execute.c: Likewise.
43911         * lib/fatal-signal.c: Likewise.
43912         * lib/findprog.c: Likewise.
43913         * lib/fwriteerror.c: Likewise.
43914         * lib/gl_array_list.c: Likewise.
43915         * lib/gl_array_oset.c: Likewise.
43916         * lib/gl_avltree_list.c: Likewise.
43917         * lib/gl_avltree_oset.c: Likewise.
43918         * lib/gl_avltreehash_list.c: Likewise.
43919         * lib/gl_carray_list.c: Likewise.
43920         * lib/gl_linked_list.c: Likewise.
43921         * lib/gl_linkedhash_list.c: Likewise.
43922         * lib/gl_list.c: Likewise.
43923         * lib/gl_oset.c: Likewise.
43924         * lib/gl_rbtree_list.c: Likewise.
43925         * lib/gl_rbtree_oset.c: Likewise.
43926         * lib/gl_rbtreehash_list.c: Likewise.
43927         * lib/imaxabs.c: Likewise.
43928         * lib/imaxdiv.c: Likewise.
43929         * lib/javacomp.c: Likewise.
43930         * lib/javaexec.c: Likewise.
43931         * lib/javaversion.c: Likewise.
43932         * lib/linebreak.c: Likewise.
43933         * lib/localcharset.c: Likewise.
43934         * lib/lock.c: Likewise.
43935         * lib/mbchar.c: Likewise.
43936         * lib/mbswidth.c: Likewise.
43937         * lib/mkdtemp.c: Likewise.
43938         * lib/pipe.c: Likewise.
43939         * lib/printf-args.c: Likewise.
43940         * lib/printf-parse.c: Likewise.
43941         * lib/progname.c: Likewise.
43942         * lib/progreloc.c: Likewise.
43943         * lib/readlink.c: Likewise.
43944         * lib/sh-quote.c: Likewise.
43945         * lib/stpcpy.c: Likewise.
43946         * lib/stpncpy.c: Likewise.
43947         * lib/strcasecmp.c: Likewise.
43948         * lib/strcasestr.c: Likewise.
43949         * lib/strcspn.c: Likewise.
43950         * lib/striconv.c: Likewise.
43951         * lib/strncasecmp.c: Likewise.
43952         * lib/strnlen1.c: Likewise.
43953         * lib/strstr.c: Likewise.
43954         * lib/strtok_r.c: Likewise.
43955         * lib/tls.c: Likewise.
43956         * lib/tmpdir.c: Likewise.
43957         * lib/unicodeio.c: Likewise.
43958         * lib/unsetenv.c: Likewise.
43959         * lib/vasnprintf.c: Likewise.
43960         * lib/vasprintf.c: Likewise.
43961         * lib/wait-process.c: Likewise.
43962         * lib/xallocsa.c: Likewise.
43963         * lib/xsetenv.c: Likewise.
43964         * lib/xstriconv.c: Likewise.
43965
43966 2006-09-13  Simon Josefsson  <jas@extundo.com>
43967
43968         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
43969         that internally, suggested by Ralf Wildenhues
43970         <Ralf.Wildenhues@gmx.de>.
43971
43972 2006-09-13  Simon Josefsson  <jas@extundo.com>
43973
43974         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
43975         @LIBOBJS@.
43976         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43977
43978 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
43979
43980         * lib/_fpending.c: Include <config.h> unconditionally, since we no
43981         longer worry about uses that don't define HAVE_CONFIG_H.
43982         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
43983         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
43984         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
43985         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
43986         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
43987         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
43988         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
43989         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
43990         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
43991         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
43992         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
43993         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
43994         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
43995         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
43996         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
43997         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
43998         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
43999         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
44000         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
44001         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
44002         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
44003         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
44004         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
44005         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
44006         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
44007         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
44008         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
44009         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
44010         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
44011         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
44012         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
44013         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
44014         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
44015         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
44016         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
44017         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
44018         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
44019         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
44020         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
44021         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
44022         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
44023         Likewise.
44024
44025 2006-09-13  Eric Blake  <ebb9@byu.net>
44026
44027         * lib/getopt.c: Fix typo in last commit.
44028
44029 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
44030
44031         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
44032         dgettext.
44033
44034 2006-09-12  Jim Meyering  <jim@meyering.net>
44035
44036         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
44037         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
44038         Reported by Nelson H. F. Beebe.
44039
44040 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
44041
44042         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
44043         program_invocation_name and program_invocation_short_name are
44044         initialized.
44045         * lib/argp-namefrob.h: Move declarations of program_invocation_name
44046         and program_invocation_short_name to argp.h, so they are visible
44047         to user programs.
44048         * lib/argp.h: Likewise
44049
44050 2006-09-10  Bruno Haible  <bruno@clisp.org>
44051
44052         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
44053         m4/inttypes_h.m4, m4/uintmax_t.m4.
44054
44055 2006-09-10  Bruno Haible  <bruno@clisp.org>
44056
44057         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
44058         gl_AC_TYPE_UINTMAX_T.
44059
44060 2006-09-10  Bruno Haible  <bruno@clisp.org>
44061
44062         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
44063
44064 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
44065
44066         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
44067         convention.  Text proposed by Bruno Haible.
44068         (struct argp_option): Document the use of N_() wrappers.
44069
44070         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
44071         '\v', and translate the two parts separately, instead of feeding
44072         the whole string to gettext.  This allows to exclude
44073         '\v' from the strings visible to the translator by writing doc
44074         strings as N_("..") "\v" N_("..").
44075
44076 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
44077
44078         * config/srclist.txt: Undo latest change; the bug was fixed.
44079
44080 2006-09-09  Bruno Haible  <bruno@clisp.org>
44081
44082         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
44083         assignments if building a library without libtool.
44084         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
44085         in func_emit_lib_Makefile_am.
44086         (func_import): When building a static library libfoo.a, arrange to
44087         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
44088         (func_create_testdir): Likewise.
44089         * modules/gc (configure.ac, Makefile.am): If building statically,
44090         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
44091         * modules/iconvme (configure.ac, Makefile.am): Likewise.
44092         * modules/striconv (configure.ac, Makefile.am): Likewise.
44093         Based on a suggestion by Ralf Wildenhues.
44094
44095 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
44096
44097         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
44098         Check for unistd.h too, since Autoconf doesn't assume POSIX.
44099         Also:
44100
44101         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
44102         Add year_2050_test to catch glibc bug 2821
44103         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
44104
44105         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
44106         Prefer #ifdef to #if.
44107
44108         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
44109         Return from 'main' instead of calling 'exit'.
44110
44111 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
44112
44113         * lib/mktime.c (guess_time_tm): Fix bug where mktime
44114         returned the maximum time_t value rather than (time_t) -1.
44115         Problem originally reported by William Bardwell
44116         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
44117
44118         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
44119         Moved to here ...
44120         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
44121         ... from here.
44122
44123 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
44124
44125         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
44126         2821 is fixed.
44127
44128 2006-09-08  Jim Meyering  <jim@meyering.net>
44129
44130         Don't make generated files read-only.  That would bother too many
44131         people.  However, do retain the ability to work when targets are
44132         read-only: remove the destination and temporary files before writing
44133         them (when generated via sed or echo), or by using the -f option for
44134         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
44135         * modules/alloca-opt, modules/argz, modules/arpa_inet:
44136         * modules/byteswap, modules/configmake, modules/fcntl:
44137         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
44138         * modules/localcharset, modules/netinet_in, modules/poll:
44139         * modules/stdbool, modules/stdint, modules/sys_select:
44140         * modules/sys_socket, modules/sys_stat, modules/sysexits:
44141
44142 2006-09-08  Jim Meyering  <jim@meyering.net>
44143
44144         Avoid new build failure on FreeBSD 6.0.
44145         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
44146         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
44147         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
44148
44149 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44150
44151         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
44152
44153 2006-09-07  Jim Meyering  <jim@meyering.net>
44154
44155         Fix global typo in last change: use chmod u-w, not chmod u-x.
44156         Spotted by Paul Eggert and Bruce Korb.
44157         * modules/alloca-opt, modules/argz, modules/arpa_inet:
44158         * modules/byteswap, modules/configmake, modules/fcntl:
44159         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
44160         * modules/localcharset, modules/netinet_in, modules/poll:
44161         * modules/stdbool, modules/stdint, modules/sys_select:
44162         * modules/sys_socket, modules/sys_stat, modules/sysexits:
44163
44164 2006-09-06  Jim Meyering  <jim@meyering.net>
44165
44166         Make generated files be read-only.
44167         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
44168         Ensure that each generated file is now read-only.
44169         * modules/argz: Likewise.
44170         * modules/arpa_inet: Likewise.
44171         * modules/byteswap: Likewise.
44172         * modules/configmake: Likewise.
44173         * modules/fcntl: Likewise.
44174         * modules/fnmatch: Likewise.
44175         * modules/getopt: Likewise.
44176         * modules/glob: Likewise.
44177         * modules/inttypes: Likewise.
44178         * modules/netinet_in: Likewise.
44179         * modules/poll: Likewise.
44180         * modules/stdbool: Likewise.
44181         * modules/stdint: Likewise.
44182         * modules/sys_select: Likewise.
44183         * modules/sys_socket: Likewise.
44184         * modules/sys_stat: Likewise.
44185         * modules/sysexits: Likewise.
44186         * modules/localcharset: Same as above, but continue using temporary
44187         file named "t-$@" (why different?) rather than the "$@-t" used
44188         everywhere else.
44189
44190         * modules/sysexits (Makefile.am): Replace literal occurrences
44191         of "sysexit.h" more readable, and more consistent, "$@".
44192
44193 2006-09-06  Bruno Haible  <bruno@clisp.org>
44194
44195         * modules/striconv: New file.
44196         * modules/xstriconv: New file.
44197         * MODULES.html.sh (Internationalization functions): Add striconv,
44198         xstriconv.
44199
44200 2006-09-06  Bruno Haible  <bruno@clisp.org>
44201
44202         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
44203         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
44204         not using libtool correctly.
44205
44206 2006-09-06  Bruno Haible  <bruno@clisp.org>
44207
44208         * lib/striconv.h: New file.
44209         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
44210         iconvstring.c.
44211         * lib/xstriconv.h: New file.
44212         * lib/xstriconv.c: New file.
44213
44214 2006-09-06  Bruno Haible  <bruno@clisp.org>
44215
44216         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
44217         lib_..._LDFLAGS.
44218
44219 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44220
44221         * lib/argz_.h: Sync from Libtool.
44222
44223         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
44224                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44225
44226         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
44227
44228 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
44229
44230         * modules/trim: New file.
44231
44232 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
44233
44234         * lib/trim.h: New file.
44235         * lib/trim.c: New file.
44236
44237 2006-09-05  Bruno Haible  <bruno@clisp.org>
44238
44239         * MODULES.html.sh (String handling): Add trim.
44240
44241 2006-09-04  Karl Berry  <karl@gnu.org>
44242
44243         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
44244         until next release.
44245
44246 2006-09-03  Bruno Haible  <bruno@clisp.org>
44247
44248         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
44249         correctly.
44250
44251 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
44252
44253         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
44254         not gl_GETLOADAVG.  Omit unneeded semicolons.
44255         Problems reported by Ralf Wildenhues in
44256         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
44257         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
44258         at the end, which is the usual gnulib style.
44259
44260         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
44261         of doing all the work ourselves.
44262         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
44263         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
44264
44265 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
44266
44267         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
44268         Problem reported by Ralf Wildenhues in
44269         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
44270
44271         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
44272         HAVE_STRUCT_STATFS_F_FSTYPENAME.
44273
44274 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
44275
44276         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
44277         yesterday's patch by changing test -n to test -z.
44278
44279 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
44280
44281         * modules/getloadavg (Files): Add m4/getloadavg.m4.
44282         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
44283         the former is now obsolescent.
44284
44285         * modules/chdir-long (Depends-on): Add fcntl.
44286
44287 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
44288
44289         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
44290         obsolescent, and programs should use gnulib instead.
44291         * m4/getloadavg.m4: New file, with contents taken from Autoconf
44292         but with prefixes changed.
44293
44294 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
44295
44296         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
44297         or stdbool.h, because they might not exist while configuring.
44298
44299         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
44300         Don't include unistd.h or limits.h; not needed, since chdir-long.h
44301         does that for us.
44302         (O_DIRECTORY): Remove.
44303
44304 2006-08-31  Eric Blake  <ebb9@byu.net>
44305
44306         * gnulib-tool: Don't let emacs change spaces to TAB.
44307
44308 2006-08-31  Bruno Haible  <bruno@clisp.org>
44309
44310         * gnulib-tool: When calling func_import more than once, do it in a
44311         subshell.
44312         Reported by Eric Blake <ebb9@byu.net>.
44313
44314 2006-08-31  Bruno Haible  <bruno@clisp.org>
44315
44316         * gnulib-tool (nl): Remove variable.
44317         (sed_transform_lib_file): Use more robust test for config-h module.
44318         (func_import): Fix typo in 2006-08-25 patch.
44319
44320 2006-08-31  Bruno Haible  <bruno@clisp.org>
44321
44322         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
44323         specified, augment Makefile.am variables instead of assigning them.
44324
44325 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
44326
44327         Work around a bug in both the Linux and SunOS 64-bit kernels:
44328         nanosleep mishandles sleeps for longer than 2**31 seconds.
44329         Problem reported by Frank v Waveren in
44330         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
44331         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
44332         Check for nanosleep bug.
44333         (LIB_NANOSLEEP): Append clock_gettime library if needed.
44334
44335 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
44336
44337         Work around a bug in both the Linux and SunOS 64-bit kernels:
44338         nanosleep mishandles sleeps for longer than 2**31 seconds.
44339         Problem reported by Frank v Waveren in
44340         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
44341         * lib/nanosleep.c (BILLION): New constant.
44342         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
44343         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
44344         implementation.
44345
44346 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
44347
44348         * modules/nanosleep (Depends-on): Add gettime.
44349
44350 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
44351         and Simon Josefsson  <jas@extundo.com>
44352         and Oskar Liljeblad  <oskar@osk.mine.nu>
44353
44354         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
44355         * gnulib-tool (func_import): New license type 'unmodifiable license
44356         text'.
44357         * modules/fdl: Use it.  Longer description.
44358         * module/gpl, module/lgpl: New files.
44359
44360 2006-08-30  Jim Meyering  <jim@meyering.net>
44361
44362         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
44363         shadowing the parameter.
44364
44365 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44366
44367         Sync from Libtool:
44368
44369         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44370
44371         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
44372         sharing with gnulib.  Report by Eric Blake.
44373
44374 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
44375
44376         * modules/isapipe: New file.
44377         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
44378
44379 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
44380
44381         * modules/configmake (Makefile.am): Add a comment, and omit
44382         the CONFIGMAKE_ prefix from generated macro names.  Suggested
44383         by Bruno Haible.
44384
44385 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
44386
44387         * m4/isapipe.m4: New file.
44388
44389 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
44390
44391         * lib/isapipe.c, lib/isapipe.h: New files.
44392
44393 2006-08-29  Jim Meyering  <jim@meyering.net>
44394
44395         * modules/configmake (Makefile.am): Make configmake.h depend on
44396         Makefile.  Otherwise, a stale configmake.h could hang around.
44397
44398 2006-08-29  Eric Blake  <ebb9@byu.net>
44399
44400         * lib/error.c (error_at_line, print_errno_message): Match libc, after
44401         resolution of upstream bug 3044.
44402
44403 2006-08-29  Bruno Haible  <bruno@clisp.org>
44404
44405         * modules/localcharset (Depends-on): Add configmake.
44406         (Makefile.am): Remove setting of LIBDIR through DEFS.
44407
44408 2006-08-29  Bruno Haible  <bruno@clisp.org>
44409
44410         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
44411         defined.
44412
44413 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44414
44415         * modules/fcntl: New file.
44416         * modules/chdir-safer (Depends-on): Add fcntl.
44417         * modules/fts: Likewise.
44418         * modules/mkdir-p: Likewise.
44419
44420         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
44421         This undoes the most recent change, since we're now addressing the
44422         problem in a different way.
44423
44424         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
44425         into output, since the output might be called Makefile.am even
44426         if $makefile_name is something different.
44427         (func_import): Use $makefile_am rather than
44428         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
44429         empty.
44430
44431         * modules/inttypes (Files): Add m4/inttypes-h.m4.
44432
44433 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44434
44435         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
44436         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
44437         recent change to stdint.m4, since we're now addressing the problem in a
44438         different way.
44439
44440 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44441
44442         * m4/fcntl_h.m4: New file.
44443
44444 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44445
44446         * lib/fcntl_.h: New file.
44447         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
44448         the fcntl module.
44449         * lib/dirchownmod.c: Likewise.
44450         * lib/fts.c: Likewise.
44451
44452         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
44453         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
44454         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
44455         just before including <inttypes.h>, to avoid circular inclusion.
44456
44457 2006-08-28  Jim Meyering  <jim@meyering.net>
44458
44459         * doc/visibility.texi: Actually read and correct the grammar of the
44460         sentence affected by yesterday's change.
44461
44462 2006-08-28  Eric Blake  <ebb9@byu.net>
44463
44464         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
44465         needs wrapper.
44466
44467 2006-08-28  Eric Blake  <ebb9@byu.net>
44468
44469         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
44470
44471 2006-08-28  Eric Blake  <ebb9@byu.net>
44472
44473         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
44474
44475 2006-08-28  Bruno Haible  <bruno@clisp.org>
44476
44477         * modules/c-strstr: New file, from GNU gettext.
44478         * MODULES.html.sh (String handling): Add c-strstr.
44479
44480 2006-08-28  Bruno Haible  <bruno@clisp.org>
44481
44482         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
44483         macros.
44484         Reported by Eric Blake.
44485
44486 2006-08-28  Bruno Haible  <bruno@clisp.org>
44487
44488         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
44489         (VASNPRINTF): Return a string of length > INT_MAX without failing.
44490         * lib/vasprintf.c: Include errno.h, limits.h.
44491         (EOVERFLOW): New fallback definition.
44492         (vasprintf): Test here whether the string length is > INT_MAX.
44493         * lib/vsnprintf.c: Include errno.h, limits.h.
44494         (EOVERFLOW): New fallback definition.
44495         (vsnprintf): Fix bug when generated string was too long for the buffer.
44496         Test here whether the string length is > INT_MAX.
44497
44498 2006-08-28  Bruno Haible  <bruno@clisp.org>
44499
44500         * lib/inttypes_.h (SCNX*): Remove definitions.
44501         Reported by Eric Blake.
44502
44503 2006-08-28  Bruno Haible  <bruno@clisp.org>
44504
44505         * lib/c-strstr.h: New file, from GNU gettext.
44506         * lib/c-strstr.c: New file, from GNU gettext.
44507
44508 2006-08-28  Bruno Haible  <bruno@clisp.org>
44509
44510         * gnulib-tool: Reorder some statements.
44511
44512 2006-08-28  Bruno Haible  <bruno@clisp.org>
44513
44514         * gnulib-tool: New option --makefile-name.
44515         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
44516         $makefile_name.
44517         (func_import): Write $makefile_name to the cache file, and read it from
44518         there unless explicitly specified. Use $makefile_name as file name
44519         instead of Makefile.am. Adjust the recommendations accordingly.
44520
44521 2006-08-28  Bruno Haible  <bruno@clisp.org>
44522
44523         * gnulib-tool (func_verify_module): Check against misapplying patch.
44524
44525 2006-08-28  Bruno Haible  <bruno@clisp.org>
44526
44527         * gnulib-tool (func_relativize, func_relconcat): New functions.
44528         Give an error if --local-dir is given with --update.
44529         Remove trailing slashes from $local_gnulib_dir.
44530         (func_import): Store the relativized $local_gnulib_dir in
44531         gnulib-cache.m4, and read it from there if not specified explicitly.
44532
44533 2006-08-28  Bruno Haible  <bruno@clisp.org>
44534
44535         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
44536         is the current directory. Respect also $local_gnulib_dir.
44537
44538 2006-08-28  Bruno Haible  <bruno@clisp.org>
44539             Simon Josefsson  <jas@extundo.com>
44540
44541         BeOS portability.
44542         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
44543
44544 2006-08-27  Jim Meyering  <jim@meyering.net>
44545
44546         * doc/visibility.texi: Remove duplicate word: "pointer".
44547
44548 2006-08-26  Bruno Haible  <bruno@clisp.org>
44549
44550         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
44551         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
44552         (Makefile.am): Create inttypes.h from inttypes_.h.
44553         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
44554
44555         * modules/imaxabs: New file.
44556
44557         * modules/imaxdiv: New file.
44558
44559 2006-08-26  Bruno Haible  <bruno@clisp.org>
44560
44561         * m4/inttypes.m4: New file.
44562         * m4/_inttypes_h.m4: Remove file.
44563         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
44564         PRI_MACROS_BROKEN.
44565         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
44566
44567         * m4/imaxabs.m4: New file.
44568
44569         * m4/imaxdiv.m4: New file.
44570
44571 2006-08-26  Bruno Haible  <bruno@clisp.org>
44572
44573         * lib/inttypes_.h: New file.
44574         * lib/inttypes.h: Remove file.
44575         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
44576
44577         * lib/imaxabs.c: New file.
44578
44579         * lib/imaxdiv.c: New file.
44580
44581 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
44582
44583         New config-h module, so that "make" output needn't be cluttered
44584         by -DHAVE_CONFIG_H.
44585         * MODULES.html.sh (Support for building libraries and executables):
44586         Add config-h.
44587         * modules/config-h: New file.
44588         * gnulib-tool (nl, sed_transform_lib_file): New vars.
44589         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
44590         the config-h module is used.
44591
44592         New configmake module, so that "make" output needn't be cluttered
44593         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
44594         * MODULES.html.sh (Support for building libraries and executables):
44595         Add configmake.
44596         * modules/configmake: New file.
44597
44598 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
44599
44600         * m4/config-h.m4: New file.
44601
44602 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
44603
44604         * config/srclist.txt: Add elisp-comp.
44605
44606 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
44607
44608         * MODULES.html.sh (Support for building libraries and executables):
44609         Add elisp-comp.
44610         * build-aux/elisp-comp: New file.
44611         * modules/elisp-comp: New file.
44612
44613 2006-08-24  Bruno Haible  <bruno@clisp.org>
44614
44615         * gnulib-tool (func_create_testdir): Use non-default values of
44616         sourcebase and m4base.
44617
44618 2006-08-24  Bruno Haible  <bruno@clisp.org>
44619
44620         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
44621         HTML structure.
44622
44623 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
44624
44625         * modules/openat (Depends-on): Add lchown.
44626
44627 2006-08-23  Bruno Haible  <bruno@clisp.org>
44628
44629         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
44630         of gl_LOCK_EARLY instead of gl_LOCK.
44631
44632 2006-08-23  Bruno Haible  <bruno@clisp.org>
44633
44634         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
44635         on OSF/1 to no.
44636         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
44637
44638 2006-08-23  Bruno Haible  <bruno@clisp.org>
44639
44640         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
44641         as unusable.
44642
44643         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
44644         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
44645         (gl_LOCK): New macro.
44646
44647 2006-08-22  Simon Josefsson  <jas@extundo.com>
44648
44649         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
44650         to md5 module.
44651
44652 2006-08-22  Simon Josefsson  <jas@extundo.com>
44653
44654         * MODULES.html.sh: Add "Support for maintaining and release
44655         projects".
44656
44657         * build-aux/gnupload: New file, from coreutils.
44658
44659 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
44660
44661         Avoid the need for AC_LIBSOURCES in m4 macros.
44662         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
44663         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
44664         * modules/check-version (EXTRA_DIST): Add check-version.h.
44665         * modules/crc (EXTRA_DIST): Add crc.h.
44666         * modules/des (EXTRA_DIST): Add des.h.
44667         * modules/gc (EXTRA_DIST): Add gc.h.
44668         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
44669         * modules/getline (EXTRA_DIST): Add getline.h.
44670         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
44671         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
44672         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
44673         * modules/md2 (EXTRA_DIST): Add md2.h.
44674         * modules/md4 (EXTRA_DIST): Add md4.h.
44675         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
44676         * modules/read-file (EXTRA_DIST): Add read-file.h.
44677         * modules/readline (EXTRA_DIST): Add readline.h.
44678         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
44679         rijndael-api-fst.h.
44680
44681 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
44682
44683         * m4/rijndael.m4 (gl_ARCFOUR):
44684         * m4/arctwo.m4 (gl_ARCTWO):
44685         * m4/check-version.m4 (gl_CHECK_VERSION):
44686         * m4/crc.m4 (gl_CRC):
44687         * m4/des.m4 (gl_DES):
44688         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
44689         * m4/gc.m4 (gl_GC):
44690         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
44691         * m4/getline.m4 (gl_FUNC_GETLINE):
44692         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
44693         * m4/hmac-md5.m4 (gl_HMAC_MD5):
44694         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
44695         * m4/md2.m4 (gl_MD2):
44696         * m4/md4.m4 (gl_MD4):
44697         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
44698         * m4/read-file.m4 (gl_FUNC_READ_FILE):
44699         * m4/readline.m4 (gl_FUNC_READLINE):
44700         * m4/rijndael.m4 (gl_RIJNDAEL):
44701         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
44702         to get the necessary .h files and whatnot.
44703
44704 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
44705
44706         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
44707         gnulib rather than the other way around.
44708         * config/srclistvars.sh (COREUTILS): Remove.
44709
44710 2006-08-22  Jim Meyering  <jim@meyering.net>
44711
44712         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
44713
44714         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
44715
44716 2006-08-22  Eric Blake  <ebb9@byu.net>
44717
44718         * modules/regexprops-generic: New file.
44719         * MODULES.html.sh (Support for building documentation): List it.
44720
44721 2006-08-22  Eric Blake  <ebb9@byu.net>
44722
44723         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
44724         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
44725         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
44726         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
44727
44728 2006-08-22  Bruno Haible  <bruno@clisp.org>
44729
44730         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
44731         and lib_LTLIBRARIES like the other lib_* variables.
44732
44733 2006-08-22  Bruno Haible  <bruno@clisp.org>
44734
44735         * build-aux/x-to-1.in: New file, from GNU gettext.
44736
44737 2006-08-22  Bruno Haible  <bruno@clisp.org>
44738
44739         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
44740         <utmpx.h> exists.
44741
44742 2006-08-22  Bruno Haible  <bruno@clisp.org>
44743
44744         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
44745         <utmpx.h> exists.
44746
44747 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
44748
44749         BeOS portability.
44750         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
44751         exist.
44752         Problem reported by Bruno Haible.
44753
44754 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
44755
44756         Avoid the need for AC_LIBSOURCES in m4 macros.
44757         * modules/acl (EXTRA_DIST): Add acl.h.
44758         * modules/argmatch (Files): Add m4/argmatch.m4.
44759         (configure.ac): Add gl_ARGMATCH.
44760         (EXTRA_DIST): Renamed from lib_SOURCES, for
44761         consistency with the other modules.  Remove argmatch.c.
44762         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
44763         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
44764         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
44765         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
44766         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
44767         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
44768         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
44769         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
44770         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
44771         * modules/closeout (EXTRA_DIST): Add closeout.h.
44772         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
44773         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
44774         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
44775         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
44776         dirname.h; remove basename.c and stripslash.c.
44777         * modules/exclude (EXTRA_DIST): Add exclude.h.
44778         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
44779         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
44780         * modules/file-type (EXTRA_DIST): Add file-type.h.
44781         * modules/filemode (EXTRA_DIST): Add filemode.h.
44782         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
44783         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
44784         * modules/fpending (EXTRA_DIST): Add __fpending.h.
44785         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
44786         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
44787         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
44788         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
44789         * modules/getdate (EXTRA_DIST): Add getdate.c.
44790         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
44791         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
44792         * modules/getpass (EXTRA_DIST): Add getpass.h.
44793         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
44794         * modules/group-member (EXTRA_DIST): Add group-member.h.
44795         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
44796         * modules/hash (EXTRA_DIST): Add hash.h.
44797         * modules/human (EXTRA_DIST): Add human.h.
44798         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
44799         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
44800         * modules/lchown (EXTRA_DIST): Add lchown.h.
44801         * modules/long-options (EXTRA_DIST): Add long-options.h.
44802         * modules/lstat (EXTRA_DIST): Add lstat.h.
44803         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
44804         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
44805         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
44806         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
44807         * modules/memxor (EXTRA_DIST): Add memxor.h.
44808         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
44809         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
44810         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
44811         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
44812         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
44813         * modules/physmem (EXTRA_DIST): Add physmem.h.
44814         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
44815         * modules/posixver (EXTRA_DIST): Add posixver.h.
44816         * modules/quote (EXTRA_DIST): Add quote.h.
44817         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
44818         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
44819         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
44820         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
44821         regex_internal.h regexec.c.
44822         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
44823         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
44824         * modules/same (EXTRA_DIST): Add same.h.
44825         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
44826         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
44827         * modules/savedir (EXTRA_DIST): Add savedir.h.
44828         * modules/sha1 (EXTRA_DIST): Add sha1.h.
44829         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
44830         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
44831         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
44832         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
44833         * modules/strdup (EXTRA_DIST): Add strdup.h.
44834         * modules/strftime (EXTRA_DIST): Add strftime.h.
44835         * modules/strndup (EXTRA_DIST): Add strndup.h.
44836         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
44837         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
44838         * modules/time_r (EXTRA_DIST): Add time_r.h.
44839         * modules/timespec (EXTRA_DIST): Add timespec.h.
44840         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
44841         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
44842         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
44843         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
44844         * modules/userspec (EXTRA_DIST): Add userspec.h.
44845         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
44846         * modules/utimens (EXTRA_DIST): Add utimens.h.
44847         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
44848         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
44849         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
44850         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
44851         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
44852         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
44853         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
44854         * modules/yesno (EXTRA_DIST): Add yesno.h.
44855
44856 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
44857
44858         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
44859
44860         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
44861         * m4/dev-ino.m4, same-inode.m4: Remove.
44862
44863         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
44864         * m4/acl.m4 (AC_FUNC_ACL):
44865         * m4/backupfile.m4 (gl_BACKUPFILE):
44866         * m4/c-strtod.m4 (gl_C99_STRTOLD):
44867         * m4/canon-host.m4 (gl_CANON_HOST):
44868         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
44869         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
44870         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
44871         * m4/cloexec.m4 (gl_CLOEXEC):
44872         * m4/close-stream.m4 (gl_CLOSE_STREAM):
44873         * m4/closeout.m4 (gl_CLOSEOUT):
44874         * m4/dirfd.m4 (gl_FUNC_DIRFD):
44875         * m4/dirname.m4 (gl_DIRNAME):
44876         * m4/exclude.m4 (gl_EXCLUDE):
44877         * m4/exitfail.m4 (gl_EXITFAIL):
44878         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
44879         * m4/file-type.m4 (gl_FILE_TYPE):
44880         * m4/filemode.m4 (gl_FILEMODE):
44881         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
44882         * m4/fpending.m4 (gl_FUNC_FPENDING):
44883         * m4/fprintftime.m4 (gl_FPRINTFTIME):
44884         * m4/fts.m4 (gl_FUNC_FTS):
44885         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
44886         * m4/getdate.m4 (gl_GETDATE):
44887         * m4/gethrxtime.m4 (gl_GETHRXTIME):
44888         * m4/getpagesize.m4 (gl_GETPAGESIZE):
44889         * m4/getpass.m4 (gl_FUNC_GETPASS):
44890         * m4/gettime.m4 (gl_GETTIME):
44891         * m4/getugroups.m4 (gl_GETUGROUPS):
44892         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
44893         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
44894         * m4/hard-locale.m4 (gl_HARD_LOCALE):
44895         * m4/hash.m4 (gl_HASH):
44896         * m4/idcache.m4 (gl_IDCACHE):
44897         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
44898         * m4/lchown.m4 (gl_FUNC_LCHOWN):
44899         * m4/long-options.m4 (gl_LONG_OPTIONS):
44900         * m4/lstat.m4 (gl_FUNC_LSTAT):
44901         * m4/md5.m4 (gl_MD5):
44902         * m4/memcasecmp.m4 (gl_MEMCASECMP):
44903         * m4/memcoll.m4 (gl_MEMCOLL):
44904         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
44905         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
44906         * m4/memxor.m4 (gl_MEMXOR):
44907         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
44908         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
44909         * m4/modechange.m4 (gl_MODECHANGE):
44910         * m4/mountlist.m4 (gl_MOUNTLIST):
44911         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
44912         * m4/openat.m4 (gl_FUNC_OPENAT):
44913         * m4/pathmax.m4 (gl_PATHMAX):
44914         * m4/physmem.m4 (gl_PHYSMEM):
44915         * m4/posixtm.m4 (gl_POSIXTM):
44916         * m4/posixver.m4 (gl_POSIXVER):
44917         * m4/quote.m4 (gl_QUOTE):
44918         * m4/quotearg.m4 (gl_QUOTEARG):
44919         * m4/readtokens.m4 (gl_READTOKENS):
44920         * m4/readutmp.m4 (gl_READUTMP):
44921         * m4/regex.m4 (gl_REGEX):
44922         * m4/safe-read.m4 (gl_SAFE_READ):
44923         * m4/safe-write.m4 (gl_SAFE_WRITE):
44924         * m4/same.m4 (gl_SAME):
44925         * m4/save-cwd.m4 (gl_SAVE_CWD):
44926         * m4/savedir.m4 (gl_SAVEDIR):
44927         * m4/settime.m4 (gl_SETTIME):
44928         * m4/sha1.m4 (gl_SHA1):
44929         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
44930         * m4/stat-macros.m4 (gl_STAT_MACROS):
44931         * m4/stat-time.m4 (gl_STAT_TIME):
44932         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
44933         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
44934         * m4/strdup.m4 (gl_FUNC_STRDUP):
44935         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
44936         * m4/strndup.m4 (gl_FUNC_STRNDUP):
44937         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
44938         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
44939         * m4/time_r.m4 (gl_TIME_R):
44940         * m4/timespec.m4 (gl_TIMESPEC):
44941         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
44942         * m4/unlinkdir.m4 (gl_UNLINKDIR):
44943         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
44944         * m4/userspec.m4 (gl_USERSPEC):
44945         * m4/utimecmp.m4 (gl_UTIMECMP):
44946         * m4/utimens.m4 (gl_UTIMENS):
44947         * m4/xalloc.m4 (gl_XALLOC):
44948         * m4/xgetcwd.m4 (gl_XGETCWD):
44949         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
44950         * m4/xreadlink.m4 (gl_XREADLINK):
44951         * m4/xstrtod.m4 (gl_XSTRTOD):
44952         * m4/yesno.m4 (gl_YESNO):
44953         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
44954         to get the necessary .h files and whatnot.
44955
44956 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
44957             Bruno Haible  <bruno@clisp.org>
44958
44959         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
44960         /bin/sh understanding of '!' conditional negation.
44961
44962 2006-08-21  Jim Meyering  <jim@meyering.net>
44963
44964         * modules/openat (Depends-on): Really alphabetize.
44965
44966         * modules/acl (Depends-on): Add error and quote.
44967
44968         * check-module (find_included_lib_files): Add at-func.c to the
44969         ok-to-include-more-than-once white list.
44970
44971         * modules/openat (Depends-on): Add lstat.  Alphabetize.
44972
44973 2006-08-21  Bruno Haible  <bruno@clisp.org>
44974
44975         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44976         Emit a pkgdata_DATA variable only if some snippets add contents to it.
44977         Reported by Martin Lambers <marlam@marlam.de>.
44978
44979 2006-08-21  Bruno Haible  <bruno@clisp.org>
44980
44981         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
44982         specify an installation location, don't emit a noinst_LIBRARIES or
44983         noinst_LTLIBRARIES assignment.
44984
44985 2006-08-21  Bruno Haible  <bruno@clisp.org>
44986
44987         BeOS portability.
44988         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
44989         BeOS has mbrtowc() but no <wctype.h>.
44990
44991 2006-08-21  Bruno Haible  <bruno@clisp.org>
44992
44993         BeOS portability.
44994         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
44995         exist.
44996
44997 2006-08-21  Bruno Haible  <bruno@clisp.org>
44998
44999         BeOS portability.
45000         * lib/mbchar.h: Include <wctype.h> only if it exists.
45001
45002 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
45003
45004         Remove files that are no longer needed by their respective modules.
45005         * m4/obstack.m4: Remove.
45006         * m4/strerror_r.m4: Remove.
45007         * m4/uint32_t.m4: Remove.
45008         * m4/uintptr_t.m4: Remove.
45009         * m4/ullong_max.m4: Remove.
45010         * m4/xstrtoimax.m4: Remove.
45011         * m4/xstrtoumax.m4: Remove.
45012
45013         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
45014         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
45015         dependencies now capture this.
45016
45017         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
45018         Do not use AC_LIBSOURCES, since gnulib modules now do this.
45019         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
45020         * m4/human.m4 (gl_HUMAN): Likewise.
45021         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
45022         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
45023
45024         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
45025
45026         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
45027         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
45028         stdint.
45029         * m4/human.m4 (gl_HUMAN): Likewise.
45030         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
45031         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
45032         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
45033         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
45034         * m4/xstrtol (gl_XSTRTOL): Likewise.
45035
45036         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
45037         AC_TYPE_LONG_LONG_INT.
45038         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
45039         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
45040         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
45041         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
45042
45043         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
45044         on stdbool.
45045
45046         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
45047         (gl_PREREQ_XSTRTOUL): Remove.
45048
45049         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
45050
45051         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
45052         mode.
45053
45054 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
45055
45056         Add and change modules to make it easier for coreutils to use
45057         gnulib-tool.
45058         * modules/backupfile (Files): Remove m4/d-ino.m4.
45059         (Depends-on): Add d-ino.
45060         * modules/cycle-check (Depends-on): Add stdint.
45061         (lib_SOURCES): Add cycle-check.h.
45062         * modules/d-ino: New module.
45063         * modules/d-type: New module.
45064         * modules/error (Files): Remove m4/strerror_r.m4.
45065         * modules/filemode (Files): Add m4/st_dm_mode.m4.
45066         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
45067         m4/inttypes_h.m4, m4/uintmax_t.m4.
45068         (Depends-on): Add stdint.
45069         (lib_SOURCES): Add fsusage.h.
45070         * modules/getcwd (Files): Remove d-ino.m4.
45071         (Depends-on): Add d-ino.
45072         * modules/getndelim2 (Depends-on): Add stdint.
45073         * modules/glob (Files): Remove m4/d-type.m4.
45074         (Depends-on): Add d-type.
45075         * modules/host-os: New module.
45076         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
45077         m4/inttypes_h.m4, m4/uintmax_t.m4.
45078         * Depends-on: Add stdint.
45079         (lib_SOURCES): Add human.h.
45080         * modules/inttostr (Files): Remove m4/intmax_t.m4,
45081         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
45082         m4/uintmax_t.m4, m4/ulonglong.m4.
45083         (Depends-on): Add stdint.
45084         (EXTRA_DIST): Add inttostr.h.
45085         * modules/lchmod: New module.
45086         * modules/link-follow: New module.
45087         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
45088         (Depends-on): Add lchmod.
45089         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
45090         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
45091         (Depends-on): Add stdint.
45092         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
45093         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
45094         (Depends-on): Add stdint.
45095         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
45096         * modules/perl: New module.
45097         * modules/regex (Depends-on): Add stdint.
45098         * modules/rmdir-errno: New module.
45099         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
45100         m4/intmax_t.m4.
45101         (Depends-on): Add stdint.
45102         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
45103         m4/uintmax_t.m4.
45104         (Depends-on): Add stdint.
45105         * modules/unlink-busy: New module.
45106         * modules/utimecmp (Depends-on): Add stdint.
45107         * modules/uptime: New module.
45108         * modules/winsz-ioctl: New module.
45109         * modules/winsz-termios: New module.
45110         * modules/xnanosleep (Depends-on): Add nanosleep.
45111         * modules/ullong_max: Remove.
45112         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
45113         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
45114         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
45115         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
45116         (Depends-on): Add inttypes.
45117         (lib_SOURCES): Add xstrtol.h.
45118         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
45119         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
45120         * MODULES.html.sh: Move 'assert' into the assert section.
45121         Move 'dummy' into the linking section.
45122         Remove ullong_max.
45123         Add section for compatibility checks for POSIX:2001 functions,
45124         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
45125         winsz-ioctl, and winsz-termios into it.
45126         Add lchmod.
45127         Add top-level Misc section and put host-os, perl, and uptime
45128         into it.
45129
45130 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
45131
45132         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
45133         now assume the stdint module.  Do not include inttypes.h.
45134         * lib/fsusage.h: Likewise.
45135         * lib/getndelim2.c: Likewise.
45136         * lib/human.h: Likewise.
45137         * lib/inttostr.h: Likewise.
45138         * lib/obstack.c: Likewise.
45139         * lib/regex_internal.h: Likewise.
45140         * lib/tempname.c: Likewise.
45141         * lib/utimecmp.c: Likewise.
45142         * lib/xstrtol.h: Likewise.
45143
45144         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
45145
45146         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
45147         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
45148         * lib/xtime.h: Likewise.
45149
45150 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
45151
45152         * modules/openat (Files): Add lib/fchmodat.c.
45153         Fixes problem reported by Jay Youngman.
45154
45155 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
45156
45157         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
45158         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
45159
45160 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
45161             Bruno Haible  <bruno@clisp.org>
45162
45163         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
45164         and is a script that invokes bison. Tighten the code. Add comments.
45165
45166 2006-08-18  Jim Meyering  <jim@meyering.net>
45167
45168         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
45169         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
45170         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
45171         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
45172
45173 2006-08-18  Bruno Haible  <bruno@clisp.org>
45174
45175         * modules/bison-i18n: New file.
45176         * MODULES.html.sh (Internationalization functions): Add it.
45177
45178 2006-08-18  Bruno Haible  <bruno@clisp.org>
45179
45180         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
45181         sys/statvfs.h. When getmntinfo was found, check its declaration and
45182         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
45183
45184 2006-08-18  Bruno Haible  <bruno@clisp.org>
45185
45186         * m4/bison-i18n.m4: New file, from bison.
45187
45188 2006-08-18  Bruno Haible  <bruno@clisp.org>
45189
45190         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
45191         (ME_DUMMY): Treat "kernfs" as a dummy.
45192         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
45193
45194 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
45195
45196         Update from coreutils.
45197
45198         2006-08-15  Jim Meyering  <jim@meyering.net>
45199
45200         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
45201
45202         2006-01-17  Jim Meyering  <jim@meyering.net>
45203
45204         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
45205
45206         2006-01-11  Jim Meyering  <jim@meyering.net>
45207
45208         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
45209         Check for the lchmod function.
45210
45211 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
45212
45213         Update from coreutils.
45214
45215         * lib/__fpending.h: Add copyright notice.
45216         * lib/fprintftime.h: Likewise.
45217         * lib/savedir.c: Use (C) in copyright notice.
45218         * lib/savedir.h: Likewise.
45219
45220         2006-08-15  Jim Meyering  <jim@meyering.net>
45221
45222         * lib/at-func.c: New file, with the logic of all emulated at-functions.
45223         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
45224         in support of the EXPECTED_ERRNO macro.
45225         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
45226         definitions.  Instead, define the appropriate symbols and include
45227         "at-func.c".
45228         * lib/mkdirat.c (mkdirat): Likewise.
45229         * lib/fchmodat.c (fchmodat): Likewise.
45230         (ENOSYS): Remove definition.
45231         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
45232         it.  Don't include "unistd--.h" -- it wasn't ever used.
45233
45234         2006-01-17  Jim Meyering  <jim@meyering.net>
45235
45236         Rewrite fts.c not to change the current working directory,
45237         by using openat, fstatat, fdopendir, etc..
45238
45239         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
45240         (HAVE_OPENAT_SUPPORT): Define.
45241         [_LIBC] (fchdir): Don't undef or define; no longer used.
45242         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
45243         Now, this `function' always succeeds, and consumes its file descriptor
45244         parameter -- so callers must not close such FDs.  Update callers.
45245         (diropen_fd, opendirat, cwd_advance_fd): New functions.
45246         (diropen): Add parameter, SP.  Adjust all callers.
45247         Implement using diropen_fd, rather than open.
45248         (fts_open): Initialize new member, fts_cwd_fd.
45249         Remove fts_rft-setting code.
45250         (fts_close): Close fts_cwd_fd, if necessary.
45251         (__opendir2): Define in terms of opendir or opendirat,
45252         depending on whether the FST_NOCHDIR flag is set.
45253         (fts_build): Since fts_safe_changedir consumes its FD, and since
45254         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
45255         and close the dup'd file descriptor upon failure.
45256         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
45257         (fts_safe_changedir): Tweak semantics to reflect that this function
45258         now calls cwd_advance_fd and hence consumes its FD argument.
45259         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
45260         [struct FTS] (fts_rft): Remove now-unused member.
45261         [struct FTS] (fts_cycle.state): Improve comment.
45262
45263         * lib/openat.c (openat_needs_fchdir): New function.
45264         * lib/openat.h (openat_needs_fchdir): Declare it.
45265
45266 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
45267
45268         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
45269         Problem and fix reported by Pádraig Brady in
45270         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
45271
45272 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
45273
45274         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
45275
45276 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
45277
45278         * lib/memcoll.c (memcoll): Optimize for the common case where the
45279         arguments are bytewise equal.
45280
45281 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
45282
45283         * doc/regexprops-generic.texi: Add a copyright notice.
45284
45285 2006-08-15  Bruno Haible  <bruno@clisp.org>
45286
45287         * modules/tmpdir (License): Change to LGPL.
45288
45289 2006-08-15  Bruno Haible  <bruno@clisp.org>
45290
45291         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
45292         module.
45293
45294 2006-08-14  Simon Josefsson  <jas@extundo.com>
45295
45296         * config/srclist.txt: Add gnupload.
45297
45298 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45299
45300         Change copyright notice from LGPL 2 to GPL 2, since that's the
45301         standard form used in the gnulib repository.
45302         * tests/test-lock.c: Likewise.
45303         * tests/test-stdint.c: Likewise.
45304         * tests/test-tls.c: Likewise.
45305
45306         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
45307         prelude-manager.  User shorter URLs for GNU projects, without '?'.
45308         Add copyright notice.
45309
45310         * check-module: Add copyright notice.  Output a copyright
45311         notice if "--version" is specified.
45312         * modules/COPYING: New file.
45313         * tests/test-getaddrinfo.c: Add copyright notice.
45314         * tests/test-verify.c: Likewise.
45315
45316 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45317
45318         Change copyright notice from LGPL 2 to GPL 2, since that's the
45319         standard form used in the gnulib repository.
45320         * lib/lock.c: LGPL -> GPL.
45321         * lib/lock.h: Likewise.
45322         * lib/strnlen1.c: Likewise.
45323         * lib/strnlen1.h: Likewise.
45324         * lib/tls.c: Likewise.
45325         * lib/tls.h: Likewise.
45326         * lib/tmpdir.c: Likewise.
45327
45328         * lib/TODO: Remove; this belongs only in coreutils.
45329
45330 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45331
45332         Add copyright notices to long-enough files that lack them, since
45333         otherwise the files aren't clearly free.  Use the same notice that
45334         getdate.texi already uses.
45335         * doc/alloca-opt.texi: Add copyright notice.
45336         * doc/alloca.texi: Likewise.
45337         * doc/ctime.texi: Likewise.
45338         * doc/functions.texi: Likewise.
45339         * doc/gcd.texi: Likewise.
45340         * doc/gnulib-tool.texi: Likewise.
45341         * doc/inet_ntoa.texi: Likewise.
45342         * doc/visibility.texi: Likewise.
45343
45344         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
45345         * doc/quote.texi: Add copyright notice.
45346
45347         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
45348         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
45349         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
45350         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
45351         is now obsolete, and give a pointer to the Sun list.
45352         Add copyright notice.
45353
45354 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45355
45356         * config/srclistvars.sh: Add copyright notice.
45357
45358 2006-08-14  Eric Blake  <ebb9@byu.net>
45359
45360         Import the following change from libc:
45361
45362         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
45363
45364         Upstream bug 2997.
45365         * lib/misc/error.c: Add space between program name and message if file
45366         name is missing.
45367
45368 2006-08-12  Karl Berry  <karl@gnu.org>
45369
45370         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
45371         remove, these originate in gnulib now.
45372
45373 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45374
45375         * doc/Makefile (standards.info standards.html standards.dvi):
45376         Also depend on make-stds.texi.
45377
45378 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
45379
45380         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
45381         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
45382
45383         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
45384         in wchar_t.  Problem reported by Eric Blake.
45385
45386         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
45387         LEN is smaller than SIZE.  Suggested by Bruno Haible.
45388         Also, help the compiler to keep LEN in a register.
45389
45390 2006-08-11  Eric Blake  <ebb9@byu.net>
45391
45392         * users.txt: Sort.  Add tar.
45393
45394 2006-08-11  Bruno Haible  <bruno@clisp.org>
45395
45396         * users.txt: New file.
45397
45398 2006-08-11  Bruno Haible  <bruno@clisp.org>
45399
45400         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
45401         before <wchar.h>. Needed for OSF/1 and BSD/OS.
45402
45403 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
45404
45405         * modules/snprintf (Depends-on): Remove minmax.
45406         (Maintainer): Add self and Bruno.
45407
45408 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
45409
45410         * lib/.cppi-disable: Add snprintf.h, socket_.h.
45411         * lib/snprintf.c: Include <errno.h> and <limits.h>.
45412         (EOVERFLOW): Define if the system does not.
45413         Do not include "minmax.h"; it wasn't used.
45414         (snprintf): Don't assume size_t promotes to an unsigned type.
45415         Fix bug when generated string was too long for the buffer: the
45416         buffer's contents are supposed to be the initial prefix of the
45417         output.  Don't assume vasnprintf returns EOVERFLOW if the size
45418         exceeds INT_MAX; do the check ourselves.
45419
45420         Import the following changes from libc:
45421
45422         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
45423
45424         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
45425         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
45426         set wc to the byte which couldn't be converted.
45427         (re_string_reconstruct): Don't clear valid_raw_len before calling
45428         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
45429         tip_context using re_string_context_at.
45430
45431         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
45432
45433         * lib/posix/regex.h: g++ still cannot handled [restrict].
45434
45435         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
45436
45437         * lib/posix/regex.h: Remove special handling for VMS.
45438
45439 2006-08-10  Jim Meyering  <jim@meyering.net>
45440
45441         * modules/same-inode: New module.
45442         * modules/dev-ino: New module.
45443         * modules/cycle-check: Depend on these modules, rather than simply
45444         including their .h files.
45445         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
45446         required via m4/cycle-check.m4.
45447         * modules/same: Depend on new same-inode module, rather than
45448         including same-inode.h.
45449         * modules/chdir-safer: New file.
45450
45451         * modules/chown (Depends-on): Add stat-macros.
45452
45453 2006-08-10  Jim Meyering  <jim@meyering.net>
45454
45455         * m4/cycle-check.m4: New file.
45456         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
45457         * m4/dev-ino.m4, m4/same-inode.m4: New files.
45458
45459 2006-08-10  Eric Blake  <ebb9@byu.net>
45460
45461         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
45462         in from original proposal.
45463
45464 2006-08-10  Eric Blake  <ebb9@byu.net>
45465         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45466
45467         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
45468         namespace.
45469
45470 2006-08-10  Bruno Haible  <bruno@clisp.org>
45471
45472         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
45473         as well.
45474
45475 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
45476
45477         Sync from coreutils.
45478
45479         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
45480
45481         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
45482         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
45483
45484 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
45485
45486         * modules/restrict: Remove; no longer needed now that we assume
45487         Autoconf 2.59 or later.
45488         * MODULES.html.sh: Remove 'restrict'.
45489         * modules/argp (Depends-on): Remove 'restrict'.
45490         * modules/base64 (Depends-on): Likewise.
45491         * modules/gc (Depends-on): Likewise.
45492         * modules/getaddrinfo (Depends-on): Likewise.
45493         * modules/glob (Depends-on): Likewise.
45494         * modules/inet_ntop (Depends-on): Likewise.
45495         * modules/inet_pton (Depends-on): Likewise.
45496         * modules/memxor (Depends-on): Likewise.
45497         * modules/regex (Depends-on): Likewise.
45498         * modules/strtok_r (Depends-on): Likewise.
45499         * modules/time_r (Depends-on): Likewise.
45500
45501 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
45502
45503         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
45504         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
45505         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
45506         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
45507         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
45508         * m4/memxor.m4 (gl_MEMXOR): Likewise.
45509         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
45510         gl_C_RESTRICT replaced by AC_C_RESTRICT.
45511
45512         Merge from coreutils.
45513         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
45514         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
45515         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
45516         * m4/time_r.m4 (gl_TIME_R): Likewise.
45517
45518 2006-08-09  Karl Berry  <karl@gnu.org>
45519
45520         * config/srclist.txt: no more gettext-tools, per Bruno.
45521
45522 2006-08-08  Eric Blake  <ebb9@byu.net>
45523
45524         * modules/verror: New module.
45525         * MODULES.html.sh: Document it.
45526
45527 2006-08-08  Eric Blake  <ebb9@byu.net>
45528
45529         * lib/verror.h, lib/verror.c: New files.
45530
45531 2006-08-08  Eric Blake  <ebb9@byu.net>
45532
45533         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
45534         verror_at_line output complies with GNU Coding Standards even when
45535         file is NULL.
45536
45537 2006-08-07  Bruno Haible  <bruno@clisp.org>
45538
45539         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
45540         versions of AIX.
45541         Reported by Ralf Wildenhues.
45542
45543 2006-08-07  Bruno Haible  <bruno@clisp.org>
45544
45545         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
45546         in an AC_DEFUN. Needed so that the autoconf snippets can use
45547         AC_REQUIRE.
45548
45549 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45550
45551         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45552         Initialize pkgdata_DATA.
45553         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
45554         overriding it.
45555
45556 2006-08-06  Eric Blake  <ebb9@byu.net>
45557
45558         * lib/error.h: Fold in some upstream changes from glibc.
45559         * lib/error.c: Likewise.
45560
45561 2006-08-04  Bruno Haible  <bruno@clisp.org>
45562
45563         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45564         Make the mostlyclean-local rule depend on mostlyclean-generic.
45565         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
45566
45567 2006-07-31  Bruno Haible  <bruno@clisp.org>
45568
45569         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
45570         <stdlib.h>, <string.h>.
45571
45572 2006-07-30  Bruno Haible  <bruno@clisp.org>
45573
45574         * modules/readlink (License): Change to LGPL.
45575
45576 2006-07-30  Bruno Haible  <bruno@clisp.org>
45577
45578         * modules/javaversion (Makefile.am): Distribute javaversion.java and
45579         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
45580         set PKGDATADIR to point to it.
45581
45582 2006-07-30  Bruno Haible  <bruno@clisp.org>
45583
45584         * modules/csharpexec (configure.ac): Comment out macro invocation.
45585         * modules/javaexec (configure.ac): Likewise.
45586         * modules/javacomp-script (configure.ac): Likewise.
45587
45588         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
45589
45590 2006-07-30  Bruno Haible  <bruno@clisp.org>
45591
45592         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
45593         linked-list.
45594
45595 2006-07-30  Bruno Haible  <bruno@clisp.org>
45596
45597         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
45598
45599 2006-07-30  Bruno Haible  <bruno@clisp.org>
45600
45601         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45602         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
45603         get removed.
45604
45605 2006-07-29  Bruno Haible  <bruno@clisp.org>
45606
45607         Make it possible for gnulib-tool to work with locally modified or
45608         augmented gnulib repositories.
45609         * gnulib-tool (func_usage): Document --local-dir option.
45610         (local_gnulib_dir): New variable.
45611         Handle --local-dir option.
45612         (func_lookup_file): New function.
45613         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
45614         (func_get_description, func_get_filelist, func_get_description,
45615         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
45616         func_get_automake_snippet, func_get_include_directive,
45617         func_get_license, func_get_maintainer): Use func_lookup_file.
45618         (func_import, func_create_testdir): Use func_lookup_file.
45619
45620 2006-07-29  Bruno Haible  <bruno@clisp.org>
45621
45622         * modules/setenv (Depends-on): Add unistd.
45623
45624 2006-07-29  Bruno Haible  <bruno@clisp.org>
45625
45626         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
45627
45628 2006-07-29  Bruno Haible  <bruno@clisp.org>
45629
45630         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
45631
45632 2006-07-29  Bruno Haible  <bruno@clisp.org>
45633
45634         * gnulib-tool (import, update): If there is no Makefile.am, look at
45635         aclocal.m4, instead of bailing out.
45636
45637 2006-07-29  Bruno Haible  <bruno@clisp.org>
45638
45639         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
45640         Categorize the options by when they are useful.
45641
45642 2006-07-29  Bruno Haible  <bruno@clisp.org>
45643
45644         * gnulib-tool (func_usage): Document option --no-libtool.
45645         Handle option --no-libtool.
45646         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
45647         for changed semantics of $libtool variable.
45648         (func_import): Likewise. If libtool is not used, show this through
45649         an option --no-libtool.
45650         (func_create_testdir): Update.
45651
45652 2006-07-29  Bruno Haible  <bruno@clisp.org>
45653
45654         * gnulib-tool (func_import): Extend error message about missing
45655         --doc-base.
45656
45657 2006-07-29  Bruno Haible  <bruno@clisp.org>
45658
45659         * gnulib-tool (func_import): Don't create the $docbase directory if
45660         there is no file to store there.
45661
45662 2006-07-29  Bruno Haible  <bruno@clisp.org>
45663
45664         * gnulib-tool (autoconf_minversion): If a --dir option is given and
45665         relevant, look for configure.ac there, not in the current directory.
45666         Also use a simple search for AC_PREREQ, not "autoconf --trace".
45667
45668 2006-07-29  Bruno Haible  <bruno@clisp.org>
45669
45670         * gnulib-tool (SORT): New variable.
45671         (func_usage): Undocument --assume-autoconf option.
45672         Remove --assume-autoconf option handling.
45673         (autoconf_minversion): Determine from the contents of configure.ac.
45674         (func_import): Remove autoconf_minversion handling.
45675         Suggested by Eric Blake.
45676
45677 2006-07-29  Bruno Haible  <bruno@clisp.org>
45678
45679         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
45680
45681 2006-07-29  Bruno Haible  <bruno@clisp.org>
45682
45683         * config/srclist.txt (*setenv.[ch]): Remove rules.
45684
45685 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45686
45687         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
45688
45689 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45690
45691         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
45692         arpa/inet.h.
45693
45694 2006-07-28  Simon Josefsson  <jas@extundo.com>
45695
45696         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
45697         * modules/inet_pton (Depends-on): Likewise.
45698
45699 2006-07-28  Simon Josefsson  <jas@extundo.com>
45700
45701         * m4/netinet_in_h.m4: New file.
45702
45703 2006-07-28  Simon Josefsson  <jas@extundo.com>
45704
45705         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
45706         #include's.
45707
45708 2006-07-28  Simon Josefsson  <jas@extundo.com>
45709
45710         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
45711         #include's.
45712
45713 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
45714
45715         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
45716         setgid on directories only if they set these bits.
45717         * lib/modechange.h: Remove obsolete comment about masks.
45718
45719 2006-07-28  Eric Blake  <ebb9@byu.net>
45720
45721         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
45722         macro expansion.
45723
45724 2006-07-28  Bruno Haible  <bruno@clisp.org>
45725
45726         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
45727
45728 2006-07-28  Bruno Haible  <bruno@clisp.org>
45729
45730         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
45731
45732 2006-07-28  Bruno Haible  <bruno@clisp.org>
45733
45734         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
45735         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
45736         Define fallbacks.
45737         Avoids link error on FreeBSD 4.x.
45738         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45739
45740         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
45741         encoding.
45742         * lib/mbswidth.c (iswcntrl): Likewise.
45743
45744 2006-07-27  Bruno Haible  <bruno@clisp.org>
45745
45746         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
45747         test.
45748
45749 2006-07-27  Bruno Haible  <bruno@clisp.org>
45750
45751         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
45752         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
45753         defined.
45754
45755 2006-07-26  Eric Blake  <ebb9@byu.net>
45756
45757         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
45758
45759 2006-07-26  Eric Blake  <ebb9@byu.net>
45760
45761         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
45762         like mingw that lack mkstemp.
45763         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
45764         avoid compilation warning on mingw.
45765
45766 2006-07-26  Bruno Haible  <bruno@clisp.org>
45767
45768         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
45769         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
45770         INT_FAST*_MIN, INTPTR_MIN.
45771
45772 2006-07-25  Bruno Haible  <bruno@clisp.org>
45773
45774         * modules/version-etc (Depends-on): Add stdarg.
45775
45776 2006-07-25  Bruno Haible  <bruno@clisp.org>
45777
45778         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
45779         complex commands.
45780
45781 2006-07-25  Bruno Haible  <bruno@clisp.org>
45782
45783         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
45784         defined in <stdarg.h> or config.h.
45785
45786 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
45787
45788         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
45789         (gl_STDIO_SAFER): Remove.
45790
45791 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
45792
45793         * MODULES.html.sh (File stream based Input/Output):
45794         Add fopen-safer, tmpfile-safer; remove stdio-safer.
45795         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
45796         * modules/fopen-safer, modules/tmpfile-safer: New files.
45797         * modules/stdio-safer: Remove.
45798
45799 2006-07-24  Bruno Haible  <bruno@clisp.org>
45800
45801         * modules/tmpdir: New file.
45802         * MODULES.html.sh (File system functions): Add it.
45803
45804 2006-07-24  Bruno Haible  <bruno@clisp.org>
45805
45806         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
45807         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
45808
45809 2006-07-24  Bruno Haible  <bruno@clisp.org>
45810
45811         * modules/clean-temp: New file.
45812
45813 2006-07-24  Bruno Haible  <bruno@clisp.org>
45814
45815         * m4/tmpdir.m4: New file, from GNU gettext.
45816
45817 2006-07-24  Bruno Haible  <bruno@clisp.org>
45818
45819         * lib/tmpdir.h: New file, from GNU gettext.
45820         * lib/tmpdir.c: New file, from GNU gettext.
45821
45822 2006-07-24  Bruno Haible  <bruno@clisp.org>
45823
45824         * lib/clean-temp.h: New file, from GNU gettext.
45825         * lib/clean-temp.c: New file, from GNU gettext.
45826
45827 2006-07-23  Eric Blake  <ebb9@byu.net>
45828
45829         * modules/stdio-safer (Files): Add tmpfile-safer.c.
45830         (Depends-on): Add binary-io.
45831
45832 2006-07-23  Eric Blake  <ebb9@byu.net>
45833
45834         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
45835
45836 2006-07-23  Eric Blake  <ebb9@byu.net>
45837
45838         * lib/tmpfile-safer.c: New file.
45839         * lib/stdio-safer.h (fopen_safer): Add prototype.
45840         * lib/stdio--.h (tmpfile): Make safer.
45841
45842 2006-07-23  Bruno Haible  <bruno@clisp.org>
45843
45844         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
45845         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
45846         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
45847         gl_linked_remove_at): Use it.
45848
45849 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45850         and Simon Josefsson <jas@extundo.com>
45851
45852         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
45853
45854         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
45855
45856 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
45857
45858         * modules/close-stream: New file.
45859         * modules/closeout (Description): Make it clear that it exits
45860         with a diagnostic on error.
45861         (Depends-on): Add close-stream.  Remove fpending, stdbool.
45862         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
45863
45864 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
45865
45866         * m4/close-stream.m4: New file.
45867
45868 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
45869
45870         * lib/close-stream.c, lib/close-stream.h: New files.
45871
45872 2006-07-22  Bruno Haible  <bruno@clisp.org>
45873
45874         Merge from GNU gettext 0.15.
45875
45876         2006-05-01  Bruno Haible  <bruno@clisp.org>
45877
45878                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
45879
45880         2006-07-22  Bruno Haible  <bruno@clisp.org>
45881
45882                 * modules/javaversion: New file.
45883                 * MODULES.html.sh (Java): Add javaversion.
45884
45885         2006-03-12  Bruno Haible  <bruno@clisp.org>
45886
45887                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
45888
45889         2005-12-04  Bruno Haible  <bruno@clisp.org>
45890
45891                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
45892                 (untested).
45893
45894         2006-06-21  Bruno Haible  <bruno@clisp.org>
45895
45896                 Avoid warnings from recent versions of mcs.
45897                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
45898                 -o, -L, -r any more. Use options documented since mcs-1.0
45899                 instead. Similarly for -g.
45900
45901         2005-12-04  Bruno Haible  <bruno@clisp.org>
45902
45903                 * build-aux/csharpcomp.sh.in: Suffix for resources is
45904                 .resources, not .resource.
45905
45906         2005-07-09  Bruno Haible  <bruno@clisp.org>
45907
45908                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
45909                 add a .dll suffix.
45910                 Reported by Mark Junker <mjscod@gmx.de>.
45911
45912         2006-07-22  Bruno Haible  <bruno@clisp.org>
45913
45914                 * modules/gettext: Upgrade to gettext-0.15.
45915                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
45916                 m4/visibility.m4.
45917                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
45918
45919 2006-07-22  Bruno Haible  <bruno@clisp.org>
45920
45921         Merge from GNU gettext 0.15.
45922
45923         2006-03-25  Bruno Haible  <bruno@clisp.org>
45924
45925                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
45926
45927         2006-07-21  Bruno Haible  <bruno@clisp.org>
45928
45929                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
45930                 "1.1".
45931
45932         2006-05-09  Bruno Haible  <bruno@clisp.org>
45933
45934                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
45935                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
45936                 for the conftestver execution.
45937
45938         2006-05-01  Bruno Haible  <bruno@clisp.org>
45939
45940                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
45941                 optional target-version argument. Verify that the compiler
45942                 groks source of the specified source-version, or add -source
45943                 option as necessary. Verify that the compiler produces
45944                 bytecode in the specified target-version, or add -target and
45945                 -source options as necessary. Make the result of the test
45946                 available as variable CONF_JAVAC. Also log error output in
45947                 config.log.
45948
45949         2006-03-11  Bruno Haible  <bruno@clisp.org>
45950
45951                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
45952
45953         2006-05-09  Bruno Haible  <bruno@clisp.org>
45954
45955                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
45956                 CLASSPATH_SEPARATOR to a semicolon.
45957
45958         2006-03-12  Bruno Haible  <bruno@clisp.org>
45959
45960                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
45961                 available as variable CONF_JAVA, for subsequent autoconf
45962                 tests. Also log error output in config.log.
45963
45964         2006-07-19  Bruno Haible  <bruno@clisp.org>
45965
45966                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
45967                 that getline works on glibc2 systems. Needed to avoid trouble
45968                 in relocatable.c.
45969                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
45970
45971         2005-12-04  Bruno Haible  <bruno@clisp.org>
45972
45973                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
45974                 launcher (untested).
45975
45976         2005-12-04  Bruno Haible  <bruno@clisp.org>
45977
45978                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
45979
45980         2006-07-22  Bruno Haible  <bruno@clisp.org>
45981
45982                 * gettext.m4: Update from GNU gettext-0.15.
45983                 * nls.m4: Likewise.
45984                 * po.m4: Likewise.
45985                 * inttypes-pri.m4: Likewise.
45986                 * inttypes-h.m4: Renamed from inttypes.m4.
45987                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
45988
45989 2006-07-22  Bruno Haible  <bruno@clisp.org>
45990
45991         Merge from GNU gettext 0.15.
45992
45993         2005-07-05  Bruno Haible  <bruno@clisp.org>
45994
45995                 * printf-args.c (printf_fetchargs): Work around broken
45996                 definition of wint_t on mingw.
45997
45998         2005-02-12  Bruno Haible  <bruno@clisp.org>
45999
46000                 * xallocsa.h: Add extern "C" for C++.
46001
46002         2006-05-17  Bruno Haible  <bruno@clisp.org>
46003
46004                 Cygwin portability.
46005                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
46006
46007         2006-04-30  Bruno Haible  <bruno@clisp.org>
46008
46009                 * progreloc.c: Include <mach-o/dyld.h> if available.
46010                 (find_executable): Use _NSGetExecutablePath when possible.
46011
46012         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
46013
46014                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
46015                 function.
46016
46017         2005-12-29  Bruno Haible  <bruno@clisp.org>
46018
46019                 * progreloc.c (set_program_name_and_installdir): Fix
46020                 compilation error.
46021
46022         2005-12-04  Bruno Haible  <bruno@clisp.org>
46023
46024                 Cygwin portability.
46025                 * progreloc.c: Include <windows.h> also on Cygwin.
46026                 (find_executable): Add support for Cygwin.
46027                 (set_program_name_and_installdir): Handle also platforms with
46028                 nonempty EXEEXT.
46029
46030         2006-07-11  Bruno Haible  <bruno@clisp.org>
46031
46032                 * javacomp.c: Fix a comment.
46033                 Reported by Jim Meyering.
46034
46035         2006-04-30  Bruno Haible  <bruno@clisp.org>
46036
46037                 * javacomp.h (compile_java_class): Add source_version,
46038                 target_version arguments.
46039                 * javacomp.c: Rewritten to choose only a compiler that
46040                 respects the specified source_version and target_version.
46041
46042         2006-06-27  Bruno Haible  <bruno@clisp.org>
46043
46044                 Assume correct S_ISDIR macro.
46045                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
46046
46047         2006-07-22  Bruno Haible  <bruno@clisp.org>
46048
46049                 * javaversion.h: New file, from GNU gettext.
46050                 * javaversion.c: New file, from GNU gettext.
46051                 * javaversion.java: New file, from GNU gettext.
46052                 * javaversion.class: New file, from GNU gettext.
46053
46054         2006-05-17  Bruno Haible  <bruno@clisp.org>
46055
46056                 Cygwin portability.
46057                 * javaexec.c (execute_java_class): Test for jview program
46058                 also on Cygwin.
46059
46060         2006-04-09  Bruno Haible  <bruno@clisp.org>
46061
46062                 * fatal-signal.c: Don't include string.h.
46063                 (at_fatal_signal): Use a copying loop instead of memcpy.
46064
46065         2005-12-04  Bruno Haible  <bruno@clisp.org>
46066
46067                 * csharpexec.c: Add support for 'clix' launcher (untested).
46068                 (execute_csharp_using_sscli): New function.
46069                 (execute_csharp_program): Call it.
46070
46071         2006-06-21  Bruno Haible  <bruno@clisp.org>
46072
46073                 Avoid warnings from recent versions of mcs.
46074                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
46075                 -o, -L, -r any more. Use options documented since mcs-1.0
46076                 instead. Similarly for -g.
46077
46078         2005-07-09  Bruno Haible  <bruno@clisp.org>
46079
46080                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
46081                 add a .dll suffix.
46082                 Reported by Mark Junker <mjscod@gmx.de>.
46083
46084         2006-06-17  Bruno Haible  <bruno@clisp.org>
46085
46086                 * config.charset: Update for NetBSD 3.0.
46087
46088         2006-05-17  Bruno Haible  <bruno@clisp.org>
46089
46090                 Cygwin portability.
46091                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
46092
46093         2006-05-16  Bruno Haible  <bruno@clisp.org>
46094
46095                 * localcharset.c [CYGWIN]: Include <windows.h>.
46096                 (get_charset_aliases): For Cygwin, return the same CPxxx
46097                 aliases list as under WIN32.
46098                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
46099                 the environment variables. Fall back to GetACP().
46100
46101         2006-04-05  Bruno Haible  <bruno@clisp.org>
46102
46103                 * config.charset: Update Juan Manuel Guerrero's address.
46104
46105         2005-02-12  Bruno Haible  <bruno@clisp.org>
46106
46107                 * allocsa.h: Add extern "C" for C++.
46108
46109         2005-02-10  Bruno Haible  <bruno@clisp.org>
46110
46111                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
46112                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
46113
46114         2006-07-22  Bruno Haible  <bruno@clisp.org>
46115
46116                 * gettext.h: Update to GNU gettext-0.15.
46117
46118 2006-07-22  Bruno Haible  <bruno@clisp.org>
46119
46120         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
46121         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
46122         lib-prefix.m4, longdouble.m4, ssize_t.m4.
46123
46124 2006-07-21  Eric Blake  <ebb9@byu.net>
46125
46126         * modules/stdlib-safer: New file.
46127         * MODULES.html.sh (File stream based Input/Output): Add
46128         stdlib-safer.
46129
46130 2006-07-21  Eric Blake  <ebb9@byu.net>
46131
46132         * lib/stdlib-safer.h: New file from coreutils, required by
46133         stdlib--.h.
46134
46135 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
46136
46137         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
46138
46139 2006-07-20  Bruno Haible  <bruno@clisp.org>
46140
46141         * gnulib-tool: Recognize new option --assume-autoconf.
46142         (autoconf_minversion): New variable.
46143         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
46144
46145 2006-07-20  Bruno Haible  <bruno@clisp.org>
46146
46147         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
46148
46149 2006-07-19  Derek R. Price  <derek@ximbiot.com>
46150
46151         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
46152         Reindent and repaginate.
46153
46154 2006-07-19  Derek Price  <derek@ximbiot.com>
46155
46156         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
46157         Correct grammar.
46158
46159 2006-07-17  Bruno Haible  <bruno@clisp.org>
46160
46161         * modules/list: New file.
46162         * modules/array-list: New file.
46163         * modules/carray-list, modules/carray-list-tests: New files.
46164         * modules/linked-list, modules/linked-list-tests: New files.
46165         * modules/avltree-list, modules/avltree-list-tests: New files.
46166         * modules/rbtree-list, modules/rbtree-list-tests: New files.
46167         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
46168         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
46169         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
46170         * modules/oset: New file.
46171         * modules/array-oset: New file.
46172         * modules/avltree-oset, modules/avltree-oset-tests: New files.
46173         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
46174         * tests/test-carray_list.c: New file.
46175         * tests/test-linked_list.c: New file.
46176         * tests/test-avltree_list.c: New file.
46177         * tests/test-rbtree_list.c: New file.
46178         * tests/test-linkedhash_list.c: New file.
46179         * tests/test-avltreehash_list.c: New file.
46180         * tests/test-rbtreehash_list.c: New file.
46181         * tests/test-avltree_oset.c: New file.
46182         * tests/test-rbtree_oset.c: New file.
46183         * MODULES.html.sh (Container data structures): New section.
46184
46185 2006-07-17  Bruno Haible  <bruno@clisp.org>
46186
46187         * m4/gl_list.m4: New file.
46188
46189 2006-07-17  Bruno Haible  <bruno@clisp.org>
46190
46191         * lib/gl_list.h: New file.
46192         * lib/gl_list.c: New file.
46193         * lib/gl_array_list.h: New file.
46194         * lib/gl_array_list.c: New file.
46195         * lib/gl_carray_list.h: New file.
46196         * lib/gl_carray_list.c: New file.
46197         * lib/gl_linked_list.h: New file.
46198         * lib/gl_linked_list.c: New file.
46199         * lib/gl_anylinked_list1.h: New file.
46200         * lib/gl_anylinked_list2.h: New file.
46201         * lib/gl_avltree_list.h: New file.
46202         * lib/gl_avltree_list.c: New file.
46203         * lib/gl_anyavltree_list1.h: New file.
46204         * lib/gl_anyavltree_list2.h: New file.
46205         * lib/gl_rbtree_list.h: New file.
46206         * lib/gl_rbtree_list.c: New file.
46207         * lib/gl_anyrbtree_list1.h: New file.
46208         * lib/gl_anyrbtree_list2.h: New file.
46209         * lib/gl_anytree_list1.h: New file.
46210         * lib/gl_anytree_list2.h: New file.
46211         * lib/gl_linkedhash_list.h: New file.
46212         * lib/gl_linkedhash_list.c: New file.
46213         * lib/gl_anyhash_list1.h: New file.
46214         * lib/gl_anyhash_list2.h: New file.
46215         * lib/gl_avltreehash_list.h: New file.
46216         * lib/gl_avltreehash_list.c: New file.
46217         * lib/gl_rbtreehash_list.h: New file.
46218         * lib/gl_rbtreehash_list.c: New file.
46219         * lib/gl_anytreehash_list1.h: New file.
46220         * lib/gl_anytreehash_list2.h: New file.
46221
46222         * lib/gl_oset.h: New file.
46223         * lib/gl_oset.c: New file.
46224         * lib/gl_array_oset.h: New file.
46225         * lib/gl_array_oset.c: New file.
46226         * lib/gl_avltree_oset.h: New file.
46227         * lib/gl_avltree_oset.c: New file.
46228         * lib/gl_rbtree_oset.h: New file.
46229         * lib/gl_rbtree_oset.c: New file.
46230         * lib/gl_anytree_oset.h: New file.
46231
46232 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
46233
46234         * m4/mkancesdirs.m4: New file.
46235         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
46236         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
46237         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
46238         it.
46239
46240 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
46241
46242         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
46243         * lib/mkancesdirs.h: New files.
46244         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
46245         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
46246         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
46247         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
46248         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
46249         callers changed.  Revamp internals significantly, by not
46250         attempting to create directories that are temporarily more
46251         permissive than the final results.  Do not attempt to use
46252         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
46253         This removes some race conditions, fixes some bugs, and simplifies
46254         things.  Use new dirchownmod function to do owner and mode changes.
46255         * lib/mkdir-p.h: Likewise.
46256         * lib/modechange.c (octal_to_mode): New function.
46257         (struct mode_change): New member mentioned.
46258         (make_node_op_equals): New arg mentioned.  All callers changed.
46259         (mode_compile): Keep track of which mode bits the user has explicitly
46260         mentioned.
46261         (mode_adjust): New arg DIR, so that we implement the X op correctly.
46262         New arg PMODE_BITS, to keep track of which mode bits the user
46263         mentioned; it treats S_ISUID and S_ISGID speciall.
46264         All callers changed.
46265         * lib/modechange.h: Likewise.
46266
46267 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
46268
46269         * MODULES.html.sh: Add mkancestors.
46270         * modules/mkancesdirs: New module.
46271         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
46272         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
46273         The chdir-safer and afs files are now orphans; I'll remove them
46274         unless someone speaks up.
46275         Add lib/dirchownmod.c, lib/dirchownmod.h.
46276         (Depends-on): Remove alloca, chown, save-cwd, dirname.
46277         Add lchown, mkancesdirs.
46278         (Maintainer): Add self.
46279
46280 2006-07-15  Karl Berry  <karl@gnu.org>
46281
46282         * gnulib-tool: help message wording/arrangement.
46283
46284 2006-07-14  Simon Josefsson  <jas@extundo.com>
46285
46286         * doc/gnulib.texi (Libtool and Windows): New section.
46287
46288 2006-07-12  Simon Josefsson  <jas@extundo.com>
46289
46290         * modules/gendocs (License): Fix license, approved by Karl.
46291
46292 2006-07-12  Eric Blake  <ebb9@byu.net>
46293
46294         * MODULES.html.sh: Add gendocs.
46295
46296 2006-07-11  Eric Blake  <ebb9@byu.net>
46297
46298         * modules/fdl: New module, to install doc/fdl.texi.
46299         * MODULES.html.sh: Add new section for documentation modules.
46300         * gnulib-tool: Avoid space-tab.
46301         (--doc-base): New option, to manage files from doc.
46302
46303 2006-07-11  Eric Blake  <ebb9@byu.net>
46304
46305         * m4/absolute-header.m4: Fix comments to match recent change.
46306
46307 2006-07-11  Eric Blake  <ebb9@byu.net>
46308
46309         * gnulib-tool: List --doc-base before --tests-base.
46310
46311 2006-07-11  Derek R. Price  <derek@ximbiot.com>
46312
46313         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
46314
46315 2006-07-11  Bruno Haible  <bruno@clisp.org>
46316
46317         * README: Mention where to put documentation.
46318
46319 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46320
46321         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
46322
46323 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
46324
46325         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
46326         to stdint.m4.
46327
46328 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
46329
46330         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
46331         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
46332         "no/such/file/stdint.h" when there is no such file, so that
46333         the resulting C code can be parsed by dodgy compilers.
46334         Problems reported by Bob Proulx.
46335
46336 2006-07-10  Derek R. Price  <derek@ximbiot.com>
46337
46338         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
46339         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
46340         macros into the GNU _D_EXACT_NAMLEN.
46341         * lib/savedir.c:  Likewise.
46342         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
46343
46344 2006-07-10  Derek R. Price  <derek@ximbiot.com>
46345         and Paul Eggert  <eggert@cs.ucla.edu>
46346
46347         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
46348         * m4/savedir.m4:
46349         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
46350         macros into the GNU _D_EXACT_NAMLEN.
46351
46352 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
46353
46354         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
46355         around the absolute name, to work around a problem with the HP-UX
46356         11.23 native C compiler, reported by Bob Proulx.
46357
46358 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
46359
46360         * doc/maintain.texi, make-stds.texi: Sync from
46361         <http://savannah.gnu.org/projects/gnustandards>.
46362
46363 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
46364
46365         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
46366
46367 2006-07-09  Jim Meyering  <jim@meyering.net>
46368
46369         * m4/glob.m4: Remove a doubled word in a comment.
46370
46371 2006-07-09  Jim Meyering  <jim@meyering.net>
46372
46373         * lib/argp-pv.c: Remove a doubled word in a comment.
46374         * lib/check-version.c (check_version): Likewise.
46375         * lib/javacomp.c (compile_java_class): Likewise.
46376
46377 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
46378
46379         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
46380         for the benefit of people using Autoconf 2.60.  If you want to
46381         support older Autoconf versions you can copy m4/onceonly_2_57.m4
46382         (or m4/onceonly.m4, if pre-2.57) manually.
46383
46384 2006-07-08  Jim Meyering  <jim@meyering.net>
46385
46386         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
46387         comment.
46388         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
46389         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
46390         comment.
46391
46392 2006-07-08  Jim Meyering  <jim@meyering.net>
46393
46394         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
46395
46396 2006-07-07  Simon Josefsson  <jas@extundo.com>
46397
46398         * tests/test-crc.c: Change expected crc value, the test vector
46399         were probably computed using the old broken crc.c?
46400
46401 2006-07-06  Simon Josefsson  <jas@extundo.com>
46402
46403         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
46404         now the canonical place for the M4 file).
46405
46406         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
46407         from the sys_socket dependency now.
46408
46409         * modules/inet_pton (Files): Ditto.
46410
46411         * modules/inet_ntop (Files): Ditto.
46412
46413 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
46414
46415         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
46416         not gl_PREREQ_GETUSERSHELL.
46417
46418 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46419
46420         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
46421         with only one argument, for Autoconf 2.60.
46422         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
46423         expand to nothing, so add a shell command to avoid syntax error.
46424         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
46425
46426 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46427
46428         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
46429
46430 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
46431
46432         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
46433         no longer needed.  Check for isblank decl.
46434         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
46435         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
46436         of existence.
46437
46438 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
46439
46440         * lib/getloadavg.c: Use __VMS, not VMS.
46441         * lib/getopt.c: Likewise.
46442         * lib/getpagesize.h: Likewise.
46443         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
46444         and probably does not work.
46445
46446 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
46447
46448         * lib/.cppi-disable: Add wcwidth.
46449         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
46450         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
46451         (ISGRAPH): Remove.  All uses changed to isgraph.
46452         (FOLD) [!defined _LIBC]: Remove special case.
46453         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
46454         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
46455         HAVE_ISBLANK.
46456         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
46457         case.
46458
46459 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
46460
46461         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
46462         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
46463         brackets.  Other minor changes to suppress some compiler
46464         warnings.
46465
46466 2006-07-06  Derek R. Price  <derek@ximbiot.com>
46467         and Paul Eggert  <eggert@cs.ucla.edu>
46468
46469         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
46470         of invoking obsolescent AC_HEADER_DIRENT macro.
46471         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
46472         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
46473         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
46474         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
46475         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
46476         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
46477         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
46478         * m4/readdir.m4: Remove; no longer needed.
46479
46480 2006-07-06  Derek R. Price  <derek@ximbiot.com>
46481         and Paul Eggert  <eggert@cs.ucla.edu>
46482
46483         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
46484         Don't worry about this obsolete case any more.
46485         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
46486         directories.
46487         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
46488         worry about this obsolete case any more.
46489         * lib/fts.c: Likewise.
46490         * lib/getcwd.c: Likewise.
46491         * lib/glob.h: Likewise.
46492         * lib/savedir.c: Likewise.
46493
46494 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
46495
46496         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
46497         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
46498         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
46499         needed.
46500         All uses removed.
46501         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
46502         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
46503         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
46504         needed.
46505         * m4/getdate.m4 (gl_GETDATE): Likewise.
46506         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
46507         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
46508         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
46509         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
46510         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
46511         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
46512         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
46513         needed.
46514
46515 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
46516
46517         * lib/memcasecmp.c: Include <limits.h>.
46518         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
46519         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
46520         Don't assume isdigit succeeds only on '0' through '9'.
46521
46522 2006-07-05  Eric Blake  <ebb9@byu.net>
46523
46524         * modules/getaddrinfo (Depends-on): Add snprintf.
46525
46526 2006-07-05  Eric Blake  <ebb9@byu.net>
46527
46528         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
46529         to avoid 'header present but could not be compiled' on cygwin.
46530
46531 2006-07-05  Eric Blake  <ebb9@byu.net>
46532
46533         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
46534         missing from netdb.h.
46535         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
46536
46537 2006-07-05  Derek R. Price  <derek@ximbiot.com>
46538
46539         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
46540         no longer needed.
46541         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
46542         * m4/getdate.m4 (gl_GETDATE): Likewise.
46543         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
46544         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
46545         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
46546         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
46547         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
46548
46549 2006-07-05  Derek R. Price  <derek@ximbiot.com>
46550
46551         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
46552         All uses of is_space replaced by isspace.
46553         * lib/exit.h: Don't talk about STDC_HEADERS.
46554         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
46555         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
46556         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
46557         replaced by isprint etc.
46558         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
46559         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
46560         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
46561         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
46562         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
46563         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
46564
46565 2006-07-05  Bruno Haible  <bruno@clisp.org>
46566
46567         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
46568         the function exists, before testing against AIX.
46569         Reported by Martin Lambers <marlam@marlam.de>.
46570
46571 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
46572
46573         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
46574         From Mark D. Baushke.
46575
46576 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
46577
46578         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
46579         to the absolute name, not just one, to bypass Sun C 5.8's
46580         "warning: #include of /usr/include/... may be non-portable".
46581
46582 2006-07-04  Eric Blake  <ebb9@byu.net>
46583
46584         * modules/dirname-tests: New test module.
46585         * tests/test-dirname.c: New file, replacing dirname.c
46586         TEST_DIRNAME section that was recently deleted.
46587
46588 2006-07-04  Bruno Haible  <bruno@clisp.org>
46589
46590         Assume ANSI C header files and <ctype.h> functions.
46591         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
46592         (mbsnwidth): Use isprint, iscntrl instead.
46593
46594 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
46595
46596         Merge from coreutils.
46597         * MODULES.html.sh: Add xstrtold.
46598         * modules/xstrtold: New file.
46599         * modules/cycle-check (Files): Add lib/same-inode.h.
46600         * modules/dirname (Files): Add m4/double-slash-root.m4.
46601         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
46602         * modules/mkdir-p (Files): Add lib/same-inode.h.
46603         * modules/same (Files): Add lib/same-inode.h.
46604
46605 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
46606
46607         * m4/absolute-header.m4: Renamed from full-header-path.m4.
46608         This is to keep the terminology clean; POSIX talks about
46609         "absolute pathnames", not "full pathnames", but the GNU
46610         Coding Standards say to use "path" for something else;
46611         so use "absolute" to keep both sides happy.
46612         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
46613         Set gl_absolute_header, not gl_full_header_path.
46614         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
46615         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
46616         All uses changed.
46617
46618         Merge from coreutils.
46619
46620         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
46621
46622         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
46623         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
46624         want to require the building of c-strtod.o.
46625         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
46626         needs -lm directly.
46627         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
46628
46629         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
46630
46631         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
46632         --as-needed option if available.  Problem reported by Albert Chin in
46633         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
46634         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
46635         cc merely issues a bunch of annoying warnings for --as-needed
46636         (this problem was reported by Bob Proulx).  Also, try linking with
46637         -lm to detect a bug in binutils 2.16 (this problem was reported
46638         by Ralf Wildenhues).
46639
46640         2006-06-18  Jim Meyering  <jim@meyering.net>
46641
46642         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
46643         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
46644         macro.
46645         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
46646         also check for glibc-2.4's abort-inducing bug.
46647
46648         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
46649         Low-probability clean-up should be to use rmdir to get rid of
46650         the just-created directory, not unlink.
46651
46652         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
46653         configure fail, and request a bug report to inform us about it.
46654         Add a comment that, barring reports to the contrary, in 2007 we'll
46655         assume ftruncate is universally available.
46656
46657         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
46658
46659         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
46660
46661         2006-03-12  Jim Meyering  <jim@meyering.net>
46662
46663         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
46664         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
46665         * m4/same.m4 (gl_SAME): Likewise.
46666         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
46667
46668         2006-03-11  Eric Blake  <ebb9@byu.net>
46669
46670         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
46671         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
46672         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
46673         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
46674
46675 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
46676
46677         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
46678         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
46679         reported by Mark D. Baushke, one in
46680         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
46681
46682         Merge from coreutils.
46683
46684         * lib/.cppi-disable: Add stdint_.h.
46685         * lib/.cvsignore: Add stdint.h.
46686
46687         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
46688
46689         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
46690         both double and long double versions.
46691         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
46692         * lib/xstrtold.c: New file.
46693         * lib/xstrtod.h (xstrtold): New decl.
46694
46695         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
46696
46697         * lib/filemode.c (setst): Remove.
46698         (strmode): Rewrite to avoid setst.  This makes the code shorter,
46699         (arguably) clearer, and the generated code is a bit smaller on my
46700         Debian GNU/Linux stable x86 host.
46701
46702         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
46703
46704         * lib/filemode.c: Include "filemode.h" first, to test the interface.
46705         Assume that filemode.h includes sys/types.h and sys/stat.h.
46706         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
46707         (ftypelet): Reorder to put common cases first, for efficiency.
46708         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
46709         to do 'M'.
46710         (strmode): Renamed from mode_string, and now stores 12 bytes instead
46711         of 10, for compatibility with FreeBSD.  All callers changed.
46712         (filemodestring): Now stores 12 bytes instead of 10, and sets file
46713         types that can't be deduced solely from st_mode.  First arg is now a
46714         const pointer.
46715         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
46716         (strmode): Renamed from mode_string.
46717         (filemodestring): New decl.
46718         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
46719         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
46720         needed.
46721         (S_ISPORT, S_ISWHT): New macros, if not already defined.
46722
46723         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
46724
46725         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
46726         fsusage.h now does that.  Include fsusage.h first, to test interface.
46727         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
46728         at most one method (the old code could have generated decls that
46729         didn't conform to C89, not that this was ever exercised).
46730         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
46731
46732         2006-03-19  Jim Meyering  <jim@meyering.net>
46733
46734         Work even in a chroot where d_ino values for entries in "/"
46735         don't match the stat.st_ino values for the same names.
46736         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
46737         number, iterate through all entries again, using lstat instead.
46738         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
46739         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
46740
46741         * lib/getcwd.c (__getcwd): Clarify a comment.
46742         Use memcpy in place of a call to strcpy.
46743
46744         2006-03-12  Jim Meyering  <jim@meyering.net>
46745
46746         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
46747         matches that of the current directory (which we're about to chdir ".."
46748         out of), then save the dev-ino of the parent, instead.
46749
46750         * lib/same-inode.h (SAME_INODE): New file/macro.
46751         * lib/chdir-safer.c (SAME_INODE): Remove definition.
46752         Include "same-inode.h", instead.
46753         * lib/same.c: Likewise.
46754         * lib/cycle-check.h: Include "same-inode.h".
46755         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
46756         * lib/cycle-check.c (SAME_INODE): Remove definition.
46757         * lib/root-dev-ino.h: Include "same-inode.h".
46758
46759         2006-03-11  Eric Blake  <ebb9@byu.net>
46760
46761         * lib/same.c (same_name): s/base_name/last_component/
46762         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
46763         * lib/filenamecat.c (file_name_concat): Likewise.
46764
46765         2006-03-11  Eric Blake  <ebb9@byu.net>,
46766                     Paul Eggert  <eggert@cs.ucla.edu>
46767
46768         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
46769         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
46770         drive prefix.
46771         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
46772         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
46773         (last_component): New method.
46774         * lib/dirname.c (dir_len): Determine when drive letters need a
46775         subsequent slash.  Preserve // when it is special.
46776         (dir_name): Don't append dot when drive letter is absolute.
46777         [TEST_DIRNAME]: Move into a full-blown gnulib test.
46778         * lib/basename.c (base_name): New semantics - malloc the result.
46779         Preserve // when it is special.  Preserve relative files that look
46780         like drive letters.
46781         (base_len): Preserve // when it is special.
46782         (last_component): New method, similar to old base_name semantics.
46783         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
46784         base_name.  Strip redundant slashes from ///.
46785
46786 2006-07-03  Jim Meyering  <jim@meyering.net>
46787
46788         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
46789         macro is used before the first cycle_check call.
46790
46791 2006-07-03  Eric Blake  <ebb9@byu.net>
46792
46793         * modules/dirname (Depends-on): Add xstrndup.
46794
46795 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
46796
46797         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
46798         test cases, so that config.log is a bit easier to follow.
46799
46800 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
46801
46802         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
46803         both are 64 bits, since this seems to be the tradition, and this
46804         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
46805         we ever run into a host that prefers long long to long in this
46806         case, we'll need another configure-time test.  Problem reported by
46807         Jim Meyering.
46808
46809 2006-07-02  Eric Blake  <ebb9@byu.net>
46810
46811         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
46812
46813 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
46814
46815         * modules/inttypes (Depends-on): No longer depends on stdint.
46816         * modules/stdint (Description): Say more about assumptions.
46817         Say that the fast types might differ.  Say macros are used.
46818         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
46819         (Makefile.am): Revise list of substituted symbols to match
46820         new stdint.m4.
46821         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
46822         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
46823         * tests/test-stdint.c (verify_same_types)
46824         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
46825         the code conforms to C99/C89.
46826         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
46827         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
46828
46829 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
46830
46831         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
46832         but fix a bug, by requiring at least 64 bits.
46833         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
46834         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
46835         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
46836         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
46837
46838         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
46839         changes.  Make 2.59 a prerequisite.  Check and substitute for
46840         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
46841         inttypes.h.  Do not use special include files; just use the
46842         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
46843         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
46844         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
46845         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
46846         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
46847         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
46848         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
46849         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
46850         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
46851         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
46852         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
46853         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
46854         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
46855         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
46856         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
46857         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
46858         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
46859         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
46860         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
46861         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
46862         WINT_MAX.  Check for C99 conformance more strictly, by detecting
46863         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
46864         not check for things that C99 does not require, e.g., int8_t.  If
46865         a test isn't needed unless <stdint.h> isn't working, and is
46866         unlikely to be needed for any other reason, then don't do it
46867         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
46868         size_t, since we assume C89 freestanding at least.  Do not check
46869         for sig_atomic_t, wchar_t, or wint_t, since the code now does
46870         the right thing even if the types are not defined.  Instead use:
46871         (gl_STDINT_TYPE_PROPERTIES): New macro.
46872         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
46873         testing whether <sys/types.h> clashes, as Autoconf does this for
46874         us now.  All uses removed.
46875         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
46876         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
46877         (gl_CHECK_TYPE_SAME):
46878         Remove; no longer needed.
46879         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
46880         exists, since we'll return 0 anyway in that case.
46881         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
46882
46883 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
46884
46885         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
46886         possible collision with system files.
46887         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
46888         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
46889         WCHAR_MIN and WCHAR_MAX in this case.
46890         (<stddef.h>): Do not include; no longer needed.
46891         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
46892         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
46893         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
46894         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
46895         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
46896         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
46897         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
46898         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
46899         !defined(__c99))]: Include in this case too, since it's harmless
46900         now.
46901         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
46902         dangerous to do so.
46903         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
46904         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
46905         (_STDINT_MIN, _STDINT_MAX): New macros.
46906         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
46907         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
46908         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
46909         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
46910         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
46911         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
46912         macros, not typedefs; this simplifies things quite a bit.
46913         Use long int for all types narrower than int64_t.
46914         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
46915         Define in terms of long long int or int64_t or long int,
46916         not int64_t or int32_t.  This saves some compile-time testing.
46917         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
46918         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
46919         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
46920         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
46921         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
46922         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
46923         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
46924         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
46925         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
46926         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
46927         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
46928         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
46929         undef any previous version and define our own version, for
46930         simplicity and consistency with the new macros for types.
46931         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
46932         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
46933         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
46934         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
46935         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
46936         @WINT_T_SUFFIX@ to keep things simple here.
46937         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
46938         Simplify by assuming typical 8/16/32/64 host, since we're
46939         already doing that elsewhere anyway.
46940         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
46941         and assume long long int is 64 bits if available.  This
46942         speeds up 'configure'.
46943
46944 2006-07-01  Eric Blake  <ebb9@byu.net>
46945
46946         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
46947         Reported by Andreas Buening.
46948
46949 2006-07-01  Eric Blake  <ebb9@byu.net>
46950
46951         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
46952
46953 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
46954
46955         * lib/getaddrinfo.c: fixed typo
46956
46957 2006-06-29  Jim Meyering  <jim@meyering.net>
46958
46959         * modules/strftime (Maintainer): Add my name, since with the
46960         FPRINTFTIME changes strftime.c has forked from glibc.
46961
46962 2006-06-29  Eric Blake  <ebb9@byu.net>
46963
46964         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
46965
46966 2006-06-29  Eric Blake  <ebb9@byu.net>
46967
46968         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
46969
46970 2006-06-29  Eric Blake  <ebb9@byu.net>
46971
46972         * lib/stat_.h: New file.
46973
46974 2006-06-29  Eric Blake  <ebb9@byu.net>
46975
46976         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
46977         unused static function.
46978
46979 2006-06-29  Eric Blake  <ebb9@byu.net>
46980
46981         * doc/functions.texi (Function Portability): Document missing lstat
46982         on mingw.
46983
46984 2006-06-29  Eric Blake  <ebb9@byu.net>
46985
46986         * MODULES.html.sh: Add sys_stat.
46987         * modules/sys_stat: New module.
46988         * modules/mkstemp (Depends-on): Add sys_stat.
46989
46990 2006-06-29  Derek R. Price  <derek@ximbiot.com>
46991
46992         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
46993
46994 2006-06-29  Derek R. Price  <derek@ximbiot.com>
46995
46996         * m4/c-bs-a.m4: Removed.
46997
46998 2006-06-29  Derek R. Price  <derek@ximbiot.com>
46999
47000         * lib/strftime.c: Assume strftime() exists.
47001
47002 2006-06-29  Derek Price  <derek@ximbiot.com>
47003
47004         * modules/c-bs-a: Removed - \a is C89.
47005         * MODULES.html.sh: Remove c-bs-a.
47006
47007 2006-06-29  Bruno Haible  <bruno@clisp.org>
47008
47009         * modules/wcwidth (License): Change to LGPL.
47010
47011 2006-06-28  Simon Josefsson  <jas@extundo.com>
47012
47013         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
47014         on _WIN32.
47015
47016         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
47017         getnameinfo.
47018
47019 2006-06-28  Simon Josefsson  <jas@extundo.com>
47020
47021         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
47022
47023 2006-06-28  Simon Josefsson  <jas@extundo.com>
47024
47025         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
47026         functions there.  It will succeed on Windows XP, but on Windows
47027         2000 and (presumably) earlier, it will fail, and use the internal
47028         re-implementation.
47029         (use_win32_p): New function.
47030         (getaddrinfo): Use strtoul on servname, to support numeric ports.
47031         Support AI_NUMERICSERV to disable getservbyname.
47032         (getnameinfo): New function, only supports
47033         NI_NUMERICHOST|NI_NUMERICSERV for now.
47034
47035         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
47036         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
47037         getnameinfo.
47038
47039 2006-06-28  Eric Blake  <ebb9@byu.net>
47040
47041         * modules/wcwidth: New file.
47042         * modules/mbchar (Depends-on): Add wcwidth.
47043         * modules/mbswidth (Depends-on): Add wcwidth.
47044         * MODULES.html.sh: Add wcwidth.
47045
47046 2006-06-28  Eric Blake  <ebb9@byu.net>
47047
47048         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
47049         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
47050
47051 2006-06-28  Eric Blake  <ebb9@byu.net>
47052
47053         * lib/xvasprintf.h: Fix comments.
47054
47055 2006-06-28  Eric Blake  <ebb9@byu.net>
47056
47057         * lib/mbchar.h (wcwidth): Include wcwidth.h.
47058         * lib/mbswidth.c (wcwidth): Move from here...
47059         * lib/wcwidth.h: ...to this new file.
47060
47061 2006-06-28  Derek R. Price  <derek@ximbiot.com>
47062
47063         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
47064
47065         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
47066         it's obsolete.
47067         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
47068
47069 2006-06-28  Derek R. Price  <derek@ximbiot.com>
47070
47071         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
47072         Autoconf 2.60 says this stuff was obsolete.
47073
47074 2006-06-28  Bruno Haible  <bruno@clisp.org>
47075
47076         * modules/wcwidth (Files): Add m4/wchar_t.m4.
47077
47078 2006-06-28  Bruno Haible  <bruno@clisp.org>
47079
47080         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
47081         gt_TYPE_WCHAR_T.
47082
47083 2006-06-28  Bruno Haible  <bruno@clisp.org>
47084
47085         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
47086         declaration for wcwidth.
47087         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
47088
47089 2006-06-28  Bruno Haible  <bruno@clisp.org>
47090
47091         * lib/mkdtemp.c [MINGW]: Include <io.h>.
47092         (mkdir): Define using _mkdir.
47093
47094 2006-06-28  Bruno Haible  <bruno@clisp.org>
47095
47096         * lib/getaddrinfo.h: Fix POSIX URL.
47097         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
47098         _WIN32.
47099         (use_win32_p): Make static.
47100         (getaddrinfo): Reject service name if it is empty or does not consist
47101         solely of decimal digits, or if its value is > 65535.
47102         (getnameinfo): Remove useless casts.
47103
47104 2006-06-27  Simon Josefsson  <jas@extundo.com>
47105
47106         * modules/sys_select: New file, suggested by Bruno Haible, Paul
47107         Eggert and Martin Lambers.
47108
47109 2006-06-27  Simon Josefsson  <jas@extundo.com>
47110
47111         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
47112         Eggert and Martin Lambers.
47113
47114 2006-06-27  Bruno Haible  <bruno@clisp.org>
47115
47116         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
47117         result to 0, not to empty.
47118         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
47119
47120 2006-06-27  Bruno Haible  <bruno@clisp.org>
47121
47122         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
47123
47124 2006-06-26  Simon Josefsson  <jas@extundo.com>
47125
47126         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
47127         present.
47128
47129 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
47130
47131         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
47132         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
47133         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
47134
47135 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
47136
47137         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
47138
47139 2006-06-26  Bruno Haible  <bruno@clisp.org>
47140
47141         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
47142
47143 2006-06-26  Bruno Haible  <bruno@clisp.org>
47144
47145         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
47146
47147 2006-06-26  Bruno Haible  <bruno@clisp.org>
47148
47149         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
47150         SGI C compiler in pre-C99 mode.
47151         Suggested by Mark D. Baushke and Larry Jones.
47152
47153 2006-06-26  Bruno Haible  <bruno@clisp.org>
47154
47155         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
47156         WCHAR_MAX.
47157         Reported by Mark D. Baushke and Larry Jones.
47158
47159 2006-06-26  Bruno Haible  <bruno@clisp.org>
47160
47161         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
47162         in pre-C99 mode.
47163         Suggested by Mark D. Baushke and Larry Jones.
47164
47165 2006-06-23  Simon Josefsson  <jas@extundo.com>
47166             Bruno Haible  <bruno@clisp.org>
47167
47168         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
47169         Emit mostlyclean-local rule.
47170         (func_emit_tests_Makefile_am): Likewise.
47171         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
47172
47173 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
47174
47175         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
47176
47177 2006-06-23  Bruno Haible  <bruno@clisp.org>
47178
47179         * tests/test-stdint.c: Update to match ISO C 99 Technical
47180         Corrigendum 1.
47181
47182 2006-06-23  Bruno Haible  <bruno@clisp.org>
47183
47184         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
47185
47186 2006-06-23  Bruno Haible  <bruno@clisp.org>
47187
47188         * lib/stdint_.h: Treat IRIX like OpenBSD.
47189
47190 2006-06-23  Bruno Haible  <bruno@clisp.org>
47191
47192         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
47193         ISO C 99 Technical Corrigendum 1.
47194
47195 2006-06-22  Simon Josefsson  <jas@extundo.com>
47196
47197         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
47198         MinGW.
47199
47200 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
47201
47202         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
47203         needed.  Some compiler complained about some of them.  Problem reported
47204         by Larry Jones in
47205         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
47206
47207 2006-06-21  Simon Josefsson  <jas@extundo.com>
47208
47209         * tests/test-getaddrinfo.c: New file.
47210
47211         * modules/getaddrinfo-tests: New file.
47212
47213         * MODULES.html.sh: Add inet_pton.
47214
47215         * modules/inet_pton: New file.
47216
47217 2006-06-21  Simon Josefsson  <jas@extundo.com>
47218
47219         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
47220         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
47221         of using the (limited) gnulib implementation on Windows XP.
47222
47223         * m4/inet_pton.m4: New file.
47224
47225 2006-06-21  Simon Josefsson  <jas@extundo.com>
47226
47227         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
47228         variable.
47229
47230         * lib/socket_.h: Don't define WINVER.
47231
47232         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
47233         slightly modified to work in gnulib.
47234
47235 2006-06-21  Simon Josefsson  <jas@extundo.com>
47236
47237         * doc/gnulib.texi (Windows sockets): Add.
47238
47239 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
47240
47241         * lib/read-file.c (fread_file): Start with buffer allocation of
47242         0 bytes rather than 1 byte; this simplifies the code.
47243         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
47244         code to free buffer and save/restore errno.
47245         (internal_read_file): Remove unused local.
47246
47247 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
47248
47249         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
47250         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
47251         Problem reported by Denis Excoffier in
47252         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
47253
47254 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47255
47256         * modules/sys_socket, modules/socklen: Include sys/types since
47257         FreeBSD 4.x's sys/socket.h needs it.
47258
47259 2006-06-19  Simon Josefsson  <jas@extundo.com>
47260
47261         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
47262
47263 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
47264
47265         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
47266
47267 2006-06-19  Bruno Haible  <bruno@clisp.org>
47268
47269         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
47270         and FULL_PATH_INTTYPES_H in angle brackets.
47271         Reported by Mark D. Baushke <mdb@gnu.org>.
47272
47273 2006-06-17  Eric Blake  <ebb9@byu.net>
47274
47275         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
47276         errno.
47277
47278 2006-06-17  Bruno Haible  <bruno@clisp.org>
47279
47280         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
47281         <sys/inttypes.h>.
47282
47283 2006-06-17  Bruno Haible  <bruno@clisp.org>
47284
47285         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
47286         whether errno is declared. Assume <errno.h> declares errno.
47287
47288 2006-06-17  Bruno Haible  <bruno@clisp.org>
47289
47290         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
47291
47292 2006-06-17  Bruno Haible  <bruno@clisp.org>
47293
47294         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
47295         problem on Solaris 2.5.1.
47296
47297 2006-06-16  Eric Blake  <ebb9@byu.net>
47298
47299         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
47300         * lib/unicodeio.c [!defined errno]: Likewise.
47301         * lib/strtol.c [!defined errno]: Likewise.
47302         * lib/strtod.c [!defined errno]: Likewise.
47303
47304 2006-06-15  Eric Blake  <ebb9@byu.net>
47305
47306         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
47307
47308 2006-06-15  Eric Blake  <ebb9@byu.net>
47309
47310         * config/srclist.txt (ssize_t.m4): Lose sync.
47311
47312 2006-06-15  Bruno Haible  <bruno@clisp.org>
47313
47314         * modules/stdint (Files): Include m4/full-header-path.m4,
47315         m4/size_max.m4, m4/wchar_t.m4.
47316         (Makefile.am): Many more substitutions.
47317         * modules/stdint-tests: New file.
47318         * tests/test-stdint.c: New file.
47319
47320 2006-06-15  Bruno Haible  <bruno@clisp.org>
47321
47322         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
47323         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
47324         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
47325         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
47326         gl_CHECK_TYPE_SAME): New macros.
47327
47328 2006-06-15  Bruno Haible  <bruno@clisp.org>
47329
47330         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
47331
47332 2006-06-15  Bruno Haible  <bruno@clisp.org>
47333
47334         * lib/stdint_.h: Rewritten to be fully auto-configured.
47335         Fixes bug on HP-UX/IA64.
47336
47337 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
47338
47339         * lib/getdate.y (__attribute__): Don't define if already defined.
47340         Problem reported by Larry Jones.
47341         * lib/utimens.c (__attribute__): Likewise.
47342
47343 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
47344
47345         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
47346         reported by Andreas Schwab.
47347
47348 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47349             Bruno Haible  <bruno@clisp.org>
47350
47351         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
47352         check for the declaration of strnlen and a run test that exposes the
47353         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
47354         rpl_strndup.
47355
47356 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47357             Bruno Haible  <bruno@clisp.org>
47358
47359         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
47360
47361 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47362
47363         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
47364         compile test, for Tru64 4.0D.
47365
47366 2006-05-28  Karl Berry  <karl@gnu.org>
47367
47368         * config/srclist.txt (printf-args.c): lose sync.
47369
47370 2006-05-26  Martin Lambers  <marlam@marlam.de>
47371
47372         * lib/getpass.c: Updates the test for the native W32 API, and adds
47373         missing includes, thus fixing compilation warnings.
47374
47375 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47376
47377         * lib/exclude.c (exclude_fnmatch): New function.
47378         (excluded_file_name): Call exclude_fnmatch.
47379         * lib/exclude.h (excluded_file_name): New prototype
47380
47381 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
47382
47383         * lib/tempname.c (small_open, large_open): New macros.
47384         (__open, __open64) [!_LIBC]: Remove.
47385         (__gen_tempname): Use small_open and large_open instead of __open
47386         and __open64.  This fixes a portability bug on HP-UX 11.11i
47387         reported by Simon Wing-Tang in
47388         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
47389
47390 2006-05-24  Bruno Haible  <bruno@clisp.org>
47391
47392         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
47393         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
47394         Reported by Thorsten Maerz <torte@netztorte.de> via
47395         Aaron Stone <aaron@serendipity.cx>.
47396
47397 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
47398
47399         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
47400         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
47401         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
47402         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
47403         not really conditional on the cache.
47404         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
47405
47406 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
47407
47408         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
47409         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
47410         (my_usleep): Don't mishandle maximum value.
47411
47412 2006-05-19  Jim Meyering  <jim@meyering.net>
47413
47414         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
47415
47416 2006-05-17  Bruno Haible  <bruno@clisp.org>
47417
47418         Cygwin portability.
47419         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
47420
47421 2006-05-17  Bruno Haible  <bruno@clisp.org>
47422
47423         * lib/stdint_.h: Fix recognition of Cygwin.
47424
47425 2006-05-15  Bruno Haible  <bruno@clisp.org>
47426
47427         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
47428         on libtool patch by Ralf Wildenhues.
47429
47430 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
47431
47432         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
47433         test for C99 conformance; (bool) 0.5 is an integer constant
47434         expression, but (bool) -0.5 is not.  Problem reported by Fedor
47435         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
47436
47437 2006-05-11  Simon Josefsson  <jas@extundo.com>
47438
47439         * m4/xvasprintf.m4: Fix obvious typo.
47440
47441 2006-05-11  Jim Meyering  <jim@meyering.net>
47442
47443         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
47444         James Lemley.
47445
47446 2006-05-10  Simon Josefsson  <jas@extundo.com>
47447
47448         * lib/md4.c: Typo fix, update copyright years.
47449         (K1, K2): Don't use L because it turn computations into 64-bit on
47450         64-bit platforms.
47451
47452 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
47453
47454         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
47455         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
47456         unwanted sign propagation, e.g., on hosts with 64-bit int.
47457         There still are some problems with reeelly weird theoretical hosts
47458         (e.g., 33-bit int) but it's not worth worrying about now.
47459         * lib/sha1.c (rol): Likewise.
47460         (K1, K2, K3, K4): Remove unnecessary L suffix.
47461
47462 2006-05-10  Bruno Haible  <bruno@clisp.org>
47463
47464         * lib/des.c: Cast to avoid warnings.
47465
47466 2006-05-09  Bruno Haible  <bruno@clisp.org>
47467
47468         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
47469         (Depends-on): Depend also on xsize, stdarg.
47470         (configure.ac): Add gl_XVASPRINTF.
47471
47472 2006-05-09  Bruno Haible  <bruno@clisp.org>
47473
47474         * m4/xvasprintf.m4: New file.
47475
47476 2006-05-09  Bruno Haible  <bruno@clisp.org>
47477
47478         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
47479         (EOVERFLOW): Define fallback value.
47480         (xstrcat): New function.
47481         (xvasprintf): Recognize the special case of a string concatenation.
47482
47483 2006-05-08  Eric Blake  <ebb9@byu.net>
47484
47485         * gnulib-tool (func_version): Base copyright year on CVS date.
47486         (func_emit_copyright_notice): New function.
47487         (func_emit_lib_Makefile_am): Use it.
47488         (func_emit_tests_Makefile_am): Likewise.
47489         (func_import): Likewise.
47490
47491 2006-05-08  Bruno Haible  <bruno@clisp.org>
47492
47493         * modules/stdarg: New file.
47494         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
47495
47496 2006-05-08  Bruno Haible  <bruno@clisp.org>
47497
47498         * m4/stdarg.m4: New file, from GNU gettext.
47499
47500 2006-05-08  Bruno Haible  <bruno@clisp.org>
47501
47502         * config/srclist.txt (build-aux/config.rpath): different from latest
47503         release.
47504
47505 2006-05-08  Bruno Haible  <bruno@clisp.org>
47506
47507         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
47508
47509 2006-05-05  Jim Meyering  <jim@meyering.net>
47510
47511         * m4/warning.m4: New file, derived from bison's file by the same name.
47512
47513 2006-05-03  Bruno Haible  <bruno@clisp.org>
47514
47515         * lib/stdint_.h: Shorter URL.
47516         * lib/inttypes.h: Likewise.
47517
47518 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
47519
47520         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
47521
47522 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
47523
47524         * lib/verify.h: Document the internals better.  Most of this change
47525         was written by Bruno Haible.
47526
47527 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
47528
47529         * doc/verify.texi: New file, partly based on a proposal by
47530         Bruno Haible.
47531
47532 2006-05-02  Bruno Haible  <bruno@clisp.org>
47533
47534         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
47535         test from here...
47536         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
47537
47538 2006-04-29  Bruno Haible  <bruno@clisp.org>
47539
47540         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
47541         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
47542
47543 2006-04-29  Bruno Haible  <bruno@clisp.org>
47544
47545         * gnulib-tool: Make --update option actually work.
47546
47547 2006-04-29  Bruno Haible  <bruno@clisp.org>
47548
47549         * doc/gcd.texi: New file.
47550         * doc/gnulib.texi: Include it.
47551
47552 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
47553
47554         * lib/getdate.y (get_date): When adding relative date, start with the
47555         initial time, not with the result of the first mktime call.
47556
47557 2006-04-25  Bruno Haible  <bruno@clisp.org>
47558
47559         * gnulib-tool (func_import): Output the include directives in three
47560         blocks, sorted separately.
47561         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47562
47563 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
47564
47565         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
47566         to define main with arguments, for C++.  Reported by Eric Blake.
47567         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
47568         Prefer 'int main ()' to 'int main (void)', for C++.
47569         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
47570         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
47571         for 'main', for C99 and C++.
47572
47573 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
47574
47575         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
47576         Don't assume that exit status -1 is valid.
47577         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
47578         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
47579         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
47580         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
47581         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
47582         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
47583         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
47584         functions can be used without declaring them, or that you can
47585         exit with status -1.
47586         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
47587
47588 2006-04-24  Karl Berry  <karl@gnu.org>
47589
47590         * config/srclist.txt (longdouble.m4): sync lost.
47591
47592 2006-04-24  Eric Blake  <ebb9@byu.net>
47593
47594         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
47595
47596 2006-04-24  Bruno Haible  <bruno@clisp.org>
47597
47598         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
47599         poll() implementation in AIX.
47600         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47601
47602 2006-04-24  Bruno Haible  <bruno@clisp.org>
47603
47604         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
47605         assigned exactly once.
47606
47607 2006-04-23  Claudio Fontana  <claudio@gnu.org>
47608             Bruno Haible  <bruno@clisp.org>
47609
47610         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
47611         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
47612         for AM_CPPFLAGS.
47613
47614 2006-04-23  Bruno Haible  <bruno@clisp.org>
47615
47616         * modules/copy-file: Depend on unistd.
47617         * modules/execute: Likewise.
47618         * modules/fatal-signal: Likewise.
47619         * modules/findprog: Likewise.
47620         * modules/mkdtemp : Likewise.
47621         * modules/pipe: Likewise.
47622         * modules/wait-process: Likewise.
47623
47624 2006-04-23  Bruno Haible  <bruno@clisp.org>
47625
47626         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
47627         condition was already detected.
47628         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47629
47630 2006-04-23  Bruno Haible  <bruno@clisp.org>
47631
47632         * lib/copy-file.c: Include <unistd.h> unconditionally.
47633         * lib/execute.c: Likewise.
47634         * lib/fatal-signal.c: Likewise.
47635         * lib/findprog.c: Likewise.
47636         * lib/mkdtemp.c: Likewise.
47637         * lib/pipe.h: Likewise.
47638         * lib/pipe.c: Likewise.
47639         * lib/wait-process.h: Likewise.
47640
47641 2006-04-23  Bruno Haible  <bruno@clisp.org>
47642
47643         * gnulib-tool (func_usage): Fix --import description. Document
47644         --update.
47645         (func_import): Create temporary file in a temporary directory, if
47646         --dry-run is specified. Silence errors from 'grep' when there are no
47647         m4 files in $m4dir.
47648         (func_create_testdir): Silence errors from 'grep' when there are no
47649         m4 files in $m4dir.
47650         Reported by Karl Berry <karl@freefriends.org>.
47651
47652 2006-04-20  Bruno Haible  <bruno@clisp.org>
47653
47654         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
47655         one argument, so that the code will be portable to Autoconf 2.60.
47656         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
47657         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
47658         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
47659
47660 2006-04-19  Derek Price  <derek@ximbiot.com>
47661             Eric Blake  <ebb9@byu.net>
47662
47663         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
47664         rather than "/full/path.h".  Update comment to match.  Shorten &
47665         generalize m4_translit call via AS_TR_CPP.
47666
47667 2006-04-19  Derek Price  <derek@ximbiot.com>
47668             Eric Blake  <ebb9@byu.net>
47669
47670         * lib/inttypes.h: Correct grammar in comment.
47671
47672 2006-04-18  Derek Price  <derek@ximbiot.com>
47673             Paul Eggert  <eggert@cs.ucla.edu>
47674
47675         * modules/inttypes: New file.
47676         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
47677
47678 2006-04-18  Derek Price  <derek@ximbiot.com>
47679             Paul Eggert  <eggert@cs.ucla.edu>
47680
47681         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
47682         New files.
47683
47684 2006-04-18  Derek Price  <derek@ximbiot.com>
47685             Paul Eggert  <eggert@cs.ucla.edu>
47686
47687         * lib/inttypes.h: New file.
47688         * lib/strtoimax.c: Assume <inttypes.h>.
47689
47690 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
47691
47692         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
47693         isn't mounted.  Problem reported by Kir Kolyshkin.
47694
47695 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
47696
47697         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
47698         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
47699         Derek R. Price.
47700         * lib/regex.h (RE_DUP_MAX): Update comment to match current
47701         implementation.
47702
47703 2006-04-12  Eric Blake  <ebb9@byu.net>
47704
47705         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
47706         is now done automatically by the corresponding Autoconf macro.
47707
47708 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
47709
47710         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
47711         time_r.h.
47712
47713 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47714
47715         Merge regex changes from libc, removing some of our
47716         POSIX-conformance changes that were rejected and redoing them in a
47717         less-intrusive way.
47718
47719         * lib/regcomp.c (re_compile_internal, init_dfa):
47720         Length arg is now size_t, not Idx.  All uses changed.
47721         (peek_token): Forward decl now says internal_function.
47722         (__re_error_msgid, __re_error_msgid_idx):
47723         Now static rather than extern with attribute_hidden.
47724         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
47725         For some reason libc prefers K&R style defns for external functions.
47726         (regerror) [!defined _LIBC]: Likewise.
47727         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
47728         (seek_collating_symbol_entry, lookup_collation_sequence_value):
47729         (build_range_exp, build_collating_symbol):
47730         Use K&R-style defn.
47731         (re_compile_fastmap): Use '\0' to memset, not 0.
47732         (utf8_sb_map): Make the calculations more obvious.
47733         (init_dfa, parse_bracket_exp, build_charclass_op):
47734         Call calloc and cast result, as glibc does.
47735         (init_word_char, fetch_token, peek_token, peek_token_bracket):
47736         (build_range_exp, build_collating_symbol):
47737         Now internal functions.
47738
47739         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
47740
47741         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
47742         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
47743         Don't depend on VMS; depend on __VMS instead, for POSIX
47744         namespace cleanness.
47745         (regoff_t): Define to ssize_t, not long int.
47746
47747         Remove the REG_ macros named below.  Instead, make the old names
47748         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
47749         __USE_GNU_REGEX.
47750         (REG_BACKSLASH_ESCAPE_IN_LISTS):
47751         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
47752         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
47753         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
47754         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
47755         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
47756         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
47757         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
47758         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
47759         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
47760         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
47761         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
47762         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
47763         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
47764         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
47765         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
47766         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
47767         (REG_NREGS):
47768         Remove.  All uses replaced by the old RE_* names.
47769         (RE_BACKSLASH_ESCAPE_IN_LISTS):
47770         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
47771         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
47772         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
47773         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
47774         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
47775         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
47776         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
47777         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
47778         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
47779         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
47780         Don't bother having these macros be independent of each others'
47781         values, since they no longer exist in the POSIX name space.
47782
47783         Rename the following member names back to their old names,
47784         unless !__USE_GNU_REGEX.  All uses changed back.
47785         (buffer): Renamed from re_buffer.
47786         (allocated): Renamed from re_allocated.
47787         (used): Renamed from re_used.
47788         (syntax): Renamed from re_syntax.
47789         (fastmap): Renamed from re_fastmap.
47790         (translate): Renamed from re_translate.
47791         (can_be_null): Renamed from re_can_be_null.
47792         (regs_allocated): Renamed from re_regs_allocated.
47793         (fastmap_accurate): Renamed from re_fastmap_accurate.
47794         (no_sub): Renamed from re_no_sub.
47795         (not_bol): Renamed from re_not_bol.
47796         (not_eol): Renamed from re_not_eol.
47797         (newline_anchor): Renamed from re_newline_anchor.
47798         (num_regs): Renamed from rm_num_regs.
47799         (start): Renamed from rm_start.
47800         (end): Renamed from rm_end.
47801
47802         (free_state): Move up a bit.
47803
47804         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
47805         #define to be empty.
47806         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
47807         when that is what is intended.
47808         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
47809         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
47810         (MAX): New macro.
47811         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
47812         All uses changed back to re_malloc, etc.  It's now the caller's
47813         responsibility to check for overflow; all callers changed.
47814         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
47815         (re_x2nrealloc): Remove.
47816         (free_state): Remove decl.
47817
47818         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
47819         (re_set_registers, re_exec):
47820         Use K&R-style defn.
47821
47822         2006-01-31  Roland McGrath  <roland@redhat.com>
47823
47824         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
47825         Reported by Mike Frysinger <vapier@gentoo.org>.
47826
47827         2006-01-15  Andreas Jaeger  <aj@suse.de>
47828
47829         [BZ #1950]
47830         * lib/regex_internal.c (re_string_reconstruct): Adjust for
47831         build_wcs_upper_buffer change.
47832         (build_wcs_upper_buffer): Change return type.
47833
47834         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
47835
47836         * lib/regex_internal.h: Include <stdint.h> if available.
47837
47838         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
47839
47840         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
47841
47842         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
47843
47844         * lib/regcomp.c: Adjust for changed secondary hash function.
47845
47846         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
47847
47848         * lib/regex.h: Pretty printing.
47849         Clean up namespace a bit.
47850
47851         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
47852
47853         * lib/regexec.c (update_cur_sifted_state, check_arrival,
47854         check_arrival_add_next_nodes): Avoid using uninitialized variable.
47855
47856         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
47857                     Ulrich Drepper  <drepper@redhat.com>
47858
47859         [BZ #1302]
47860         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
47861         changed.
47862         (bitset_word_t): Renamed from bitset_word.  All uses changed.
47863
47864         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
47865
47866         [BZ #281]
47867         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
47868         * lib/regcomp.c: Remove unnecessary uses of
47869         unsigned RE_TRANSLATE_TYPE.
47870         * lib/regex_internal.h: Likewise.
47871         * lib/regex_internal.c: Likewise.
47872         * lib/regexec.c: Likewise.
47873         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
47874
47875         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
47876
47877         * lib/regexec.c (find_recover_state): Remove unnecessary
47878         initialization.
47879         (transit_state_bkref): Make DFA a const pointer.
47880         (get_subexp): Likewise.
47881         (check_arrival): Likewise.
47882         (update_cur_sifted_state): Likewise.
47883         (re_search_internal): Likewise.
47884         (prune_impossible_nodes): Likewise.
47885         (acquire_init_state_context): Likewise.
47886         (proceed_next_node): Likewise.
47887         (set_regs): Likewise.
47888         (free_fail_stack_return): Likewise.
47889         (check_arrival_expand_ecl): Mark DFA parameter as const.
47890         (check_arrival_expand_ecl_sub): Likewise.
47891         (check_subexp_limits): Likewise.
47892         (sub_epsilon_src_nodes):  Likewise.
47893         (add_epsilon_src_nodes):  Likewise.
47894         (merge_state_array): Likewise.
47895         (update_regs): Likewise.
47896         (build_trtable): Likewise.
47897         (sift_states_backward): Mark MCTX parameter as const.
47898         (build_sifted_states): Likewise.
47899         (update_cur_sifted_state): Likewise.
47900         (sift_states_mkref): Likewise.
47901         (check_arrival_expand_ecl): Mark eclosure as const.
47902         (check_dst_limits_calc_pos_1): Likewise.
47903         * lib/regex_internal.h (re_match_context_t): Make dfa a const
47904         pointer.
47905
47906         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
47907
47908         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
47909         (transit_state_sb): Likewise.
47910         (transit_state_mb): Likewise.
47911         (sift_states_iter_mb): Likewise.
47912         (check_arrival_add_next_nodes): Likewise.
47913         (check_node_accept_bytes): Change first parameter to pointer-to-const.
47914         [_LIBC] (re_search_2_stub): Use mempcpy.
47915
47916         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
47917         mbrtowc for very simple UTF-8 case.
47918
47919         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
47920         a pointer-to-const.
47921         (re_acquire_state_context): Likewise.
47922         * lib/regex_internal.h: Adjust prototypes.
47923
47924         * lib/regex.c: Prevent using C++ compilers.
47925
47926         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
47927         (re_acquire_state_context): Likewise.
47928
47929 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47930
47931         * modules/regex (Depends-on): Add ssize_t.
47932
47933 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47934
47935         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
47936         translation table.
47937
47938 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47939
47940         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
47941
47942 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
47943             Bruno Haible  <bruno@clisp.org>
47944
47945         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
47946         <sys/types.h> and <inttypes.h>.
47947
47948 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47949
47950         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
47951         `__error_t_defined', so argp.h will not typedef the former.
47952
47953 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
47954
47955         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
47956         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
47957         glibc names.  Even if glibc is changed to conform to POSIX, the
47958         traditional names will be available anyway, since regex depends on
47959         the extensions module.  Also, fix a longstanding typo in the
47960         implementation of Spencer ERE test #75 from grep 2.3.  Problems
47961         reported by Emanuele Giaquinta.  Also, change sense of cached
47962         variable, so that the message makes sense.
47963
47964 2006-03-24  Simon Josefsson  <jas@extundo.com>
47965
47966         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
47967         including some doc fixes.
47968         (base64_encode_alloc): Fix +1 bug on allocation failures.
47969
47970 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47971
47972         * lib/base64.c (base64_encode): Do not read past end of array with
47973         unsanitized input on systems with CHAR_BIT > 8.
47974
47975 2006-03-24  Eric Blake  <ebb9@byu.net>
47976
47977         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
47978
47979 2006-03-22  Karl Berry  <karl@gnu.org>
47980
47981         * config/srclist.txt (*setenv.[ch]): get from coreutils.
47982         * config/srclistvars.sh (COREUTILS): new var.
47983
47984 2006-03-17  Jim Meyering  <jim@meyering.net>
47985
47986         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
47987         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
47988
47989 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
47990
47991         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
47992         no longer needs it.  Instead, check that regoff_t is as least
47993         as wide as ptrdiff_t.
47994
47995         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
47996         so that our regex.h stays compatible with the installed regex.
47997         This is helpful for installers who configure --without-included-regex.
47998         Problem reported by Emanuele Giaquinta.
47999
48000 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
48001
48002         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
48003         Typedef to long int, not to off_, as POSIX will likely change
48004         in that direction.
48005
48006 2006-03-15  Eric Blake  <ebb9@byu.net>
48007
48008         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
48009
48010 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
48011
48012         * lib/argp-help.c (validate_uparams): Fix typo
48013         * lib/argp-parse.c (argp_default_options): Consistently begin help
48014         messages with a lowercase letter.
48015
48016 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
48017
48018         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
48019         overrun buffers and shouldn't be used (much as gets shouldn't be
48020         used).
48021         * lib/time_r.c (asctime_r, ctime_r): Likewise.
48022
48023 2006-03-08  Simon Josefsson  <jas@extundo.com>
48024
48025         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
48026         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48027
48028 2006-03-08  Simon Josefsson  <jas@extundo.com>
48029
48030         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
48031         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48032
48033 2006-03-08  Simon Josefsson  <jas@extundo.com>
48034
48035         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
48036         signal that configure disabled the device.
48037
48038 2006-03-08  Simon Josefsson  <jas@extundo.com>
48039
48040         * build-aux/maint.mk: Fix refresh-po, to handle no translated
48041         languages.
48042
48043 2006-03-07  Simon Josefsson  <jas@extundo.com>
48044
48045         * modules/getopt (Depends-on): Add unistd.
48046
48047         * modules/unistd: New file.
48048
48049 2006-03-07  Simon Josefsson  <jas@extundo.com>
48050
48051         * modules/gc-random: New file.
48052
48053 2006-03-07  Simon Josefsson  <jas@extundo.com>
48054
48055         * m4/unistd_h.m4: New file.
48056
48057 2006-03-07  Simon Josefsson  <jas@extundo.com>
48058
48059         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
48060         test to be side-effect free by storing the result in the cache
48061         variable gl_cv_lib_readline, and moving the assignment of
48062         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
48063         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48064
48065 2006-03-07  Simon Josefsson  <jas@extundo.com>
48066
48067         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
48068         error on missing devices (the functions will return an error).
48069
48070         * m4/gc.m4: Move random stuff to gc-random.m4
48071
48072 2006-03-07  Simon Josefsson  <jas@extundo.com>
48073
48074         * lib/unistd_.h: New file.
48075
48076 2006-03-07  Simon Josefsson  <jas@extundo.com>
48077
48078         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
48079
48080 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
48081
48082         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
48083         Problem reported by Juan Manuel Guerrero.
48084
48085 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
48086
48087         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
48088         the unistd module.
48089         * lib/getlogin_r.c: Likewise.
48090         * lib/getlogin_r.h: Likewise.
48091         * lib/glob.c: Likewise.
48092         * lib/pagealign_alloc.c: Likewise.
48093         * lib/unistd_.h: Remove; no longer needed.
48094
48095 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
48096
48097         * MODULES.html.sh (Support for systems lacking POSIX:2001):
48098         Add unistd.
48099         * modules/c-stack (Depends-on): Add unistd.
48100         * modules/getlogin_r: Likewise.
48101         * modules/glob: Likewise.
48102         * modules/pagealign_alloc: Likewise.
48103         * modules/unistd (Files): Remove lib/unistd_.h.
48104         (EXTRA_DIST): Remove.
48105         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
48106         need unistd_.h.
48107         (MOSTLYCLEANFILES): Remove unistd.h-t.
48108
48109 2006-03-03  Simon Josefsson  <jas@extundo.com>
48110
48111         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
48112
48113 2006-03-03  Simon Josefsson  <jas@extundo.com>
48114
48115         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
48116         libidn and bison.
48117
48118 2006-03-03  Simon Josefsson  <jas@extundo.com>
48119
48120         * build-aux/maint.mk: Add indent target.
48121
48122 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
48123
48124         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
48125         our replacement poll.h in any case, to avoid a differing
48126         declaration from a system header.  Seen on AIX.
48127
48128 2006-03-01  Simon Josefsson  <jas@extundo.com>
48129
48130         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
48131         <kasal@ucw.cz>.
48132
48133 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
48134
48135         * modules/gettime (Depends-on): Add extensions module.
48136         * modules/nanosleep (Depends-on): Likewise.
48137         * modules/settime (Depends-on): Likewise.
48138
48139 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
48140
48141         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
48142         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
48143         pedantically.
48144         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
48145         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
48146
48147         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
48148         not "==".  Reported by Ralf Wildenhues.
48149
48150 2006-03-01  Karl Berry  <karl@gnu.org>
48151
48152         * doc/Copyright/request-*: new files, synced from gnuorg.
48153
48154 2006-03-01  Karl Berry  <karl@gnu.org>
48155
48156         * config/srclist.txt (Copyright/*): new entries.
48157
48158 2006-02-28  Simon Josefsson  <jas@extundo.com>
48159
48160         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
48161
48162 2006-02-27  Simon Josefsson  <jas@extundo.com>
48163
48164         * lib/base64.h: Indent #define's.  From Jim Meyering
48165         <jim@meyering.net>.
48166
48167 2006-02-27  Jim Meyering  <jim@meyering.net>
48168
48169         Revert the change of 2006-02-24, so these files can continue
48170         to be sync'd from gettext.
48171         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
48172         of `config.h'.
48173
48174 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
48175
48176         * modules/intprops: New file.
48177         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
48178         Add intprops.
48179         * modules/getloadavg (Files): Remove lib/intprops.h.
48180         (Depends-on): Add intprops.
48181         * modules/human: Likewise.
48182         * modules/inttostr: Likewise.
48183         * modules/openat: Likewise.
48184         * modules/sig2str: Likewise.
48185         * modules/userspec: Likewise.
48186         * modules/utimecmp: Likewise.
48187         * modules/xnanosleep: Likewise.
48188         * modules/xstrtol: Likewise.
48189
48190 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
48191
48192         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
48193         * modules/lock-tests (TESTS): Use $(EXEEXT).
48194         * modules/tls-tests: Likewise.
48195         * modules/argp-tests: Likewise.
48196         (check_PROGRAMS): New var, replacing...
48197         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
48198
48199 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48200
48201         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
48202         `config.h'.
48203
48204 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
48205
48206         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
48207
48208 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48209
48210         Sync from coreutils.
48211         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
48212         gl_CHDIR_SAFER.
48213
48214 2006-02-22  Jim Meyering  <jim@meyering.net>
48215
48216         Sync from coreutils.
48217         * m4/chdir-safer.m4: New file.
48218
48219 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
48220
48221         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
48222         AT_FDCWD exceeds INT_MAX.
48223         * lib/openat.h (AT_FDCWD): Likewise.
48224
48225 2006-02-17  Eric Blake  <address@hidden>
48226
48227         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
48228
48229 2006-02-16  Simon Josefsson  <jas@extundo.com>
48230
48231         * modules/getaddrinfo (Depends-on): Add sys_socket.
48232
48233 2006-02-15  Simon Josefsson  <jas@extundo.com>
48234
48235         * build-aux/maint.mk: Add dsyntax-check rule.
48236
48237 2006-02-15  Eric Blake  <ebb9@byu.net>
48238
48239         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
48240         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
48241         'present but cannot compile' warnings on cygwin.
48242         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
48243         use ws2tcpip.h if sys/socket.h works.
48244         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
48245         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
48246
48247 2006-02-14  Simon Josefsson  <jas@extundo.com>
48248
48249         * modules/maintainer-makefile (Files): Rename.
48250
48251         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
48252         and (the local) Makefile.cfg to maint-cfg.mk.
48253
48254         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
48255         to the latter.
48256
48257         * modules/maintainer-makefile: New module.
48258
48259         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
48260         severaly stripped to make it possible to build it up from scratch
48261         with reliable tests.
48262
48263         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
48264         fixes to permit overriding the default actions when configure and
48265         makefile are not available.
48266
48267 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
48268
48269         Sync from coreutils.
48270         * modules/lstat (Depends-on): Don't depend on xalloc.
48271         (License): Change from GPL to LGPL, since this is now simply a
48272         replacement for a libc function.
48273
48274 2006-02-14  Jim Meyering  <jim@meyering.net>
48275
48276         Sync from coreutils.
48277
48278         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
48279         failure on deficient systems, and simplify gnulib lgpl dependencies.
48280         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
48281         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
48282
48283         * lib/xalloc-die.c: Remove unused definition of N_.
48284
48285 2006-02-14  Jim Meyering  <jim@meyering.net>
48286
48287         Sync from coreutils.
48288         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
48289         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
48290         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
48291         double-quote uses of that variable, to accommodate the rare case in
48292         which getmntent is available in none of the libraries checked.  This
48293         happens at least on FreeBSD 5.0.
48294
48295 2006-02-13  Simon Josefsson  <jas@extundo.com>
48296
48297         * gnulib-tool (Usage): Fix --import, from
48298         karl@freefriends.org (Karl Berry).
48299
48300 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
48301
48302         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
48303
48304 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
48305
48306         * lib/argp-namefrob.h: Restore changes accidentally lost during the
48307         "autoupdate" on 2005-12-12.
48308
48309 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
48310
48311         * modules/closeout (Depends-on): Remove atexit.
48312
48313 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
48314
48315         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
48316         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
48317
48318 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
48319
48320         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
48321         __EXTENSIONS__ if this causes compilation to fail.  Problem
48322         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
48323         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
48324
48325 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
48326
48327         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
48328         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
48329         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
48330         All uses changed.
48331
48332 2006-01-26  Simon Josefsson  <jas@extundo.com>
48333
48334         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
48335         prototype is visible on mingw32.
48336
48337         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
48338         for mingw32.
48339
48340         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
48341         mingw32).
48342
48343 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
48344
48345         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
48346         attempt to open for write; this always fails, at least on POSIX
48347         hosts.  This reinstates the 2006-01-09 change, which was
48348         inadvertently removed.
48349
48350 2006-01-26  Bruno Haible  <bruno@clisp.org>
48351
48352         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
48353         Reported by Paul Eggert.
48354
48355 2006-01-26  Bruno Haible  <bruno@clisp.org>
48356             Paul Eggert  <eggert@cs.ucla.edu>
48357
48358         * lib/stdbool_.h (_Bool)
48359         [(! (defined __cplusplus || defined __BEOS__)
48360           && !defined __GNUC__
48361           && !(defined __HP_cc || defined __xlc__
48362                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
48363                || defined __sgi))]:
48364         #define to signed char in these cases too; this simplifies
48365         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
48366         etc., separately) and makes it more conservative.
48367
48368 2006-01-25  Simon Josefsson  <jas@extundo.com>
48369
48370         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
48371         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
48372         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
48373
48374 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
48375
48376         * lib/argp-namefrob.h: Bugfix. Remove stray #
48377
48378 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
48379
48380         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
48381         so that we test the test.
48382         Check for yet another HP-UX cc bug involving *bool |= bool.
48383
48384 2006-01-25  Karl Berry  <karl@gnu.org>
48385
48386         * config/srclist.txt (vasnprintf.c): sync lost.
48387
48388 2006-01-25  Jim Meyering  <jim@meyering.net>
48389
48390         Sync from the stable (b5) branch of coreutils:
48391
48392         * lib/fts.c (fts_children): Don't let close() clobber errno from
48393         failed fchdir().
48394
48395         * lib/fts.c (fts_stat): When following a symlink-to-directory,
48396         don't necessarily interpret stat-fails+lstat-succeeds as indicating
48397         a dangling symlink.  That can also happen at least for ELOOP.
48398         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
48399         FYI, this bug predates the inclusion of fts.c in coreutils.
48400
48401         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
48402         in their own block, so pre-c99 compilers don't object.
48403
48404         Avoid the double-free (first in fts_read, second in fts_close) that
48405         would occur when an `active' directory is made inaccessible (e.g.,
48406         via chmod a-x) during a traversal.
48407         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
48408         before returning.  Reproduce this failure by
48409         mkdir -p a/b; cd a; chmod a-x . b
48410         Reported by Stavros Passas.
48411
48412 2006-01-25  Jim Meyering  <jim@meyering.net>
48413
48414         * lib/fileblocks.c: Remove more useless parentheses.
48415         * lib/readutmp.h: Likewise.
48416
48417 2006-01-25  Bruno Haible  <bruno@clisp.org>
48418
48419         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
48420         warnings.
48421         Reported by Paul Eggert.
48422
48423 2006-01-25  Bruno Haible  <bruno@clisp.org>
48424
48425         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
48426         rid of a trap command. For Solaris sh.
48427         Reported by Mark D. Baushke <mdb@gnu.org>.
48428
48429 2006-01-24  Simon Josefsson  <jas@extundo.com>
48430
48431         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
48432         Bruno.
48433
48434 2006-01-24  Karl Berry  <karl@gnu.org>
48435
48436         * config/srclist.txt (argp-namefrob.h): sync lost.
48437
48438 2006-01-24  Jim Meyering  <jim@meyering.net>
48439
48440         * modules/openat (Files): Add lib/intprops.h.
48441         From Mark D. Baushke.
48442
48443 2006-01-24  Jim Meyering  <jim@meyering.net>
48444
48445         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
48446         Reported by Mark D. Baushke.
48447
48448 2006-01-24  Jim Meyering  <jim@meyering.net>
48449
48450         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
48451
48452 2006-01-24  Bruno Haible  <bruno@clisp.org>
48453
48454         * modules/strnlen (Maintainer): Change from glibc to all.
48455
48456 2006-01-24  Bruno Haible  <bruno@clisp.org>
48457
48458         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
48459         Patch by Paul Eggert.
48460
48461 2006-01-24  Bruno Haible  <bruno@clisp.org>
48462
48463         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
48464         already has it.
48465         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
48466         2005-11-26.
48467
48468         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
48469         'signed char' to avoid problems with the built-in _Bool type.
48470         Reported by Paul Eggert on 2005-11-26.
48471
48472 2006-01-24  Bruno Haible  <bruno@clisp.org>
48473
48474         * gnulib-tool (func_import): Avoid constructing complicated sed
48475         expressions inside backquote.
48476         Report and solution by Mark D. Baushke <mdb@gnu.org>.
48477
48478 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
48479
48480         These changes imported from libc.
48481         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
48482         test and two separate function calls.
48483         * lib/strndup.c (__strndup): Add libc_hidden_def.
48484
48485 2006-01-23  Simon Josefsson  <jas@extundo.com>
48486
48487         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
48488         Remove the test_*_SOURCES variable: automake infers it by default.
48489         * modules/tls-tests: Likewise.
48490
48491 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48492
48493         Work around porting bugs reported by Dieter in
48494         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
48495         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
48496         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
48497         Include "getopt.h" first, to check interface.
48498         (getenv): Declare only if defined HAVE_DECL_GETENV &&
48499         !HAVE_DECL_GETENV.
48500         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
48501         (__strndup): Revert to K&R-style function dfns, the glibc style.
48502         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
48503         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
48504         Include strnlen.h first, to get prototype properly.
48505         (strnlen): Renamed from __strnlen.
48506         Remove weak alias.
48507
48508 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48509
48510         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
48511
48512 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48513
48514         * config/srclist.txt: Adjust to reflect glibc reorganization.
48515         This affects only comments.
48516
48517 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
48518
48519          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
48520          Reported by Bruce Korb <bkorb@gnu.org>.
48521
48522 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
48523
48524         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
48525         to pacify gcc -Wswitch-default.
48526
48527 2006-01-22  Bruno Haible  <bruno@clisp.org>
48528
48529         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
48530         temporary buffer for sprintf, take into account the precision also
48531         for 'd', 'i', 'u', 'o', 'x', 'X'.
48532
48533 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
48534
48535         * modules/argp-tests: New module
48536         * tests/test-argp.c: New file
48537         * tests/test-argp-2.sh: New file
48538
48539 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
48540
48541         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
48542         (__argp_base_name): Removed
48543         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
48544         typo.
48545         (__argp_base_name): Provide macro definition or extern declaration
48546         depending on the configuration
48547
48548 2006-01-20  Simon Josefsson  <jas@extundo.com>
48549
48550         * modules/inet_ntop (Depends-on): Depend on sys_socket.
48551
48552 2006-01-20  Simon Josefsson  <jas@extundo.com>
48553
48554         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
48555
48556 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
48557
48558         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
48559         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
48560         Suggested by Bruno Haible.
48561
48562 2006-01-20  Karl Berry  <karl@gnu.org>
48563
48564         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
48565         until changes propagate, I guess.
48566
48567 2006-01-19  Simon Josefsson  <jas@extundo.com>
48568
48569         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
48570
48571 2006-01-19  Simon Josefsson  <jas@extundo.com>
48572
48573         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
48574
48575 2006-01-19  Simon Josefsson  <jas@extundo.com>
48576
48577         * gnulib-tool: Set check_PROGRAMS.
48578
48579         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
48580         modules/des-tests, modules/gc-arcfour-tests,
48581         modules/gc-arctwo-tests, modules/gc-des-tests,
48582         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
48583         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
48584         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
48585         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
48586         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
48587         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
48588         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
48589         test_*_SOURCES.
48590
48591 2006-01-18  Simon Josefsson  <jas@extundo.com>
48592
48593         * modules/socklen (Depends-on): Depend on sys_socket.
48594
48595 2006-01-18  Simon Josefsson  <jas@extundo.com>
48596
48597         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
48598         modules/des-tests, modules/gc-arcfour-tests,
48599         modules/gc-arctwo-tests, modules/gc-des-tests,
48600         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
48601         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
48602         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
48603         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
48604         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
48605         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
48606         $(EXEEXT) to automake TESTS variable, for mingw32.
48607
48608 2006-01-17  Simon Josefsson  <jas@extundo.com>
48609
48610         * modules/socklen (Include): Need sys/socket.h.
48611
48612 2006-01-17  Bruno Haible  <bruno@clisp.org>
48613
48614         * modules/ssize_t (Include): Add <sys/types.h>.
48615
48616 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
48617
48618         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
48619         it's not portable and it doesn't work with cross-compiles.
48620         Problem reported by Bruno Haible.  Fix missing-$ typo in
48621         'test "gl_cv_ignore_unused_libraries" ...' that prevented
48622         -zignore from being used with Sun's C compiler.
48623
48624 2006-01-12  Simon Josefsson  <jas@extundo.com>
48625
48626         * lib/base64.c: Fix warning, reported by Bruno Haible
48627         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
48628
48629 2006-01-12  Bruno Haible  <bruno@clisp.org>
48630
48631         * modules/ldd: New file.
48632         * build-aux/ldd.sh.in: New file.
48633         * MODULES.html.sh (Support for building libraries and executables): Add
48634         ldd.
48635
48636 2006-01-12  Bruno Haible  <bruno@clisp.org>
48637
48638         * m4/ldd.m4: New file.
48639
48640 2006-01-12  Bruno Haible  <bruno@clisp.org>
48641
48642         * gnulib-tool (func_import, func_create_testdir): Don't go into an
48643         endless loop while replacing $auxdir with build-aux.
48644
48645 2006-01-11  Simon Josefsson  <jas@extundo.com>
48646
48647         * lib/stdint_.h (SIZE_MAX): Add missing (.
48648
48649 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
48650
48651         Sync from coreutils.
48652         * lib/md5.c: Fix commentary typos.
48653         (alignof, UNALIGNED_P): No need for a GCC-specific version.
48654         * lib/md5.h (__attribute__): Remove; unused.
48655         * lib/sha1.c: Fix commentary to match md5 better.
48656         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
48657         so that we don't need to worry about alignment.  All uses changed.
48658         This merges the 2005-10-28 md5 change into sha1.
48659
48660 2006-01-11  Jim Meyering  <jim@meyering.net>
48661
48662         Sync from coreutils.
48663         * lib/md5.c (OP): Fix spacing.
48664
48665 2006-01-11  Bruno Haible  <bruno@clisp.org>
48666
48667         Ensure automatic ordering between gl_LOCK and gl_ARGP.
48668         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
48669         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
48670
48671 2006-01-11  Bruno Haible  <bruno@clisp.org>
48672
48673         Ensure automatic ordering between gl_LOCK and gl_ARGP.
48674         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
48675         the "early" section as well.
48676
48677 2006-01-11  Bruno Haible  <bruno@clisp.org>
48678
48679         Avoid "ar: no archive members specified" error on MacOS X.
48680         * gnulib-tool (func_modules_add_dummy): New function.
48681         (func_import, func_create_testdir): Invoke it.
48682
48683 2006-01-11  Bruno Haible  <bruno@clisp.org>
48684
48685         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
48686         with $auxdir in AC_CONFIG_FILES statements.
48687
48688 2006-01-11  Bruno Haible  <bruno@clisp.org>
48689
48690         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48691         Initialize also noinst_HEADERS to empty.
48692
48693 2006-01-11  Bruno Haible  <bruno@clisp.org>
48694
48695         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
48696         variables.
48697         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
48698         autoreconf.
48699
48700 2006-01-11  Bruno Haible  <bruno@clisp.org>
48701
48702         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
48703         overridable by the user.
48704         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48705
48706 2006-01-10  Simon Josefsson  <jas@extundo.com>
48707
48708         * modules/sys_socket: New file.
48709
48710 2006-01-10  Simon Josefsson  <jas@extundo.com>
48711
48712         * m4/sys_socket_h.m4: New file.
48713
48714 2006-01-10  Simon Josefsson  <jas@extundo.com>
48715
48716         * lib/socket_.h: New file.
48717
48718 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
48719
48720         * modules/readutmp (Maintainer): Add myself.
48721
48722 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
48723
48724         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
48725         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
48726         People who are still concerned with buggy memcmp implementations
48727         can invoke gl_FUNC_MEMCMP themselves.
48728
48729 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
48730
48731         * lib/regex_internal.h (BITSET_WORD_BITS):
48732         Work around a bug in 64-bit PGC (before version 6.1-2), where the
48733         preprocessor mishandles large unsigned values as if they were signed.
48734         Problem reported by Claudio Fontana in
48735         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
48736
48737 2006-01-10  Jim Meyering  <jim@meyering.net>
48738
48739         Avoid the double-free (first in fts_read, second in fts_close) that
48740         would occur when an `active' directory is made inaccessible (e.g.,
48741         via chmod a-x) during a traversal.
48742         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
48743         before returning.  Reproduce this failure by
48744         mkdir -p a/b; cd a; chmod a-x . b
48745         Reported by Stavros Passas.
48746
48747         Sync from coreutils.
48748         * lib/sha1.c: Tweak grammar in a comment.
48749
48750 2006-01-10  Jim Meyering  <jim@meyering.net>
48751
48752         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
48753         Patch by Joerg Sonnenberger.
48754
48755 2006-01-10  Bruno Haible  <bruno@clisp.org>
48756
48757         * modules/readutmp: Depend on module free.
48758         * modules/strtok_r: Depend on module restrict.
48759
48760 2006-01-10  Bruno Haible  <bruno@clisp.org>
48761
48762         * modules/gettext (configure.ac): Add an invocation of
48763         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
48764
48765 2006-01-10  Bruno Haible  <bruno@clisp.org>
48766
48767         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
48768         Reported by Werner Lemberg <wl@gnu.org>.
48769
48770 2006-01-10  Bruno Haible  <bruno@clisp.org>
48771
48772         * lib/localcharset.c: Update from GNU gettext.
48773
48774 2006-01-10  Bruno Haible  <bruno@clisp.org>
48775
48776         * lib/argp.h (__const): Remove macro. Use const instead.
48777         * lib/argp-fmtstream.h (__const): Likewise.
48778         * lib/glob_.h (__const): Remove macro.
48779         * lib/glob-libc.h: Use const instead of __const.
48780
48781 2006-01-10  Bruno Haible  <bruno@clisp.org>
48782
48783         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
48784         variable.
48785         Needed to avoid an automake error regarding the 'gettext' module.
48786
48787 2006-01-09  Simon Josefsson  <jas@extundo.com>
48788
48789         * modules/inet_ntop (Depends-on): Add restrict.
48790
48791 2006-01-09  Simon Josefsson  <jas@extundo.com>
48792
48793         * modules/gc-rijndael-tests (License): Put under LGPL.
48794
48795         * modules/gc-des-tests (License): Likewise.
48796
48797         * modules/gc-arcfour-tests (License): Likewise.
48798
48799         * modules/gc-arctwo-tests (License): Likewise.
48800
48801         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
48802
48803         * modules/gc-hmac-sha1-tests (Files): Likewise.
48804
48805         * modules/gc-hmac-md5-tests (License): Likewise.
48806
48807         * modules/gc-sha1-tests (License): Likewise.
48808
48809         * modules/gc-md5-tests (License): Likewise.
48810
48811         * modules/gc-md4-tests (License): Likewise.
48812
48813         * modules/gc-md2-tests (License): Likewise.
48814
48815         * modules/gc-tests (License): Likewise.
48816
48817         * modules/des-tests (License): Likewise.
48818
48819         * modules/md4-tests (License): Likewise.
48820
48821         * modules/md2-tests (License): Likewise.
48822
48823 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48824
48825         Sync from coreutils:
48826
48827         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
48828         * modules/lib-ignore: New file.
48829         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
48830         chdir-safer.m4, lchmod.m4.
48831         * modules/openat: Add mkdirat.c, openat-priv.h.
48832
48833 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48834
48835         Sync from coreutils.
48836         * m4/lib-ignore.m4: New file.
48837         * m4/lchmod.m4: New file.
48838
48839 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48840
48841         Sync from coreutils.
48842         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
48843         for write access: POSIX says that must fail.
48844         * lib/fts.c (diropen): Likewise.
48845         * lib/save-cwd.c (save_cwd): Likewise.
48846         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
48847         well, for minor improvements on hosts that lack O_DIRECTORY.
48848         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
48849         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
48850         Fall back on chown if open failed with EACCES.
48851
48852         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
48853         Report an error at compile-time if only a 1-second nominal clock
48854         resolution is found.
48855
48856         * lib/lchmod.h: New file.
48857         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
48858         (make_dir_parents): Use lchown rather than chown, and
48859         lchmod rather than chmod.
48860
48861         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
48862         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
48863         "proc" reported by n0dalus.
48864
48865         * lib/mountlist.c: Include <limits.h>.
48866         (dev_from_mount_options)
48867         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
48868         New function.  It no longer assumes "dev=" has the System V meaning
48869         on Linux (since it doesn't).  It also parses "dev=" more carefully.
48870         (read_file_system_list)
48871         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
48872         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
48873         dev= in that case.
48874
48875         * lib/posixtm.h (PDS_PRE_2000): New macro.
48876         * lib/posixtm.c (year): Arg is now syntax_bits rather than
48877         allow_century.  All usages changed.  Reject dates outside the range
48878         1969-1999 if PDS_PRE_2000 is used.
48879
48880 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48881
48882         Sync from coreutils.
48883         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
48884         (Time of day items): Mention the possibility of leap seconds.
48885         Problem reported by Dr. David Alan Gilbert.
48886
48887 2006-01-09  Jim Meyering  <jim@meyering.net>
48888
48889         Sync from coreutils.
48890
48891         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
48892
48893         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
48894
48895         * lib/modechange.c (mode_compile): Reject an invalid mode string
48896         that starts with an octal digit.  From Andreas Gruenbacher.
48897
48898         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
48899         and dup to open_safer and dup_safer, respectively.
48900         (openat_permissive): Fix typo in comment.
48901
48902         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
48903         "gettext.h"; either no longer needed or are guaranteed by openat.h.
48904         (_): Remove; no longer needed.
48905         (openat): Renamed from rpl_openat; no need for rpl_openat
48906         since openat.h renames openat for us.
48907         Replace most of the body with a call to openat_permissive,
48908         to avoid duplicate code.
48909         Port to (probably hypothetical) environments were mode_t is
48910         wider than int.
48911         (openat_permissive): Require mode arg, so that we can check
48912         types better.  Put it just after flags.  Change cwd failure
48913         indicator from pointer-to-bool to pointer-to-errno-value.
48914         All callers changed.
48915         Invoke openat_save_fail and/or openat_restore_fail if
48916         cwd_errno is null, so that openat can call us.
48917         (openat_permissive, fdopendir, fstatat, unlinkat):
48918         Simplify errno handling to avoid some duplicate code,
48919         as it's OK to set errno on success.
48920         * lib/openat.h: Revamp code so that function macros depend on
48921         __OPENAT_PREFIX only, not also on AT_FDCWD.
48922         (openat_ro): Remove.  Caller changed to use openat_permissive.
48923         (openat_permissive): Now a macro, if not a function.
48924         (openat_restore_fail, openat_save_fail): Now always functions,
48925         since mkdirat needs them even if __OPENAT_PREFIX is defined.
48926
48927         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
48928         and openat.c.
48929         * lib/mkdirat.c: Include openat-priv.h.
48930         Remove definitions of macros defined therein.
48931         * lib/openat.c: Likewise.
48932
48933         * lib/mkdirat.c (mkdirat): New file and function.
48934         * lib/openat.h (mkdirat): Declare.
48935
48936         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
48937
48938         * lib/openat.h (openat_permissive): Declare.
48939         (openat_ro): Define.
48940
48941         * lib/openat.c (EXPECTED_ERRNO): New macro.
48942         (openat_permissive): New function -- used in remove.c rewrite.
48943         (all functions): Set errno just before returning, only if there
48944         was an actual failure.
48945         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
48946
48947         Emulate openat-family functions using Linux's procfs, if possible.
48948         Idea and some code based on Ulrich Drepper's glibc changes.
48949
48950         * lib/openat.c: (BUILD_PROC_NAME): New macro.
48951         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
48952         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
48953         before falling back on save_cwd and restore_cwd.
48954         (fdopendir, fstatat, unlinkat): Likewise.
48955
48956         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
48957         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
48958
48959         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
48960         as second argument to va_arg.  Otherwise, some versions of gcc
48961         warn that `if this code is reached, the program will abort'.
48962
48963 2006-01-09  Jim Meyering  <jim@meyering.net>
48964
48965         Sync from coreutils.
48966         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
48967         Require openat-priv.h.
48968
48969 2006-01-09  Bruno Haible  <bruno@clisp.org>
48970
48971         * modules/strnlen (Include): Use strnlen.h.
48972
48973 2006-01-09  Bruno Haible  <bruno@clisp.org>
48974
48975         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
48976
48977 2006-01-09  Bruno Haible  <bruno@clisp.org>
48978
48979         * lib/sysexit_.h (EX_OK): New macro.
48980         Suggested by Martin Lambers <marlam@marlam.de>.
48981
48982 2006-01-09  Bruno Haible  <bruno@clisp.org>
48983
48984         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
48985         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
48986
48987 2006-01-09  Bruno Haible  <bruno@clisp.org>
48988
48989         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
48990         numbers.
48991
48992 2006-01-09  Bruno Haible  <bruno@clisp.org>
48993
48994         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
48995         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
48996         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
48997         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
48998
48999 2006-01-09  Bruno Haible  <bruno@clisp.org>
49000
49001         * build-aux/javacomp.sh.in: New file, moved from lib/.
49002         * modules/javacomp-script (Files): Update.
49003         (configure.ac): Add AC_CONFIG_FILES invocation.
49004         (EXTRA_DIST): Remove variable.
49005
49006         * build-aux/javaexec.sh.in: New file, moved from lib/.
49007         * modules/javaexec (Files): Update.
49008         (configure.ac): Add AC_CONFIG_FILES invocation.
49009         (EXTRA_DIST): Remove javaexec.sh.in.
49010
49011         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
49012         * modules/csharpcomp-script (Files): Update.
49013         (configure.ac): Add AC_CONFIG_FILES invocation.
49014         (EXTRA_DIST): Remove variable.
49015
49016         * build-aux/csharpexec.sh.in: New file, moved from lib/.
49017         * modules/csharpexec (Files): Update.
49018         (configure.ac): Add AC_CONFIG_FILES invocation.
49019         (EXTRA_DIST): Remove csharpexec.sh.in.
49020
49021 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
49022
49023         Sync from coreutils.
49024
49025         Add POSIX ACL support
49026         * lib/acl.h (copy_acl, set_acl): Add declarations.
49027         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
49028         systems other than Linux.
49029         (chmod_or_fchmod): New function: use fchmod when possible,
49030         and chmod otherwise.
49031         (file_has_acl): Add a POSIX ACL implementation, with a
49032         Linux-specific subcase.
49033         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
49034         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
49035         acls are unsupported.
49036         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
49037         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
49038         are unsupported.
49039
49040 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
49041
49042         Sync from coreutils.
49043         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
49044
49045 2006-01-07  Bruno Haible  <bruno@clisp.org>
49046
49047         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
49048         gl_EARLY.
49049
49050 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
49051
49052         * lib/strftime.c (tzname): Don't declare if it is already #defined.
49053         Problem reported for Mingw by Mark Junker.
49054
49055 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
49056
49057         * README: Gnulib normally doesn't generate a tarball.
49058
49059 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
49060
49061         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
49062         long int, not int, for nanosecond counts, so that people who are
49063         used to POSIX struct timespec won't be surprised.  Reported by Jim
49064         Meyering.
49065
49066 2005-12-28  Bruno Haible  <bruno@clisp.org>
49067
49068         * build-aux/config.rpath: Update from GNU gettext.
49069
49070 2005-12-16  Jim Meyering  <jim@meyering.net>
49071
49072         * modules/fprintftime: New module.
49073         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
49074
49075 2005-12-16  Jim Meyering  <jim@meyering.net>
49076
49077         * m4/fprintftime.m4: New file.
49078
49079 2005-12-16  Jim Meyering  <jim@meyering.net>
49080
49081         * lib/fprintftime.c, lib/fprintftime.h: New files.
49082
49083 2005-12-15  Simon Josefsson  <jas@extundo.com>
49084
49085         * modules/socklen (configure.ac): Fix M4 macro name, to align with
49086         new m4/socklen.m4.
49087
49088 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
49089
49090         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
49091         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
49092
49093 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
49094
49095         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
49096         * lib/argp-help.c (fill_in_uparams): Check if the constructed
49097         struct uparams is valid. Fall back to the default values if it is
49098         not.
49099
49100 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
49101
49102         * modules/argp (Files): Add argp-pin.c
49103         (Depends-on): dirname
49104         (lib_SOURCES): Add argp-pin.c
49105
49106 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
49107
49108         * m4/argp.m4:  Check if program_invocation_name and
49109         program_invocation_short_name are declared and define appropriate
49110         macros if they are not.
49111
49112 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
49113
49114         * lib/argp-help.c (__argp_base_name): New function
49115         (__argp_short_program_name): Rewrite using __argp_base_name
49116         * lib/argp-namefrob.h: Define program_invocation_name and
49117         program_invocation_short_name if requested
49118         (__argp_base_name): Add prototype
49119         * lib/argp-parse.c (argp_def): Use gettext wrappers
49120         (argp_default_parser): Use __argp_base_name
49121         * lib/argp-pin.c: New file. Defines program_invocation_name and
49122         program_invocation_short_name on systems that lack them.
49123
49124 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
49125
49126         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
49127         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
49128         porting problem reported by Georg Schwarz in
49129         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
49130
49131 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
49132
49133         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
49134         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
49135         porting problem reported by Georg Schwarz in
49136         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
49137
49138 2005-12-05  Bruno Haible  <bruno@clisp.org>
49139
49140         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
49141         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
49142         Reported by Mark Junker <mjscod@gmx.de>.
49143
49144 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
49145
49146         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
49147         Use implementation from Albert Chin, with some
49148         comments/corrections by Stepan Kasal and myself.
49149
49150 2005-12-02  Bruno Haible  <bruno@clisp.org>
49151
49152         * gnulib-tool (func_import): Accept GPLed build tool modules when
49153         --lgpl is given.
49154         * modules/csharpcomp-script: New file.
49155         * modules/csharpcomp: Depend on it.
49156         * modules/javacomp-script: New file.
49157         * modules/javacomp: Depend on it.
49158         Suggested by Simon Josefsson.
49159
49160 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
49161
49162         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
49163         statement, to work around an HP-UX 10.20 compiler bug reported by
49164         Peter O'Gorman.
49165
49166 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
49167
49168         * modules/savedir (Depends-on): Add openat.
49169
49170 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
49171
49172         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
49173         (uintmax_t) [defined uintmax_t]: Do not declare.
49174         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
49175         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
49176         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
49177         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
49178         sake of portability to weird hosts that C allows (though we don't
49179         know of any practical examples).
49180
49181         * lib/savedir.h (fdsavedir): New decl.
49182         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
49183         contains most of the former guts of savedir.
49184         (savedir): Use savedirstream.
49185         Include "openat.h".
49186
49187 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
49188
49189         * modules/obstack (Files): Add m4/ulonglong.m4.
49190         Problem reported by Davide Angelocola.
49191
49192 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
49193
49194         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
49195         coreutils no longer futzes with rounding modes.
49196
49197 2005-11-14  Jim Meyering  <jim@meyering.net>
49198
49199         * lib/mkstemp-safer.c: Include <config.h>, required for possible
49200         replacement of mkstemp.
49201
49202 2005-11-10  Simon Josefsson  <jas@extundo.com>
49203
49204         * lib/readline.c: Remove EOL.
49205
49206 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
49207
49208         * modules/gethrxtime (Depends-on): Add gettime.
49209
49210 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
49211
49212         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
49213         or gettimeofday; no longer needed.
49214
49215 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
49216
49217         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
49218         time business.
49219         (gethrxtime) [! (HAVE_NANOUPTIME
49220         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
49221         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
49222         our own approximation.
49223
49224 2005-11-08  Eric Blake  <ebb9@byu.net>
49225
49226         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
49227
49228 2005-11-08  Eric Blake  <ebb9@byu.net>
49229
49230         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
49231
49232 2005-11-04  Bruno Haible  <bruno@clisp.org>
49233
49234         * gnulib-tool: Implement --update mode.
49235
49236 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
49237
49238         Fix porting problem reported by Theodoros V. Kalamatianos.
49239         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
49240         Don't assume that futimes failing means we must fail.
49241
49242 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
49243
49244         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
49245         variables to suggest the intended function of the PATH_MAX check.
49246
49247 2005-10-30  Kean Johnston  <jkj@sco.com>
49248
49249         Trivial changes to support SCO systems.
49250         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
49251         as PATH_MAX.
49252         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
49253         where __ptr is null when no I/O is pending.
49254
49255 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
49256
49257         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
49258         leave errno alone.  Problem reported by Dmitry V. Levin.
49259
49260 2005-10-28  Simon Josefsson  <jas@extundo.com>
49261
49262         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
49263         Test more.
49264
49265         * tests/test-gc-md2.c, tests/test-md2.c: New files.
49266
49267         * modules/md2, modules/md2-tests: New files.
49268
49269 2005-10-28  Simon Josefsson  <jas@extundo.com>
49270
49271         * m4/inet_ntop.m4: More tests.
49272
49273         * m4/gc-md2.m4, md2.m4: New file.
49274
49275 2005-10-28  Simon Josefsson  <jas@extundo.com>
49276
49277         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
49278         "restrict" keywords, as per POSIX.  Protect the function
49279         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
49280         Don't use K&R prototypes.  Check the sprintf return values.
49281         Re-define EAFNOSUPPORT if not present.  Indent.
49282
49283         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
49284         suggested by Bruno Haible <bruno@clisp.org>.
49285
49286         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
49287
49288         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
49289
49290         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
49291         libgcrypt).
49292
49293         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
49294
49295         * lib/md2.h, lib/md2.c: New files.
49296
49297 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
49298
49299         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
49300         errno alone.  Problem reported by Frederic Jolliton.
49301
49302 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
49303
49304         * modules/verify (License): Change from GPL to LGPL.  This is a
49305         tiny module and there are apparently near-equivalents that are
49306         under the BSD license.
49307
49308 2005-10-24  Simon Josefsson  <jas@extundo.com>
49309
49310         * modules/sha1: Relicense to LGPL.
49311
49312 2005-10-24  Simon Josefsson  <jas@extundo.com>
49313
49314         * lib/md4.h: Shrink buffer size, now that we changed the type.
49315
49316 2005-10-23  Simon Josefsson  <jas@extundo.com>
49317
49318         * gnulib-tool (func_import): Fix --tests-base.
49319
49320 2005-10-22  Simon Josefsson  <jas@extundo.com>
49321
49322         * modules/arcfour (Depends-on): Need stdint.
49323
49324 2005-10-22  Simon Josefsson  <jas@extundo.com>
49325
49326         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
49327         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
49328
49329 2005-10-22  Simon Josefsson  <jas@extundo.com>
49330
49331         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
49332         suggested by Bruno Haible <bruno@clisp.org>.
49333
49334 2005-10-22  Simon Josefsson  <jas@extundo.com>
49335
49336         * lib/crc.h: Include stddef.h, for size_t.
49337
49338 2005-10-22  Simon Josefsson  <jas@extundo.com>
49339
49340         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
49341         arcfour_context struct (simplify test vector testing in GNU
49342         Shishi).
49343
49344 2005-10-21  Simon Josefsson  <jas@extundo.com>
49345
49346         * modules/des, modules/des-tests: New files.
49347
49348         * modules/gc-des, modules/gc-des-tests: New files.
49349
49350         * tests/test-des.c, tests/test-gc-des.c: New file.
49351
49352 2005-10-21  Simon Josefsson  <jas@extundo.com>
49353
49354         * modules/arctwo, modules/arctwo-tests: New files.
49355
49356         * tests/test-arctwo.c: New file.
49357
49358         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
49359
49360         * tests/test-gc-arctwo.c: New file.
49361
49362 2005-10-21  Simon Josefsson  <jas@extundo.com>
49363
49364         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
49365         Bruno Haible <bruno@clisp.org>.
49366
49367         * m4/gc-des.m4: New file.
49368
49369 2005-10-21  Simon Josefsson  <jas@extundo.com>
49370
49371         * m4/arctwo.m4: New file.
49372
49373         * m4/gc-arctwo.m4: New file.
49374
49375 2005-10-21  Simon Josefsson  <jas@extundo.com>
49376
49377         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
49378         block.
49379
49380 2005-10-21  Simon Josefsson  <jas@extundo.com>
49381
49382         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
49383         <bruno@clisp.org>.
49384
49385         * lib/hmac-sha1.c (hmac_sha1): Likewise.
49386
49387         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
49388         Bruno Haible <bruno@clisp.org>.
49389
49390         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
49391         <bruno@clisp.org>.
49392
49393 2005-10-21  Simon Josefsson  <jas@extundo.com>
49394
49395         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
49396
49397 2005-10-21  Simon Josefsson  <jas@extundo.com>
49398
49399         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
49400
49401 2005-10-21  Simon Josefsson  <jas@extundo.com>
49402
49403         * lib/des.h, lib/des.c: New files.
49404
49405         * lib/gc-gnulib.c: Support DES.c
49406
49407 2005-10-21  Simon Josefsson  <jas@extundo.com>
49408
49409         * lib/arctwo.h, lib/arctwo.c: New files.
49410
49411         * lib/gc-gnulib.c: Support ARCTWO.
49412
49413 2005-10-21  Simon Josefsson  <jas@extundo.com>
49414
49415         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
49416         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49417
49418 2005-10-21  Simon Josefsson  <jas@extundo.com>
49419
49420         * gnulib-tool (func_import, func_create_testdir): Define automake
49421         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
49422         Makefile.am snippet),
49423         suggested by Bruno Haible <bruno@clisp.org>.
49424
49425         * modules/gc (Makefile.am): Use it.
49426
49427 2005-10-21  Bruno Haible  <bruno@clisp.org>
49428
49429         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
49430         patch.
49431
49432 2005-10-19  Simon Josefsson  <jas@extundo.com>
49433
49434         * tests/test-gc-rijndael.c: New file.
49435
49436         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
49437
49438 2005-10-19  Simon Josefsson  <jas@extundo.com>
49439
49440         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
49441         interface too.
49442
49443 2005-10-19  Simon Josefsson  <jas@extundo.com>
49444
49445         * tests/test-gc-arcfour.c: New file.
49446
49447         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
49448
49449 2005-10-19  Simon Josefsson  <jas@extundo.com>
49450
49451         * modules/gc-md4, modules/gc-md4-tests: New file.
49452
49453         * tests/test-gc-md4.c: New file.
49454
49455 2005-10-19  Simon Josefsson  <jas@extundo.com>
49456
49457         * m4/gc-md4.m4: New file.
49458
49459 2005-10-19  Simon Josefsson  <jas@extundo.com>
49460
49461         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
49462         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
49463         <kasal@ucw.cz>.
49464
49465 2005-10-19  Simon Josefsson  <jas@extundo.com>
49466
49467         * m4/gc-arcfour.m4: New file.
49468
49469         * m4/gc-rijndael.m4: New file.
49470
49471 2005-10-19  Simon Josefsson  <jas@extundo.com>
49472
49473         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
49474
49475 2005-10-19  Simon Josefsson  <jas@extundo.com>
49476
49477         * lib/gc-gnulib.c: Support ARCFOUR.
49478
49479 2005-10-19  Simon Josefsson  <jas@extundo.com>
49480
49481         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
49482         support.
49483
49484         * lib/gc.h: Add ECB enum type.
49485
49486         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
49487
49488 2005-10-18  Simon Josefsson  <jas@extundo.com>
49489
49490         * tests/test-md5.c: New file.
49491
49492         * modules/md5-tests: New file.
49493
49494 2005-10-18  Simon Josefsson  <jas@extundo.com>
49495
49496         * tests/test-md4.c: New file.
49497
49498         * modules/md4, modules/md4-tests: New files.
49499
49500 2005-10-18  Simon Josefsson  <jas@extundo.com>
49501
49502         * m4/md4.m4: New file.
49503
49504 2005-10-18  Simon Josefsson  <jas@extundo.com>
49505
49506         * lib/md4.h, lib/md4.c: New files, based on md5.?.
49507
49508 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
49509
49510         * gnulib-tool (func_create_testdir): Omit the second check whether
49511         BUILT_SOURCES in nonempty.
49512
49513 2005-10-17  Simon Josefsson  <jas@extundo.com>
49514
49515         * tests/test-rijndael.c: New file.
49516
49517 2005-10-17  Simon Josefsson  <jas@extundo.com>
49518
49519         * modules/sha1: Depend on stdint instead of md5.
49520
49521         * modules/md5: Depend on stdint, remove uint32_t.
49522
49523 2005-10-17  Simon Josefsson  <jas@extundo.com>
49524
49525         * modules/gc-sha1-tests: New file.
49526
49527         * tests/test-gc-sha1.c: New file.
49528
49529 2005-10-17  Simon Josefsson  <jas@extundo.com>
49530
49531         * m4/md5.m4: Remove call to uint32_t.m4.
49532
49533 2005-10-17  Simon Josefsson  <jas@extundo.com>
49534
49535         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
49536
49537         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
49538         md5.h.
49539
49540         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
49541
49542         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
49543
49544 2005-10-17  Simon Josefsson  <jas@extundo.com>
49545
49546         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
49547
49548 2005-10-17  Simon Josefsson  <jas@extundo.com>
49549
49550         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
49551
49552 2005-10-17  Simon Josefsson  <jas@extundo.com>
49553
49554         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
49555
49556         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
49557
49558 2005-10-17  Bruno Haible  <bruno@clisp.org>
49559
49560         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
49561         that it can also be used in a test.
49562
49563 2005-10-16  Bruno Haible  <bruno@clisp.org>
49564
49565         * gnulib-tool (func_emit_tests_Makefile_am): Also define
49566         TESTS_ENVIRONMENT, so that individual tests can augment it.
49567
49568         * gnulib-tool (func_create_testdir): Use an intermediate target for
49569         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
49570         macros, like $(ALLOCA_H), which cannot be passed through the command
49571         line.
49572
49573 2005-10-15  Simon Josefsson  <jas@extundo.com>
49574
49575         * modules/rijndael-tests: New file.
49576
49577         * modules/rijndael: New file.
49578
49579 2005-10-15  Simon Josefsson  <jas@extundo.com>
49580
49581         * m4/rijndael.m4: New file.
49582
49583 2005-10-15  Simon Josefsson  <jas@extundo.com>
49584
49585         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
49586
49587         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
49588
49589 2005-10-14  Simon Josefsson  <jas@extundo.com>
49590
49591         * tests/test-arcfour.c: New file.
49592
49593         * modules/arcfour, modules/arcfour-tests: New files.
49594
49595 2005-10-14  Simon Josefsson  <jas@extundo.com>
49596
49597         * m4/arcfour.m4: New file.
49598
49599 2005-10-14  Simon Josefsson  <jas@extundo.com>
49600
49601         * lib/arcfour.h, lib/arcfour.c: New files.
49602
49603 2005-10-14  Roland McGrath  <roland@redhat.com>
49604
49605         Import from libc.  [BZ #1331]
49606         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
49607         macro argument.
49608         Reported by Matej Vela <vela@debian.org>.
49609
49610 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
49611
49612         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
49613         include <wchar.h>; no longer needed.
49614
49615 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
49616
49617         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
49618
49619 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
49620         and  Ulrich Drepper  <drepper@redhat.com>
49621
49622         Import from libc.
49623         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
49624         instead of inline stream orientation test and two separate
49625         function calls.  Pay no attention to USE_IN_LIBIO.
49626
49627 2005-10-13  Simon Josefsson  <jas@extundo.com>
49628
49629         * modules/gc-hmac-md5-tests: New file.
49630
49631         * tests/test-gc-hmac-sha1.c: New file.
49632
49633         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
49634
49635         * modules/gc-hmac-md5-tests: New file.
49636
49637         * tests/test-gc-md5.c: New file.
49638
49639         * modules/gc-md5-tests: New file.
49640
49641 2005-10-13  Simon Josefsson  <jas@extundo.com>
49642
49643         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
49644         Move memory allocation outside of loop.
49645
49646 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
49647
49648         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
49649         intermediate directory is in a read-only file system.  Problem
49650         reported by Eric Blake.
49651
49652 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
49653
49654         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
49655
49656 2005-10-12  Simon Josefsson  <jas@extundo.com>
49657
49658         * tests/test-hmac-sha1.c: New file.
49659
49660         * modules/hmac-sha1-tests: New file.
49661
49662         * modules/hmac-sha1: New file.
49663
49664 2005-10-12  Simon Josefsson  <jas@extundo.com>
49665
49666         * modules/gc-sha1: New file.
49667
49668 2005-10-12  Simon Josefsson  <jas@extundo.com>
49669
49670         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
49671
49672         * tests/test-gc-pbkdf2-sha1.c: New file.
49673
49674 2005-10-12  Simon Josefsson  <jas@extundo.com>
49675
49676         * modules/gc-md5, modules/gc-hmac-md5: New files.
49677
49678         * modules/gc (Files): Remove md5, memxor and hmac files.
49679
49680 2005-10-12  Simon Josefsson  <jas@extundo.com>
49681
49682         * m4/gc-pbkdf2-sha1.m4: New file.
49683
49684         * m4/gc-hmac-sha1.m4: New file.
49685
49686         * m4/gc-sha1: New file.
49687
49688         * m4/hmac-sha1.m4: New file.
49689
49690 2005-10-12  Simon Josefsson  <jas@extundo.com>
49691
49692         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
49693
49694         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
49695
49696 2005-10-12  Simon Josefsson  <jas@extundo.com>
49697
49698         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
49699         suggested by Bruno Haible <bruno@clisp.org>.
49700
49701 2005-10-12  Simon Josefsson  <jas@extundo.com>
49702
49703         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
49704
49705 2005-10-12  Simon Josefsson  <jas@extundo.com>
49706
49707         * lib/gc-pbkdf2-sha1.c: New file.
49708
49709         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
49710
49711 2005-10-12  Simon Josefsson  <jas@extundo.com>
49712
49713         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
49714
49715         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
49716
49717 2005-10-12  Simon Josefsson  <jas@extundo.com>
49718
49719         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
49720         GC_USE_HMAC_MD5, respectively.
49721
49722         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
49723         (gc_md5): Fix typo.
49724
49725         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
49726
49727         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
49728
49729         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
49730
49731 2005-10-12  Bruno Haible  <bruno@clisp.org>
49732
49733         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
49734         Reported by Stepan Kasal <kasal@ucw.cz>.
49735
49736 2005-10-11  Simon Josefsson  <jas@extundo.com>
49737
49738         * tests/test-crc.c: New file.
49739
49740         * modules/crc, modules/crc-tests: New files.
49741
49742 2005-10-11  Simon Josefsson  <jas@extundo.com>
49743
49744         * m4/crc.m4: New file.
49745
49746 2005-10-11  Simon Josefsson  <jas@extundo.com>
49747
49748         * lib/gc.h: Add gc_hash and gc_hash_buffer.
49749
49750         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
49751
49752         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
49753
49754 2005-10-11  Simon Josefsson  <jas@extundo.com>
49755
49756         * lib/crc.h, lib/crc.c: New files.
49757
49758         * lib/gc.h (gc_hash_buffer): Add doc.
49759
49760 2005-10-11  Bruno Haible  <bruno@clisp.org>
49761
49762         * modules/c-strcasestr: New file.
49763         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
49764
49765 2005-10-11  Bruno Haible  <bruno@clisp.org>
49766
49767         * modules/c-strcase: New file.
49768         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
49769
49770 2005-10-11  Bruno Haible  <bruno@clisp.org>
49771
49772         * lib/strcasecmp.c: Include limits.h.
49773         (strcasecmp): Avoid integer overflow on exotic platforms.
49774         * lib/strncasecmp.c: Include limits.h.
49775         (strncasecmp): Avoid integer overflow on exotic platforms.
49776         Reported by Paul Eggert.
49777
49778 2005-10-11  Bruno Haible  <bruno@clisp.org>
49779
49780         * lib/c-strcasestr.h: New file, from GNU gettext.
49781         * lib/c-strcasestr.c: New file, from GNU gettext.
49782
49783 2005-10-11  Bruno Haible  <bruno@clisp.org>
49784
49785         * lib/c-strcase.h: New file, from GNU gettext.
49786         * lib/c-strcasecmp.c: New file, from GNU gettext.
49787         * lib/c-strncasecmp.c: New file, from GNU gettext.
49788
49789 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
49790
49791         * modules/mempcpy (License): GPL -> LGPL.
49792         * modules/strchrnul (License): Likewise.
49793         * modules/sysexits (License): Likewise.
49794
49795 2005-10-08  Simon Josefsson  <jas@extundo.com>
49796
49797         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
49798
49799 2005-10-07  Simon Josefsson  <jas@extundo.com>
49800
49801         * m4/memxor.m4: Remove gl_C_RESTRICT call.
49802
49803 2005-10-06  Simon Josefsson  <jas@extundo.com>
49804
49805         * tests/test-hmac-md5.c: New file.
49806
49807         * modules/hmac-md5-tests: New file.
49808
49809         * modules/hmac-md5: New file.
49810
49811 2005-10-06  Simon Josefsson  <jas@extundo.com>
49812
49813         * m4/hmac-md5.m4: New file.
49814
49815         * m4/memxor.m4: Require gl_C_RESTRICT.
49816
49817 2005-10-06  Simon Josefsson  <jas@extundo.com>
49818
49819         * lib/memxor.c (memxor): Avoid casts and warnings.
49820
49821 2005-10-06  Simon Josefsson  <jas@extundo.com>
49822
49823         * lib/hmac-md5.c: New file.
49824
49825         * lib/hmac.h: New file.
49826
49827 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
49828
49829         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
49830         promotes to int, not unsigned int, to catch the AIX 5.3
49831         compiler bug.
49832
49833 2005-10-05  Simon Josefsson  <jas@extundo.com>
49834
49835         * modules/memxor: New file.
49836
49837         * modules/iconv (Files): Move config.rpath to havelib, it is used
49838         there.
49839
49840         * modules/havelib (Files): Add config.rpath.
49841
49842 2005-10-05  Simon Josefsson  <jas@extundo.com>
49843
49844         * m4/memxor.m4: New file.
49845
49846 2005-10-05  Simon Josefsson  <jas@extundo.com>
49847
49848         * lib/memxor.c (memxor): Fix compiler error.
49849
49850         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
49851         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
49852
49853         * lib/memxor.h, lib/memxor.c: New files.
49854
49855         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
49856         we assume all systems have it, suggested by Jim Meyering
49857         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
49858         any systems lack sys/socket.h; mingw32 is known to lack it, but we
49859         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
49860         same reasons.
49861
49862 2005-10-05  Simon Josefsson  <jas@extundo.com>
49863
49864         * config/srclist.txt: Add glibc bug 1423 for md5.h.
49865
49866 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
49867
49868         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
49869         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
49870         needed, since the source code now assumes these .h files.
49871
49872 2005-10-05  Derek Price  <derek@ximbiot.com>
49873
49874         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
49875
49876 2005-10-05  Bruno Haible  <bruno@clisp.org>
49877
49878         * modules/stdint (License): Change to LGPL.
49879
49880 2005-10-04  Simon Josefsson  <jas@extundo.com>
49881
49882         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
49883         D. Baushke" <mdb@gnu.org>.
49884
49885 2005-10-04  Bruno Haible  <bruno@clisp.org>
49886
49887         * lib/verify.h (verify_true): Provide alternative definition for C++.
49888
49889 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
49890
49891         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
49892         (SSIZE_MAX): New macro, if not already defined.
49893         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
49894         than 2 GiB.
49895
49896 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
49897
49898         Sync from coreutils.
49899         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
49900         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
49901         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
49902         ULLONG_MAX doesn't work with 2.7.2.1.
49903
49904 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
49905
49906         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
49907         From Ben Pfaff.
49908
49909         * modules/exclude (Depends-on): Depend on verify.
49910         * modules/strtoimax (Depends-on): Likewise.
49911         * modules/utimecmp (Depends-on): Likewise.
49912
49913 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
49914
49915         * lib/exclude.c: Include verify.h.
49916         (verify): Remove.  All callers changed to use verify.h's version.
49917         * lib/strtoimax.c: Likewise.
49918         * lib/utimecmp.c: Likewis.e
49919
49920         Sync from coreutils.
49921         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
49922         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
49923         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
49924         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
49925         bother returning ENOSYS if settimeofday or stime fails; just let
49926         them return whatever errno they want to return.
49927         * lib/utimens.c: Include unistd.h, for dup2.
49928         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
49929         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
49930
49931 2005-10-02  Jim Meyering  <jim@meyering.net>
49932
49933         Sync from coreutils.
49934         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
49935         from glibc-2.2.5 that fails for read-only files.
49936
49937 2005-10-02  Jim Meyering  <jim@meyering.net>
49938
49939         Sync from coreutils.
49940         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
49941         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
49942         `#if HAVE_CONFIG_H'.
49943         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
49944         Remove AT_FDCWD test.
49945         Do not consume the fd unless successful.
49946         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
49947         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
49948         block, so that we don't even try to compile it if settimeofday is
49949         available.  This works around a compilation failure on OSF1 V5.1,
49950         due to stime requiring a `long int*' while tv_sec is `int'.
49951
49952 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
49953
49954         Sync from coreutils.
49955         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
49956         against `yes', rather than just testing for nonempty.
49957
49958 2005-10-01  Simon Josefsson  <jas@extundo.com>
49959
49960         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
49961         and Darwin.
49962
49963         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
49964         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
49965         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
49966         freeaddrinfo and gai_strerror are declared by the POSIX headers.
49967         Check if struct addrinfo is declared.
49968
49969 2005-10-01  Simon Josefsson  <jas@extundo.com>
49970
49971         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
49972         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
49973         AI_* and EAI_* definitions.  Protect function declarations.
49974
49975 2005-10-01  Jim Meyering  <jim@meyering.net>
49976
49977         Sync from coreutils.
49978
49979         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
49980         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
49981         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
49982         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
49983         in the inet and nsl libraries.  Required on Solaris 5.7.
49984
49985 2005-10-01  Jim Meyering  <jim@meyering.net>
49986
49987         Sync from coreutils.
49988         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
49989         in the inet and nsl libraries.  Required on Solaris 5.7.
49990
49991 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
49992
49993         * lib/getdelim.c (getdelim): Remove unused variables.
49994
49995 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
49996
49997         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
49998         so that the code works even with ancient cpp.  Portability problem
49999         with GCC 2.7.2.1 reported by Thomas M.Ott.
50000
50001 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
50002
50003         * modules/regex (Depends-on): Add strcase.
50004
50005         * modules/gethostname (Licence): Change from GPL to LGPL, since
50006         gethostname.c is a trivial implementation of a standard library
50007         function.
50008         * modules/poll (License): Change from GPL to LGPL, since it's
50009         derived from LGPL code.
50010
50011 2005-09-27  Jim Meyering  <jim@meyering.net>
50012
50013         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
50014         HAVE_CONFIG_H.
50015
50016         * lib/intprops.h (signed_type_or_expr__): Define.
50017         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
50018         for unsigned types.
50019
50020 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
50021
50022         * lib/verify.h (verify_expr): Remove, replacing with:
50023         (verify_true): New macro that returns true instead of void.
50024         (verify_type__): Remove.
50025         (verify): Use verify_true rather than verify_type__.
50026
50027 2005-09-26  Bruno Haible  <bruno@clisp.org>
50028
50029         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
50030         is necessary.
50031         (lib_SOURCES): Remove mbchar.c.
50032         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
50033         (Files): Add m4/mbrtowc.m4.
50034         * modules/mbiter: Likewise.
50035         * modules/mbuiter: Likewise.
50036
50037 2005-09-26  Bruno Haible  <bruno@clisp.org>
50038
50039         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
50040         compile mbchar.c if they are not both present.
50041         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
50042         * m4/mbiter.m4 (gl_MBITER): Likewise.
50043         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
50044         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
50045         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
50046
50047 2005-09-25  Jim Meyering  <jim@meyering.net>
50048
50049         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
50050         also uses socklen_t.
50051
50052 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
50053
50054         * lib/utimens.c (ENOSYS): Define if not already defined.
50055         (futimens): Support having a null PATH if the file descriptor
50056         is nonnegative.
50057
50058         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
50059         Remove.
50060         (__attribute): Define to empty unless GCC 3.1 or later.
50061         This works around a core dump on OpenBSD 3.4, which has GCC
50062         2.95.3, which dumps core when given __attribute__(()).  It also
50063         simplifies other tests, since we really don't want to bother with
50064         worrying about which ancient version of GCC supported what.
50065         Original problem reported by Yoann Vandoorselaere, with part of
50066         the fix suggested by Derek Price.
50067
50068 2005-09-24  Jim Meyering  <jim@meyering.net>
50069
50070         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
50071         so we can once again use a positive bitfield width of 1 -- now we
50072         don't have to explain why we were using a bitfield width of 2.
50073
50074 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
50075
50076         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
50077         and similarly for the other external symbols.  Problem reported
50078         by James Gallager.
50079
50080         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
50081         bug reported by Jim Meyering.
50082
50083         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
50084         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
50085         not needed, since socklen is a prerequisite module.
50086
50087 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
50088
50089         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
50090         Problem reported by Eric Blake.
50091         (getaddrinfo): Initialize se so that it's not garbage.
50092         Redo internal storage allocation so that it doesn't make unportable
50093         assumptions about alignment.
50094         Fix a memory leak.
50095
50096         * lib/utimens.c (futimens): Use futimesat if available.
50097         Prefer it to futimes since it doesn't have the futimes bug.
50098
50099         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
50100         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
50101         Instead, declare a function that returns a pointer to an array,
50102         and use verify_type__ to declare the size of the array.
50103         Problem and germ of a solution reported by Bruno Haible.
50104         (verify_type__): Use 2, not 1, for bitfield size, to avoid
50105         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
50106
50107 2005-09-23  Jim Meyering  <jim@meyering.net>
50108
50109         Sync from coreutils.
50110         Correct build failure (socklen_t not defined) on at least
50111         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
50112         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
50113
50114 2005-09-23  Jim Meyering  <jim@meyering.net>
50115
50116         * modules/getaddrinfo (Depends-on): Add socklen.
50117
50118 2005-09-23  Bruno Haible  <bruno@clisp.org>
50119
50120         * tests/test-verify.c: New file.
50121
50122 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
50123
50124         Sync from coreutils.
50125
50126         * modules/argmatch (Depends-on): Add verify.
50127         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
50128         unistd-safer.
50129         * modules/save-cwd (Depends-on): Likewise.
50130
50131         * modules/openat (Files): Add lib/openat-die.c.
50132         (Depends-on): Remove error, exitfail.
50133         Add dirname.
50134
50135         * modules/verify: New file.
50136         * MODULES.html.sh (Diagnostics <assert.h>): New section,
50137         with "verify" module.
50138
50139 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
50140
50141         Sync from coreutils.
50142
50143         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
50144         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
50145         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
50146         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
50147         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
50148         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
50149         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
50150         Don't bother checking for string.h, stdlib.h, unistd.h.
50151         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
50152         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
50153         module's job.
50154         * m4/jm-macros.m4 (gl_MACROS): Likewise.
50155         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
50156
50157         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
50158         (gl_GETDATE): Use it.
50159
50160         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
50161
50162 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
50163
50164         Sync from coreutils.
50165
50166         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
50167         stat-time.h.
50168         * lib/argmatch.h: Include verify.h
50169         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
50170         (ARGMATCH_ASSERT): Remove; unused.
50171         * lib/canonicalize.c: Assume STDC_HEADERS.
50172         * lib/exclude.c: Include "strcase.h".
50173         * lib/regex_internal.h [!defined _LIBC]: Likewise.
50174         * lib/getusershell.c: Include stdio--.h rather than stdio.h
50175         and stdio-safer.h.
50176         (getusershell): Call fopen, not fopen_safer.
50177         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
50178         Do not include unistd-safer.h.
50179         (save_cwd): Don't call fd_safer; no longer needed
50180         now that we include fcntl--.h.
50181
50182         * lib/getdate.y (relative_time): New type.
50183         (RELATIVE_TIME_0): New constant.
50184         (parser_control): Use relative_time instead of doing it ourselves.
50185         (%union): Add new relative_time rel member.
50186         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
50187         Now typeless.
50188         (relunit, relunit_snumber): Now of type rel.
50189         (zone, rel, relunit, get_date): Adjust to above changes.
50190
50191         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
50192         Do not include unistd-safer.h.
50193         (getloadavg): Don't call fd_safer; no longer needed
50194         now that we include fcntl--.h.
50195
50196         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
50197         (make_dir_parents): Treat ENOSYS like EEXIST.
50198
50199         Improve quality of diagnostics on restore_cwd failure.
50200         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
50201         (make_dir_parents): Last arg is now int * (for errno), not bool *.
50202         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
50203         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
50204         each time through the loop.  Do not diagnose restore_cwd failure;
50205         that is the caller's job (and perhaps the caller does not care).
50206
50207         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
50208         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
50209         If the file already exists but is not a directory, don't bother
50210         to try to make its parents.
50211         Close potential file descriptor leak if we can't chdir("/") (!).
50212         Don't always return true if chdir($PWD) fails; return true only
50213         if the requested action was done successfully (except for the
50214         chdir($PWD)).
50215         Don't log final directory unless we actually made it.
50216         Refactor to avoid duplicate code to fix up permissions.
50217         Don't attempt to fix up parent permissions if chdir($PWD) fails.
50218
50219         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
50220         to make it a bit faster and (I hope) clearer.
50221         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
50222         Fix bug in formats like %2N.
50223
50224         * lib/verify.h: New file.
50225
50226 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
50227
50228         Sync from coreutils.
50229         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
50230
50231 2005-09-22  Jim Meyering  <jim@meyering.net>
50232
50233         Sync from coreutils.
50234
50235         * m4/lstat.m4 (gl_FUNC_LSTAT):
50236         Use AC_LIBSOURCES to require lstat.c and lstat.h.
50237         Remove obsolete comment.
50238         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
50239         * m4/xstrtod.m4: Likewise.
50240
50241         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
50242
50243 2005-09-22  Jim Meyering  <jim@meyering.net>
50244
50245         Sync from coreutils.
50246
50247         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
50248
50249         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
50250         the .tm_year member, since otherwise gcc-4.0 would now warn about
50251         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
50252
50253         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
50254         order to avoid an unsuppressible warning from gcc on 64-bit systems.
50255
50256         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
50257         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
50258         when run in a time zone for which daylight savings time is in effect
50259         for the starting date.
50260
50261         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
50262         stop us from restricting permissions of just-created absolute-named
50263         directories.
50264         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
50265         to restore initial working directory.
50266         * lib/mkdir-p.c (make_dir_parents): New parameter:
50267         different_working_dir, to tell caller if/when we change the working
50268         directory and are unable to return to the initial one.
50269         * lib/mkdir-p.h (make_dir_parents): Update prototype.
50270         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
50271         `return false'.  This fixes a bug introduced on 2004-07-30.
50272
50273         * lib/openat.c (fdopendir): Be sure to close the supplied
50274         file descriptor before returning.  This makes our replacement
50275         implementation a little closer to Solaris's, where fdopendir
50276         ties the file descriptor to the returned DIR* pointer.
50277         * lib/openat.c (unlinkat): New function.
50278         * lib/openat.h (unlinkat): Add prototype.
50279         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
50280         (openat_restore_fail): Rename from openat_restore_die.
50281         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
50282
50283         Provide an alternative to exiting immediately upon save_cwd or
50284         restore_cwd failure.  Now, an application can arrange e.g.,
50285         to perform a longjump in that case.
50286         * lib/openat.c: Include dirname.h.
50287         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
50288         (rpl_openat, fdopendir, fstatat): Call openat_save_die
50289         and openat_restore_die rather than calling error directly.
50290         Don't include "error.h" or "exitfail.h"; they're no longer needed.
50291
50292         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
50293         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
50294         define.
50295
50296         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
50297         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
50298                             int utc, int nanoseconds);
50299         Background:
50300         date should not have to allocate a megabyte of virtual memory to
50301         handle a format argument like +%1048575T.  When implemented with
50302         strftime, it must allocate such a buffer, use strftime to fill it
50303         in, print it, then free it.
50304         With fprintftime, it simply prints everything and exits.
50305         With no need for memory allocation, that's one fewer way to fail.
50306         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
50307         optional field width, not before, so we accept %9:z, not %:9z.
50308         (my_strftime): Be sure to use L_('x') for literals.
50309
50310         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
50311         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
50312         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
50313         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
50314         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
50315         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
50316         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
50317         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
50318         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
50319         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
50320         * lib/xgethostname.c, lib/xreadlink.c:
50321         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
50322
50323         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
50324         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
50325         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
50326         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
50327         and don't include <sys/file.h>).
50328
50329 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
50330
50331         Sync from coreutils.
50332
50333         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
50334         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
50335         [!LDAV_DONE]: Avoid unused variable warning.
50336
50337 2005-09-21  Bruno Haible  <bruno@clisp.org>
50338
50339         * lib/unicodeio.h (unicode_to_mb): New declaration.
50340
50341 2005-09-20  Derek Price  <derek@ximbiot.com>
50342
50343         * lib/getaddrinfo.c: Don't include <netdb.h> included from
50344         getaddrinfo.h.
50345
50346 2005-09-20  Bruno Haible  <bruno@clisp.org>
50347
50348         * gnulib-tool: Remove trailing slashes from the values specified for
50349         --source-base, --m4-base, --tests-base, --aux-dir.
50350         Suggested by Simon Josefsson <jas@extundo.com>.
50351
50352 2005-09-20  Bruno Haible  <bruno@clisp.org>
50353
50354         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
50355         func_modules_to_filelist, func_import, func_create_testdir): Make all
50356         sorting results locale-independent, so that gnulib-cache.m4 doesn't
50357         change when gnulib-tool is invoked in a different locale.
50358
50359 2005-09-19  Simon Josefsson  <jas@extundo.com>
50360
50361         * m4/socklen.m4: Fix typo.
50362
50363 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50364
50365         Use a consistent style for including <config.h>.
50366         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
50367         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
50368         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
50369         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
50370         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
50371         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
50372         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
50373         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
50374         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
50375         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
50376         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
50377         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
50378         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
50379         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
50380         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
50381         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
50382         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
50383         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
50384         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
50385         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
50386         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
50387         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
50388         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
50389         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
50390         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
50391         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
50392         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
50393         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
50394         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
50395         lib/xstrtoumax.c, lib/yesno.c:
50396         Standardize inclusion of config.h.
50397         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
50398         lib/inttostr.h:  Removed inclusion of config.h from header files.
50399         * lib/inttostr.c:  Adjusted in-tree users.
50400         * lib/timespec.h: Remove superfluous warning to include config.h.
50401         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
50402         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
50403         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
50404         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
50405         config.h with HAVE_CONFIG_H.
50406
50407 2005-09-19  Jim Meyering  <jim@meyering.net>
50408
50409         * modules/pathmax (License): Change to LGPL.
50410
50411 2005-09-19  Derek Price  <derek@ximbiot.com>
50412
50413         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
50414
50415 2005-09-19  Bruno Haible  <bruno@clisp.org>
50416
50417         * gnulib-tool (import): Provide default for --tests-base.
50418
50419 2005-09-19  Bruno Haible  <bruno@clisp.org>
50420
50421         * doc/quote.texi: New file, extracted from gnulib.texi.
50422         * doc/ctime.texi: New file, extracted from gnulib.texi.
50423         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
50424         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
50425         * doc/gnulib.texi: Include them.
50426
50427 2005-09-18  Bruno Haible  <bruno@clisp.org>
50428
50429         Portability fix.
50430         * gnulib-tool (func_readlink): New function.
50431         (func_ln_if_changed): Use it.
50432
50433 2005-09-18  Bruno Haible  <bruno@clisp.org>
50434
50435         * gnulib-tool: Support --with-tests also with --import.
50436         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
50437         (func_import): Use variables $testsbase and $inctests. Emit a
50438         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
50439         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
50440         SUBDIRS += $testsdir.
50441         (func_create_testdir): Update.
50442
50443 2005-09-18  Bruno Haible  <bruno@clisp.org>
50444
50445         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
50446         instead of $dry_run.
50447         (func_cp_if_changed, func_mv_if_changed): Remove functions.
50448         (func_ln_if_changed): Don't handle dry-run here.
50449         (func_import): In dry-run mode, detect more precisely which actions
50450         would be performed, and don't use "...ing" verbs.
50451
50452 2005-09-18  Bruno Haible  <bruno@clisp.org>
50453
50454         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
50455         (func_import): Use join on two temporary files instead of three nested
50456         loops, in order to determine which files are new or old.
50457
50458 2005-09-18  Bruno Haible  <bruno@clisp.org>
50459
50460         * gnulib-tool (func_import): Comment out code that spits out the
50461         new files with --dry-run.
50462
50463 2005-09-18  Bruno Haible  <bruno@clisp.org>
50464
50465         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
50466
50467 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
50468
50469         * lib/stat-time.h: New file.
50470         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
50471         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
50472         in a different way.
50473         (timespec_cmp): New function.
50474         * lib/utimecmp.c: Include stat-time.h.
50475         (SYSCALL_RESOLUTION): Depend on whether various struct stat
50476         members exist, not on the obsolescent ST_MTIM_NSEC.
50477         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
50478
50479 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
50480
50481         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
50482
50483 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
50484
50485         * MODULES.html.sh (File system functions): Add stat-time.
50486         * modules/stat-time: New file.
50487         * modules/timespec (Files): Remove m4/st_mtim.m4; this
50488         is now done in a different way, by the stat-time module.
50489         * modules/utimecmp (Depends-on): Add stat-time.
50490
50491 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
50492
50493         * m4/st_mtim.m4: Remove.  Superseded by...
50494         * m4/stat-time.m4: New file.
50495         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
50496         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
50497
50498 2005-09-15  Derek Price  <derek@ximbiot.com>
50499
50500         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
50501
50502 2005-09-15  Derek Price  <derek@ximbiot.com>
50503
50504         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
50505         * lib/regex_internal.c: Ditto, using this...
50506         (__GNUC_PREREQ): ...new macro.
50507         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
50508         using...
50509         (__GNUC_PREREQ): ...this new macro.
50510
50511         * lib/strstr.h: Include string.h. Define strstr as a macro here.
50512
50513 2005-09-15  Derek Price  <derek@ximbiot.com>
50514             Paul Eggert  <eggert@cs.ucla.edu>
50515
50516         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
50517         changes, consolidating in...
50518         * lib/regex_internal.h: ...this file.
50519
50520 2005-09-13  Jim Meyering  <jim@meyering.net>
50521
50522         * lib/canon-host.c: Filter through gnu indent and reword comments
50523         slightly.
50524         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
50525
50526 2005-09-13  Derek Price  <derek@ximbiot.com>
50527
50528         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
50529         failure.
50530         Reported by Jim Meyering  <jim@meyering.net>.
50531
50532 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
50533
50534         * lib/base64.c: Typo.
50535         (base64_encode): Put b64str in initialized data section.
50536
50537 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
50538
50539         Merge glibc and coreutils changes into gnulib, plus a few
50540         extra fixes.
50541         * lib/md5.c: Use #error rather than a string.
50542         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
50543         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
50544         (__attribute__): Define to empty for non recent-GCC.
50545         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
50546         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
50547         Renamed from their non-__ counterparts, with new macros replacing
50548         them if not _LIBC.  Add __THROW attribute.
50549         (rol): Remove.
50550         (struct md5_ctx): Align buffer if using GCC.
50551         * lib/sha1.h (struct sha1_ctx): Likewise.
50552         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
50553         The old name was backwards.
50554         (NOTSWAP): Remove; not used.
50555         (rol): New macro, moved here from md5.h.
50556         (sha1_process_block): Remove a FIXME that doesn't make sense.
50557
50558 2005-09-12  Derek Price  <derek@ximbiot.com>
50559
50560         Return usable errors from canon-host.
50561         * lib/canon-host.h: New file.
50562         * lib/canon-host.c (canon_host): Wrap...
50563         (canon_host_r): ...this new function, which now relies exclusively on
50564         getaddrinfo.
50565         (ch_strerror): New function.
50566         (last_cherror): New global.
50567         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
50568         interface.
50569         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
50570         void *.
50571         (freeaddrinfo): Free ai->ai_canonname when set.
50572
50573 2005-09-12  Derek Price  <derek@ximbiot.com>
50574
50575         Make canon-host require getaddrinfo.
50576         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
50577         AC_LIBSOURCE canon-host.h.  Call...
50578         (gl_PREREQ_CANON_HOST): ...this new function, which requires
50579         gl_GETADDRINFO.
50580         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
50581
50582 2005-09-12  Derek Price  <derek@ximbiot.com>
50583
50584         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
50585         LGPL.
50586         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
50587
50588 2005-09-12  Derek Price  <derek@ximbiot.com>
50589
50590         * lib/gai_strerror.c: Include config.h when available.  Include
50591         getaddrinfo.h before other headers to test interface.
50592         Reported by Larry Jones <lawrence.jones@ugs.com>.
50593
50594 2005-09-12  Derek Price  <derek@ximbiot.com>
50595             Paul Eggert  <eggert@cs.ucla.edu>
50596
50597         * modules/glob (Files): Add glob-libc.h.
50598
50599 2005-09-12  Derek Price  <derek@ximbiot.com>
50600             Paul Eggert  <eggert@cs.ucla.edu>
50601
50602         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
50603         glob_.h, glob-libc.h.
50604         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
50605
50606 2005-09-12  Derek Price  <derek@ximbiot.com>
50607             Paul Eggert  <eggert@cs.ucla.edu>
50608
50609         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
50610         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
50611         protecting things that should be done only in gnulib contexts.
50612         * lib/glob_.h: New file, containing only the glob things needed for
50613         gnulib.
50614         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
50615         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
50616         (glob, globfree, glob_pattern_p): Now defined simply in terms of
50617         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
50618         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
50619         and to respect the namespace rules better.
50620
50621 2005-09-08  Simon Josefsson  <jas@extundo.com>
50622
50623         * modules/socklen: New file.
50624
50625 2005-09-08  Simon Josefsson  <jas@extundo.com>
50626
50627         * m4/socklen.m4: New file.
50628
50629 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50630
50631         * modules/utimens (Files): Add m4/utimbuf.m4, since
50632         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
50633         Reported by Sergey Poznyakoff.
50634
50635 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50636
50637         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
50638         definitions, since that's the preferred style in glibc.
50639         Fix a minor spacing issue, and update copyright notice to match
50640         glibc's.
50641
50642 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50643
50644         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
50645
50646 2005-09-06  Simon Josefsson  <jas@extundo.com>
50647
50648         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
50649         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
50650
50651 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
50652
50653         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
50654         warning.
50655
50656 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
50657
50658         * config/srclist.txt: Add glibc bug 1302.
50659
50660 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
50661
50662         Change bitset word type from unsigned int to unsigned long int,
50663         as this has better performance on typical 64-bit hosts.
50664         Port bitset code to hosts with unusual word sizes.
50665         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
50666         (build_collating_symbol):
50667         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
50668         argument is a bitset.  This is merely a style issue, but it makes
50669         it clearer that an entire array is expected.
50670         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
50671         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
50672         Port to the case where bitset_word is not the same as unsigned int.
50673         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
50674         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
50675         Likewise.
50676         * lib/regexec.c (check_dst_limits_calc_pos_1,
50677         check_subexp_matching_top):
50678         (build_trtable, group_nodes_into_DFAstates):
50679         Likewise.
50680         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
50681         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
50682         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
50683         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
50684         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
50685         * lib/regcomp.c (optimize_subexps, lower_subexp):
50686         Work even if bitset_word has holes in its bitwise representation.
50687         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
50688         * lib/regexec.c (check_dst_limits_calc_pos_1,
50689         check_subexp_matching_top):
50690         Likewise.
50691         * lib/regex_internal.c (re_string_reconstruct):
50692         Don't assume UCHAR_MAX == 255.
50693         * lib/regex_internal.h (bitset_set_all): Likewise.
50694         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
50695         All uses changed.
50696         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
50697         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
50698         All uses changed.
50699         (BITSET_WORD_MAX): New macro.
50700         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
50701         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
50702         (bitset_empty, bitset_copy):
50703         Prefer sizeof (bitset) to multiplying it out ourselves.
50704         (bitset_not_merge): Remove; unused.
50705         (bitset_contain): Return bool, not unsigned int with one bit on.
50706         All callers changed.
50707         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
50708         alignment than re_node_set; do this by defining a new internal
50709         type struct dests_alloc and using it to allocate memory.
50710
50711 2005-09-05  Bruno Haible  <bruno@clisp.org>
50712
50713         * gnulib-tool (func_import): Fix comparison in handling of symbolic
50714         links.
50715
50716 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
50717
50718         * modules/size_max (Makefile.am): Add size_max.h
50719
50720 2005-09-04  Derek Price  <derek@ximbiot.com>
50721
50722         * gnulib-tool (func_import): Fix reversed $symbolic logic.
50723
50724 2005-09-03  Simon Josefsson  <jas@extundo.com>
50725
50726         * gnulib-tool: Fix typo.
50727
50728 2005-09-03  Simon Josefsson  <jas@extundo.com>
50729
50730         * config/srclist.txt: Add glibc bug 1293.
50731
50732 2005-09-03  Derek Price  <derek@ximbiot.com>
50733
50734         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
50735         From Larry Jones <lawrence.jones@ugs.com>.
50736
50737 2005-09-02  Simon Josefsson  <jas@extundo.com>
50738
50739         * modules/socklen: New file.
50740
50741 2005-09-02  Simon Josefsson  <jas@extundo.com>
50742
50743         * modules/havelib: New module.
50744
50745         * modules/gettext, modules/iconv, modules/lock, modules/readline:
50746         Use havelib.
50747
50748 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
50749
50750         Check for arithmetic overflow when calculating sizes, to prevent
50751         some buffer-overflow issues.  These patches are conservative, in the
50752         sense that when I couldn't determine whether an overflow was possible,
50753         I inserted a run-time check.
50754         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
50755         macros.
50756         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
50757         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
50758         (re_xnrealloc, re_x2nrealloc): New inline functions.
50759         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
50760         parse_bracket_exp):
50761         (build_equiv_class, build_charclass): Check for arithmetic overflow
50762         in size expression calculations.
50763         * lib/regex_internal.c (re_string_realloc_buffers):
50764         (build_wcs_upper_buffer, re_node_set_add_intersect):
50765         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
50766         (re_dfa_add_node, register_state): Likewise.
50767         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
50768         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
50769         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
50770         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
50771
50772 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
50773
50774         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
50775         m4/ulonglong.m4.  Problem reported by Martin Lambers.
50776
50777 2005-09-02  Bruno Haible  <bruno@clisp.org>
50778
50779         Support for lib vs. lib64 distinction on biarch platforms.
50780         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
50781         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
50782         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
50783
50784 2005-09-02  Bruno Haible  <bruno@clisp.org>
50785
50786         * gnulib-tool (import): In the other first-use case, provide defaults
50787         as well.
50788
50789 2005-09-02  Bruno Haible  <bruno@clisp.org>
50790
50791         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
50792         patches not yet found in the latest gettext release.
50793
50794 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50795
50796         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
50797         to avoid a collision with bits/local_lim.h in glibc.
50798         All uses changed.  Problem reported by Dmitry V. Levin in
50799         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
50800
50801         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
50802         bugs in int versus size_t comparisons.
50803         (re_string_context_at): Fix bug where the code assumed that
50804         Idx is signed.
50805
50806         Use bool where appropriate.
50807         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
50808         All callers changed.
50809         (calc_eclosure_iter): Likewise, for ROOT arg.
50810         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
50811         (build_charclass_op): Likewise, for NON_MATCH arg.
50812         * lib/regex_internal.c (re_string_allocate, re_string_construct):
50813         (re_string_construct_common): Likewise, for ICASE arg.
50814         * lib/regexec.c (re_search_2_stub, re_search_stub):
50815         Likewise, for RET_LEN arg.
50816         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
50817         (set_regs): Likewise, for FL_BACKTRACK arg.
50818         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
50819         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
50820         (calc_eclosure_iter, parse_bracket_exp):
50821         Use bool for internal variables that are booleans.
50822         * lib/regexec.c (re_search_internal, check_matching,
50823         proceed_next_node):
50824         (set_regs, build_sifted_states, sift_states_bkref):
50825         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
50826         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
50827         (find_collation_sequence_value):
50828         Likewise.
50829         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
50830         (re_node_set_compare):
50831         Return bool, not int. All callers changed.
50832         * lib/regexec.c (check_halt_node_context, check_dst_limits):
50833         (build_trtable, check_node_accept): Likewise.
50834         * lib/regex_internal.h: Include stdbool.h.
50835
50836         Fix bugs uncovered when converting to bool.
50837         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
50838         failure instead of charging ahead blindly.
50839         * lib/regex_internal.c (register_state): Likewise.
50840         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
50841         for freeing internal storage.
50842         (group_nodes_into_DFA_states): Use unsigned int, not int, for
50843         bitset pieces used as boolean, to avoid undefined behavior
50844         on hosts that do int overflow checking.
50845
50846 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50847
50848         * config/srclist.txt: Add glibc bugs 1285-1287.
50849
50850 2005-09-01  Jim Meyering  <jim@meyering.net>
50851
50852         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
50853         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
50854         Require gl_STAT_MACROS, too.
50855
50856 2005-09-01  Bruno Haible  <bruno@clisp.org>
50857
50858         * gnulib-tool (import): In the first-use case, provide defaults.
50859
50860 2005-09-01  Bruno Haible  <bruno@clisp.org>
50861
50862         * gnulib-tool (func_import): Remove the .tmp files.
50863
50864 2005-09-01  Bruno Haible  <bruno@clisp.org>
50865
50866         * gnulib-tool (func_import): Fix handling of symbolic links.
50867
50868 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50869
50870         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
50871         old glibc regex code mishandles strings longer than 2**31 bytes.
50872         This patch fixes this when the regex code is used in gnulib
50873         (i.e., outside glibc).
50874
50875         This patch should not affect the use of the regex code inside
50876         glibc.  No doubt this problem also needs to be handled for glibc
50877         as well, but the result will be an incompatible change to the
50878         glibc ABI, and the old ABI will have to be supported too.  That
50879         can be the the subject for another patch.
50880
50881         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
50882         governing whether the rest of this patch is active.  By default,
50883         the macro is disabled and the patch has no effect.
50884         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
50885         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
50886         (struct re_pattern_buffer, re_search, re_search_2, re_match):
50887         (re_match_2, re_set_registers): Use the new types.
50888         * lib/regex_internal.h (Idx, re_hashval_t): New types.
50889         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
50890         New macros.
50891         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
50892         (re_string_context_at, bin_tree_t, re_dfastate_t):
50893         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
50894         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
50895         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
50896         (re_string_char_size_at, re_string_wchar_at):
50897         (re_string_elem_size_at):
50898         Use the new types and macros to port to 64-bit hosts.
50899         Use unsigned types for internal values, so that the code
50900         mostly works even for arrays larger than SSIZE_MAX.
50901         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
50902         (search_duplicated_node, calc_eclosure_iter, fetch_number):
50903         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
50904         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
50905         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
50906         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
50907         (calc_inveclosure, parse_dup_op, build_range_exp):
50908         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
50909         (fetch_number, create_token_tree, mark_opt_subexp):
50910         Likewise.
50911         * lib/regex_internal.c (re_string_construct_common,
50912         create_ci_newstate):
50913         (create_cd_newstate, re_string_allocate, re_string_construct):
50914         (re_string_realloc_buffers, build_wcs_upper_buffer):
50915         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
50916         (re_string_reconstruct, re_string_peek_byte_case):
50917         (re_string_fetch_byte_case, re_string_context_at):
50918         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
50919         (re_node_set_init_copy, re_node_set_add_intersect):
50920         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
50921         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
50922         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
50923         (re_acquire_state, re_acquire_state_context, register_state):
50924         Likewise.
50925         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
50926         search_cur_bkref_entry):
50927         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
50928         (re_search_internal, re_search_2_stub, re_search_stub)
50929         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
50930         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
50931         (update_cur_sifted_state, check_dst_limits):
50932         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
50933         (check_subexp_limits, sift_states_bkref, merge_state_array):
50934         (check_subexp_matching_top, get_subexp, get_subexp_sub):
50935         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
50936         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
50937         (expand_bkref_cache, check_node_accept_bytes):
50938         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
50939         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
50940         (acquire_init_state_context, check_halt_node_context):
50941         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
50942         (sift_states_backward, clean_state_log_if_needed):
50943         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
50944         (find_recover_state, transit_state_sb, transit_state_mb):
50945         (transit_state_bkref, build_trtable, match_ctx_clean):
50946         Likewise.
50947         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
50948         to work around an assumption that REG_MISSING is negative.
50949
50950         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
50951         (seek_collating_symbol_entry) [defined _LIBC]:
50952         (lookup_collation_sequence_value) [defined _LIBC]:
50953         (build_range_exp, build_collating_symbol) [defined _LIBC]:
50954         Use prototypes rather than old-style function definitions.
50955         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
50956         (transit_state_sb) [0]:
50957         (find_collation_sequence_value) [defined _LIBC]: Likewise.
50958
50959         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
50960         rm_eo.
50961
50962         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
50963         (optimize_subexps, lower_subexp):
50964         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
50965         since the signed shift might overflow.  Use 1u<<31 instead.
50966         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
50967         Likewise.
50968         * lib/regexec.c (check_dst_limits_calc_pos_1,
50969         check_subexp_matching_top): Likewise.
50970
50971         * lib/regcomp.c (optimize_subexps, lower_subexp):
50972         Use CHAR_BIT rather than 8, for clarity.
50973         * lib/regexec.c (check_dst_limits_calc_pos_1):
50974         (check_subexp_matching_top): Likewise.
50975         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
50976         have to worry about portability issues when shifting it left.
50977         Remove no-longer-needed test for table_size > 0.
50978         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
50979         in a word, as the resulting behavior is undefined.
50980         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
50981         in one case, a <= should have been an <, and in another case the
50982         whole test was missing.
50983         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
50984         the standard name CHAR_BIT.
50985         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
50986         this is not true on one's complement and signed-magnitude hosts.
50987
50988         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
50989         next_last_offset.
50990         (struct re_dfa_t): Remove unused member states_alloc.
50991         * lib/regcomp.c (init_dfa): Don't initialize unused members.
50992
50993 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50994
50995         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
50996         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
50997         and large-file glibc and in 32-bit large-file Solaris.
50998
50999 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
51000
51001         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
51002         lengths fit in regoff_t; this isn't true if regoff_t is the same
51003         width as size_t.
51004         * lib/regex.c (re_search_internal): 5th arg is LAST_START
51005         (= START + RANGE) instead of RANGE.  This avoids overflow
51006         problems when regoff_t is the same width as size_t.
51007         All callers changed.
51008         (re_search_2_stub): Check for overflow when adding the
51009         sizes of the two strings.
51010         (re_search_stub): Check for overflow when adding START
51011         to RANGE; if it occurs, substitute the extreme value.
51012
51013 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
51014
51015         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
51016
51017 2005-08-31  Jim Meyering  <jim@meyering.net>
51018
51019         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
51020         a pointer-to-const.
51021         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
51022         (register_state): Likewise.
51023         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
51024         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
51025         (group_nodes_into_DFAstates): Likewise.
51026
51027 2005-08-31  Jim Meyering  <jim@meyering.net>
51028
51029         * check-module: Add a FIXME comment.
51030
51031 2005-08-31  Eric Blake  <ebb9@byu.net>
51032
51033         * modules/unistd-safer (Files): Add unistd--.h.
51034         * modules/stdio-safer (Files): Add stdio--.h.
51035
51036 2005-08-31  Derek Price  <derek@ximbiot.com>
51037
51038         * lib/getdelim.c (getdelim): Return EOF on EOF.
51039         Reported by Larry Jones <lawrence.jones@ugs.com>.
51040
51041 2005-08-31  Bruno Haible  <bruno@clisp.org>
51042
51043         Avoid unnecessary diffs in the generated lib/Makefile.am.
51044         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
51045         the generated files.
51046         (func_import): Don't set cmd.
51047
51048 2005-08-31  Bruno Haible  <bruno@clisp.org>
51049
51050         * lib/strstr.c: Include <stddef.h>, for NULL.
51051         * lib/strcasestr.c: Likewise.
51052         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51053
51054 2005-08-31  Bruno Haible  <bruno@clisp.org>
51055
51056         * gnulib-tool: New option --macro-prefix.
51057         (func_import): Use macro_prefix.
51058         (import): Handle option --macro-prefix.
51059
51060 2005-08-31  Bruno Haible  <bruno@clisp.org>
51061
51062         * gnulib-tool (import): Rename most ac_* variables to cached_*.
51063         Also use new variables cached_lgpl, cached_libtool.
51064
51065 2005-08-31  Bruno Haible  <bruno@clisp.org>
51066
51067         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
51068         always instantiating them.
51069
51070 2005-08-31  Bruno Haible  <bruno@clisp.org>
51071
51072         * gnulib-tool (func_import): Read the previous cached settings
51073         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
51074         earlier added by gnulib but are now dropped. Warn when a gnulib file
51075         overwrites a non-gnulib file.
51076
51077 2005-08-31  Bruno Haible  <bruno@clisp.org>
51078
51079         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
51080         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
51081         projects that don't keep autogenerated files in CVS. Put into
51082         actioncmd only the specified modules, not the transitive closure.
51083
51084 2005-08-31  Bruno Haible  <bruno@clisp.org>
51085
51086         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
51087         Create directories that shall be filled.
51088         (import): Don't look for gl_* macros in configure.ac. Recurse across
51089         all directories containing a gnulib-cache.m4 files, if meaningful.
51090
51091 2005-08-31  Bruno Haible  <bruno@clisp.org>
51092
51093         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
51094         (import): Set seen_libtool when we see gl_LIBTOOL.
51095
51096 2005-08-31  Bruno Haible  <bruno@clisp.org>
51097
51098         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
51099         declaration macro definitions from generated gnulib.m4.
51100
51101 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
51102
51103         * lib/iconvme.h: Add prototype for iconv_alloc.
51104
51105 2005-08-29  Simon Josefsson  <jas@extundo.com>
51106
51107         * lib/iconvme.c: Fix errno.
51108
51109 2005-08-29  Bruno Haible  <bruno@clisp.org>
51110
51111         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
51112         that it works when the directory contains spaces.
51113
51114 2005-08-29  Bruno Haible  <bruno@clisp.org>
51115
51116         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
51117
51118 2005-08-29  Bruno Haible  <bruno@clisp.org>
51119
51120         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
51121         Emit more advice.
51122
51123 2005-08-29  Bruno Haible  <bruno@clisp.org>
51124         and Stepan Kasal  <kasal@ucw.cz>
51125
51126         * check-module: If more parameters are given, check each of them
51127         separately; add more exceptions, as noted by Jim Meyering.
51128         (check_module): New procedure.
51129         (%exempt_header): Now contains all exceptions.
51130
51131 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
51132
51133         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
51134
51135 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
51136
51137         * lib/iconvme.c: Split iconv_string into iconv_alloc.
51138
51139 2005-08-28  Bruno Haible  <bruno@clisp.org>
51140
51141         * m4/gnulib-tool.m4: New file.
51142
51143 2005-08-27  Jim Meyering  <jim@meyering.net>
51144
51145         * modules/unistd-safer (Files): Add pipe-safer.c.
51146         * modules/fcntl-safer (Files): Add creat-safer.c.
51147
51148 2005-08-27  Jim Meyering  <jim@meyering.net>
51149
51150         * m4/stdlib-safer.m4: New file.  From coreutils.
51151         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
51152         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
51153         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
51154         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
51155         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
51156
51157 2005-08-27  Jim Meyering  <jim@meyering.net>
51158
51159         * lib/fopen-safer.c: Merge minor changes from coreutils.
51160         * lib/dup-safer.c: Likewise.
51161         * lib/fd-safer.c: Likewise.
51162
51163         Merge from coreutils.
51164         * lib/stdio--.h: New file.
51165         * lib/stdlib--.h: New file.
51166         * lib/mkstemp-safer.c: New file.
51167
51168         GNU tar needs these.
51169         * lib/pipe-safer.c: New file.
51170         * lib/creat-safer.c: New file.
51171         * lib/fcntl--.h (creat): Define to creat_safer.
51172         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
51173         * lib/unistd--.h (pipe): Define to pipe_safer.
51174         * lib/unistd-safer.h: Declare pipe_safer.
51175
51176 2005-08-26  Simon Josefsson  <jas@extundo.com>
51177
51178         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
51179         Haible <bruno@clisp.org>.
51180
51181 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
51182
51183         * lib/regex_internal.h: Remove all references to
51184         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
51185         or better.
51186         (bitset_not, bitset_merge, bitset_not_merge):
51187         (bitset_mask, re_string_allocate, re_string_construct):
51188         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
51189         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
51190         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
51191         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
51192         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
51193         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
51194         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
51195         (re_acquire_state_context):
51196         Remove unnecessary forward decls.
51197         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
51198         Put __attribute at function definition,
51199         now that the function decl has been removed.
51200         * lib/regex_internal.c (re_string_peek_byte_case):
51201         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
51202         Likewise.
51203
51204 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
51205
51206         * m4/regex.m4: Add AC_PREREQ(2.50).
51207         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
51208
51209 2005-08-25  Simon Josefsson  <jas@extundo.com>
51210
51211         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
51212         __fsetlocking.
51213
51214 2005-08-25  Simon Josefsson  <jas@extundo.com>
51215
51216         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
51217         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
51218         GLIBC specific code.
51219
51220 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51221
51222         Make regex safe for g++.  This fixes one real bug (an "err"
51223         that should have been "*err").  g++ problem reported by
51224         Sam Steingold.
51225         * lib/regex_internal.h (re_calloc): New macro, consistent with
51226         re_malloc etc.  All callers of calloc changed to use re_calloc.
51227         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
51228         not int.  All callers changed.
51229         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
51230         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
51231         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
51232         (find_recover_state): Change "err" to "*err"; this fixes what
51233         appears to be a real bug.
51234         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
51235         versus int.
51236
51237 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51238
51239         * modules/regex (Depends-on): Add malloc, since the code
51240         assumes that !malloc(0) means failure.
51241
51242 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51243
51244         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
51245
51246         alloca modernization/simplification for regex.
51247         * lib/regex.c: Remove portability cruft for alloca.  This no longer
51248         needs to be at the start of the file, and can be moved into
51249         regex_internal.h and simplified.
51250         * lib/regex_internal.h: Include <alloca.h>.
51251         (__libc_use_alloca) [!defined _LIBC]: New macro.
51252         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
51253         now works outside glibc.
51254
51255 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51256
51257         * config/srclist.txt: Add glibc bugs 1241, 1245.
51258
51259 2005-08-25  Jim Meyering  <jim@meyering.net>
51260
51261         * lib/open-safer.c: Include <config.h>.
51262         Otherwise, we'd lose LARGEFILE support in any file using
51263         e.g. "fcntl--.h"
51264
51265 2005-08-25  Bruno Haible  <bruno@clisp.org>
51266
51267         * m4/minmax.m4: Require autoconf 2.52.
51268         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
51269         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
51270         alternatives of translit over the alphabet.
51271         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
51272
51273 2005-08-24  Simon Josefsson  <jas@extundo.com>
51274
51275         * tests/test-getpass.c: New file.
51276
51277 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51278
51279         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
51280         for GNU regex features.
51281
51282 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51283
51284         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
51285         * lib/regex.h (regerror): Likewise.
51286
51287         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
51288         requires this.  (The code never needed it.)
51289
51290         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
51291         All uses of recently-renamed identifiers changed to use the new,
51292         POSIX-compliant names.  The code will build and run just fine
51293         without these changes, but it's better to eat our own dog food
51294         and use the standard-conforming names.
51295
51296         * lib/regex.h: Fix a multitude of POSIX name space violations.
51297         These changes have an effect only for programs that define
51298         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
51299         do not change anything for programs compiled in the normal way.
51300         Also, there is no effect on the ABI.
51301
51302         (_REGEX_SOURCE): New macro.
51303         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
51304         defined and _GNU_SOURCE is not; this fixes a name space violation.
51305
51306         Rename the following macros to obey POSIX requirements.
51307         The old names are still visible as macros if _REGEX_SOURCE is defined.
51308         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
51309         RE_BACKSLASH_ESCAPE_IN_LISTS.
51310         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
51311         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
51312         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
51313         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
51314         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
51315         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
51316         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
51317         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
51318         (REG_INTERVALS): renamed from RE_INTERVALS.
51319         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
51320         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
51321         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
51322         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
51323         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
51324         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
51325         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
51326         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
51327         RE_UNMATCHED_RIGHT_PAREN_ORD.
51328         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
51329         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
51330         (REG_DEBUG): renamed from RE_DEBUG.
51331         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
51332         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
51333         unusual, since we can't clash with the POSIX REG_ICASE.
51334         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
51335         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
51336         (REG_NO_SUB): renamed from RE_NO_SUB.
51337         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
51338         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
51339         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
51340         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
51341         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
51342         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
51343         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
51344         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
51345         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
51346         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
51347         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
51348         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
51349         RE_SYNTAX_POSIX_MINIMAL_BASIC.
51350         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
51351         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
51352         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
51353         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
51354         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
51355         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
51356         (REG_FIXED): Renamed from REGS_FIXED.
51357         (REG_NREGS): Renamed from RE_NREGS.
51358
51359         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
51360         of other REG_* macros, since POSIX says the user is allowed to
51361         #undef these macros selectively.
51362
51363         (reg_errcode_t): Update comment stating what other tables need
51364         to be consistent.
51365
51366         Rename the following enum values to obey POSIX requirements.
51367         The old names are still visible as macros.
51368         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
51369         is not defined, since GNU is supposed to be a superset of POSIX as
51370         much as possible, and since we want reg_errcode_t to be a signed
51371         type for implementation consistency.
51372         (_REG_NOERROR): Renamed from REG_NOERROR.
51373         (_REG_NOMATCH): Renamed from REG_NOMATCH.
51374         (_REG_BADPAT): Renamed from REG_BADPAT.
51375         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
51376         (_REG_ECTYPE): Renamed from REG_ECTYPE.
51377         (_REG_EESCAPE): Renamed from REG_EESCAPE.
51378         (_REG_ESUBREG): Renamed from REG_ESUBREG.
51379         (_REG_EBRACK): Renamed from REG_EBRACK.
51380         (_REG_EPAREN): Renamed from REG_EPAREN.
51381         (_REG_EBRACE): Renamed from REG_EBRACE.
51382         (_REG_BADBR): Renamed from REG_BADBR.
51383         (_REG_ERANGE): Renamed from REG_ERANGE.
51384         (_REG_ESPACE): Renamed from REG_ESPACE.
51385         (_REG_BADRPT): Renamed from REG_BADRPT.
51386         (_REG_EEND): Renamed from REG_EEND.
51387         (_REG_ESIZE): Renamed from REG_ESIZE.
51388         (_REG_ERPAREN): Renamed from REG_ERPAREN.
51389         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
51390         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
51391         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
51392         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
51393
51394         (_REG_RE_NAME, _REG_RM_NAME): New macros.
51395         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
51396         changed.  But support the old name if the new one is not defined
51397         and if _REGEX_SOURCE.
51398
51399         Change the following member names in struct re_pattern_buffer.
51400         The old names are still supported if !_REGEX_SOURCE.
51401         The new names are always supported, regardless of _REGEX_SOURCE.
51402         (re_buffer): Renamed from buffer.
51403         (re_allocated): Renamed from allocated.
51404         (re_used): Renamed from used.
51405         (re_syntax): Renamed from syntax.
51406         (re_fastmap): Renamed from fastmap.
51407         (re_translate): Renamed from translate.
51408         (re_can_be_null): Renamed from can_be_null.
51409         (re_regs_allocated): Renamed from regs_allocated.
51410         (re_fastmap_accurate): Renamed from fastmap_accurate.
51411         (re_no_sub): Renamed from no_sub.
51412         (re_not_bol): Renamed from not_bol.
51413         (re_not_eol): Renamed from not_eol.
51414         (re_newline_anchor): Renamed from newline_anchor.
51415
51416         Change the following member names in struct re_registers.
51417         The old names are still supported if !_REGEX_SOURCE.
51418         The new names are always supported, regardless of _REGEX_SOURCE.
51419         (rm_num_regs): Renamed from num_regs.
51420         (rm_start): Renamed from start.
51421         (rm_end): Renamed from end.
51422
51423         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
51424         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
51425         Prepend __ to parameter names.
51426
51427         Undo yesterday's changes.
51428
51429 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51430
51431         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
51432         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
51433         lib/regex.c.
51434
51435 2005-08-24  Jim Meyering  <jim@meyering.net>
51436
51437         Sync from coreutils.
51438         * m4/fcntl-safer.m4: New file.
51439
51440         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
51441         and object files for this module.
51442
51443 2005-08-24  Jim Meyering  <jim@meyering.net>
51444
51445         Sync from coreutils.
51446         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
51447
51448 2005-08-24  Jim Meyering  <jim@meyering.net>
51449
51450         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
51451         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
51452
51453 2005-08-24  Jim Meyering  <jim@meyering.net>
51454
51455         * modules/fcntl-safer: New module.
51456         * modules/fts (Depends-on): Add fcntl-safer.
51457         * MODULES.html.sh (File descriptor based Input/Output):
51458         Add fcntl-safer.
51459
51460 2005-08-24  Bruno Haible  <bruno@clisp.org>
51461
51462         Support for unit test modules.
51463         * modules/README: Mention tests modules.
51464         * modules/TEMPLATE-TESTS: New file.
51465         * gnulib-tool: New options --extract-tests-module, --with-tests and
51466         --tests-base (unused for the moment).
51467         (testsbase, inctests): New variables.
51468         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
51469         (func_verify_module): Exclude TEMPLATE-TESTS.
51470         (func_verify_nontests_module, func_verify_tests_module): New functions.
51471         (func_get_dependencies): Add implicit dependency for tests modules.
51472         (func_get_tests_module): New function.
51473         (func_modules_transitive_closure): When --with-tests was specified,
51474         include the unit tests as well, unless explicitly avoided.
51475         (func_emit_lib_Makefile_am): Ignore the tests modules here.
51476         (func_emit_tests_Makefile_am): New function.
51477         (func_create_testdir): When --with-tests was specified, emit a
51478         tests/ directory.
51479         * MODULES.html.sh (Future developments): Update.
51480
51481 2005-08-24  Bruno Haible  <bruno@clisp.org>
51482
51483         * modules/tls-tests: New file.
51484         * tests/test-tls.c: New file, from GNU gettext.
51485
51486 2005-08-24  Bruno Haible  <bruno@clisp.org>
51487
51488         * modules/lock-tests: New file.
51489         * tests/test-lock.c: New file, from GNU gettext.
51490
51491 2005-08-24  Bruno Haible  <bruno@clisp.org>
51492
51493         * lib/lock.h: Add multiple inclusion guard.
51494         * lib/tls.h: Add multiple inclusion guard.
51495
51496 2005-08-24  Bruno Haible  <bruno@clisp.org>
51497
51498         * gnulib-tool: Add support for the --aux-dir option to
51499         --create-testdir, --create-megatestdir, --test, --megatest.
51500         (func_create_testdir, func_create_megatestdir): Optionally emit a
51501         AC_CONFIG_AUX_DIR directive.
51502         (create-testdir, create-megatestdir, test, megatest): Provide a
51503         default value for $auxdir.
51504
51505 2005-08-24  Bruno Haible  <bruno@clisp.org>
51506
51507         * gnulib-tool (import): Use compound statement instead of subshell
51508         where possible.
51509
51510 2005-08-24  Bruno Haible  <bruno@clisp.org>
51511
51512         * gnulib-tool (import): Change --aux-dir default to "build-aux".
51513
51514 2005-08-24  Bruno Haible  <bruno@clisp.org>
51515
51516         * gnulib-tool (func_version): Update.
51517
51518 2005-08-24  Bruno Haible  <bruno@clisp.org>
51519
51520         * gnulib-tool (func_import, func_create_testdir,
51521         func_create_megatestdir): Quote all autoconf macro arguments.
51522
51523 2005-08-24  Bruno Haible  <bruno@clisp.org>
51524
51525         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
51526         option --force, because --force causes the aclocal.m4 of each
51527         subdirectory to be newer than the corresponding config.h.in.
51528
51529 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51530
51531         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
51532         All contents moved to gl_REGEX.
51533         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
51534         assume that it does.
51535
51536 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51537
51538         * lib/regex.h (REG_NOSYS)
51539         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
51540         Define, since POSIX requires it as of 2001.
51541         (_REG_ENOSYS)
51542         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
51543         New private symbol, used to keep the enum signed in all cases.
51544         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
51545         Youngman in
51546         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
51547
51548         * lib/regex_internal.c (re_string_skip_chars, register_state):
51549         (calc_state_hash):
51550         Remove forward decls; no longer needed now that we use prototypes.
51551         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
51552         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
51553         (clean_state_log_if_needed): Likewise.
51554
51555 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51556
51557         * config/srclist.txt: Add glibc bugs 1231-1233.
51558
51559 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51560
51561         Fix problems reported by Sam Steingold in
51562         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
51563         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
51564         assumed that reg_errcode_t is a signed type, which is not
51565         necessarily true if _XOPEN_SOURCE is not defined.
51566         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
51567         since some compilers warn about it otherwise.
51568
51569 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51570
51571         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
51572         (init_word_char, create_initial_state, duplicate_node_closure):
51573         (fetch_token, peek_token_bracket, build_range_exp):
51574         (build_collating_symbol): Remove forward decls; no longer needed
51575         now that we use prototypes.
51576
51577         * lib/regcomp.c:
51578         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
51579         (re_compile_fastmap_iter, regcomp, regerror, regfree):
51580         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
51581         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
51582         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
51583         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
51584         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
51585         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
51586         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
51587         (build_range_exp, build_collating_symbol, parse_bracket_exp):
51588         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
51589         (build_charclass, build_charclass_op, fetch_number, create_tree):
51590         (create_token_tree, mark_opt_subexp, duplicate_tree):
51591         Use prototypes rather than old-style definitions.
51592
51593         * lib/regex_internal.c:
51594         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
51595         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
51596         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
51597         (re_string_reconstruct, re_string_peek_byte_case):
51598         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
51599         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
51600         (re_node_set_init_copy, re_node_set_add_intersect):
51601         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
51602         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
51603         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
51604         (re_acquire_state, re_acquire_state_context, register_state):
51605         (create_ci_newstate, create_cd_newstate, free_state):
51606         Likewise.
51607         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
51608         re_search_2):
51609         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
51610         (re_search_internal, prune_impossible_nodes):
51611         (acquire_init_state_context, check_matching, static):
51612         (check_halt_node_context, check_halt_state_context, proceed_next_node):
51613         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
51614         (update_regs, sift_states_backward, build_sifted_states):
51615         (clean_state_log_if_needed, merge_state_array):
51616         (update_cur_sifted_state, add_epsilon_src_nodes):
51617         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
51618         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
51619         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
51620         (find_recover_state, check_subexp_matching_top, transit_state_mb):
51621         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
51622         (check_arrival, check_arrival_add_next_nodes):
51623         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
51624         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
51625         (check_node_accept_bytes, check_node_accept, extend_buffers):
51626         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
51627         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
51628         (sift_ctx_init):
51629         Likewise.
51630
51631         * lib/regex_internal.h:
51632         (re_string_allocate, re_string_construct, re_string_reconstruct):
51633         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
51634         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
51635         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
51636         (re_string_context_at, re_string_peek_byte_case):
51637         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
51638         is defined, since we now use prototypes always.
51639
51640         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
51641         C89 or better.  All uses removed.
51642
51643 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51644
51645         * config/srclist.txt: Add glibc bugs 1220-1227.
51646
51647 2005-08-20  Jim Meyering  <jim@meyering.net>
51648
51649         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
51650         of unused local, dfa.
51651
51652 2005-08-20  Bruno Haible  <bruno@clisp.org>
51653
51654         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
51655
51656 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51657
51658         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
51659         (re_node_set_insert_last, re_dfa_add_node):
51660         Rename local variables to avoid GCC shadowing warnings.
51661
51662 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51663
51664         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
51665         [defined lint]: Suppress bogus uninitialized-variable warnings.
51666
51667         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
51668         and let the caller return REG_ESPACE if out of space.  This
51669         removes an uninitialied-variable warning with GCC 4.0.1, and also
51670         avoids taking the address of a local variable.  All callers
51671         changed.
51672
51673 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51674
51675         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
51676         $LIBCSRC/posix/regexec.c.
51677         Add glibc bug 1217 for regcomp.c.
51678
51679 2005-08-19  Jim Meyering  <jim@meyering.net>
51680
51681         * lib/regexec.c (proceed_next_node): Redo local variables to
51682         avoid GCC shadowing warnings.
51683
51684 2005-08-18  Bruno Haible  <bruno@clisp.org>
51685
51686         * lib/strstr.c (strstr): Fix return value in multibyte case.
51687         * lib/strcasestr.c (strcasestr): Likewise.
51688
51689 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
51690
51691         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
51692
51693 2005-08-17  Jim Meyering  <jim@meyering.net>
51694
51695         Make the %s format (seconds since the epoch) work for a negative
51696         number and when used with a zero-padded field width, e.g. %015s.
51697
51698         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
51699         label so that it precedes the code to set `digits'.  Otherwise,
51700         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
51701         print `00-22'.  Now, it prints `-0022', as it should.
51702
51703 2005-08-17  Bruno Haible  <bruno@clisp.org>
51704
51705         * modules/strstr (Files): Add m4/mbrtowc.m4.
51706         (Depends-on): Add mbuiter.
51707
51708 2005-08-17  Bruno Haible  <bruno@clisp.org>
51709
51710         * modules/strcasestr: New file.
51711         * MODULES.html.sh (String handling, based on ANSI C 89): Add
51712         strcasestr.
51713
51714 2005-08-17  Bruno Haible  <bruno@clisp.org>
51715
51716         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
51717
51718 2005-08-17  Bruno Haible  <bruno@clisp.org>
51719
51720         * modules/mbuiter: New file.
51721         * MODULES.html.sh (Extended multibyte and wide character utilities):
51722         Add mbuiter.
51723
51724 2005-08-17  Bruno Haible  <bruno@clisp.org>
51725
51726         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
51727         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
51728
51729 2005-08-17  Bruno Haible  <bruno@clisp.org>
51730
51731         * m4/strcasestr.m4: New file.
51732
51733 2005-08-17  Bruno Haible  <bruno@clisp.org>
51734
51735         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
51736         * lib/strstr.c: Completely rewritten, with multibyte locale support.
51737
51738 2005-08-17  Bruno Haible  <bruno@clisp.org>
51739
51740         * lib/strcasestr.h: New file.
51741         * lib/strcasestr.c: New file.
51742
51743 2005-08-17  Bruno Haible  <bruno@clisp.org>
51744
51745         * lib/strcasecmp.c: Use mbuiter.h.
51746
51747 2005-08-17  Bruno Haible  <bruno@clisp.org>
51748
51749         * lib/mbuiter.h: New file.
51750
51751 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
51752
51753         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
51754         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
51755         and gl_GETOPT are both invoked via different paths (as happens
51756         with GNU tar CVS because it uses both argp and getopt), the former
51757         wins.
51758
51759 2005-08-16  Bruno Haible  <bruno@clisp.org>
51760
51761         * modules/tls: New file.
51762         * MODULES.html.sh (Multithreading): Add tls.
51763
51764 2005-08-16  Bruno Haible  <bruno@clisp.org>
51765
51766         * modules/strnlen1: New file.
51767         * MODULES.html.sh (String handling): Add strnlen1.
51768
51769 2005-08-16  Bruno Haible  <bruno@clisp.org>
51770
51771         * modules/strcase (Files): Add m4/mbrtowc.m4.
51772         (Depends-on): Add strnlen1, mbchar.
51773
51774 2005-08-16  Bruno Haible  <bruno@clisp.org>
51775
51776         * modules/mbiter: New file.
51777         * MODULES.html.sh (Extended multibyte and wide character utilities):
51778         Add mbiter.
51779
51780 2005-08-16  Bruno Haible  <bruno@clisp.org>
51781
51782         * modules/mbfile: New file.
51783         * MODULES.html.sh (Extended multibyte and wide character utilities):
51784         Add mbfile.
51785
51786 2005-08-16  Bruno Haible  <bruno@clisp.org>
51787
51788         * modules/mbchar: New file.
51789         * MODULES.html.sh (Extended multibyte and wide character utilities):
51790         New section.
51791
51792 2005-08-16  Bruno Haible  <bruno@clisp.org>
51793
51794         * m4/tls.m4: New file, from GNU gettext.
51795
51796 2005-08-16  Bruno Haible  <bruno@clisp.org>
51797
51798         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
51799         always.
51800         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
51801
51802 2005-08-16  Bruno Haible  <bruno@clisp.org>
51803
51804         * m4/mbiter.m4: New file.
51805
51806 2005-08-16  Bruno Haible  <bruno@clisp.org>
51807
51808         * m4/mbfile.m4: New file.
51809
51810 2005-08-16  Bruno Haible  <bruno@clisp.org>
51811
51812         * m4/mbchar.m4: New file.
51813
51814 2005-08-16  Bruno Haible  <bruno@clisp.org>
51815
51816         * lib/tls.h: New file, from GNU gettext.
51817         * lib/tls.c: New file, from GNU gettext.
51818
51819 2005-08-16  Bruno Haible  <bruno@clisp.org>
51820
51821         * lib/strnlen1.h: New file.
51822         * lib/strnlen1.c: New file.
51823
51824 2005-08-16  Bruno Haible  <bruno@clisp.org>
51825
51826         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
51827         (mbi_init): Update.
51828         (mbi_avail, mbi_advance): Let the iteration end before the terminating
51829         NUL byte, not after it.
51830
51831 2005-08-16  Bruno Haible  <bruno@clisp.org>
51832
51833         * lib/strcase.h (strcasecmp): Add note in comments.
51834         * lib/strncasecmp.c: Use code from strcasecmp.c.
51835         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
51836         (strcasecmp): Work correctly in multibyte locales.
51837
51838 2005-08-16  Bruno Haible  <bruno@clisp.org>
51839
51840         * lib/mbiter.h: New file.
51841
51842 2005-08-16  Bruno Haible  <bruno@clisp.org>
51843
51844         * lib/mbfile.h: New file.
51845
51846 2005-08-16  Bruno Haible  <bruno@clisp.org>
51847
51848         * lib/mbchar.h: New file.
51849         * lib/mbchar.c: New file.
51850
51851 2005-08-16  Bruno Haible  <bruno@clisp.org>
51852
51853         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
51854         the valid ones. Makes the comparison operations transitive:
51855         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
51856         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
51857
51858 2005-08-15  Simon Josefsson  <jas@extundo.com>
51859
51860         * modules/ssize_t (License): Change to 'unlimited'.
51861
51862         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
51863
51864 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51865
51866         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
51867         Add comments for each pending glibc patch.
51868
51869 2005-08-15  Bruno Haible  <bruno@clisp.org>
51870
51871         * lib/regex.h (__restrict_arr): Don't define to __restrict if
51872         __cplusplus is defined.
51873
51874 2005-08-14  Jim Meyering  <jim@meyering.net>
51875
51876         Sync from coreutils.
51877
51878         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
51879         Use the hash-table-based cycle-detection code not just when
51880         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
51881         Reported by James Youngman in
51882         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
51883         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
51884         FTS_TIGHT_CYCLE_CHECK.
51885         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
51886         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
51887         once again.
51888         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
51889         * lib/fts.c (fd_safer): Remove decl.
51890         Include fcntl--.h rather than unistd-safer.h
51891         (fts_safe_changedir): Don't call fd_safer; no longer needed
51892         now that we include fcntl--.h.
51893
51894 2005-08-12  Simon Josefsson  <jas@extundo.com>
51895
51896         * modules/getndelim2: Use ssize_t module.
51897         * modules/getnline: Likewise.
51898         * modules/safe-read: Likewise.
51899         * modules/xreadlink: Likewise.
51900
51901         * modules/ssize_t: New file.
51902
51903 2005-08-12  Simon Josefsson  <jas@extundo.com>
51904
51905         * m4/readline.m4: Look for termcap, curses or ncurses if required.
51906
51907 2005-08-12  Simon Josefsson  <jas@extundo.com>
51908
51909         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51910         ssize_t.
51911
51912 2005-08-12  Simon Josefsson  <jas@extundo.com>
51913
51914         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
51915         readline, getdelim and check_version.
51916         (Support for systems lacking ISO C 99: Sizes of integer types):
51917         Add size_max.
51918
51919 2005-08-12  Bruno Haible  <bruno@clisp.org>
51920
51921         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
51922
51923 2005-08-11  Simon Josefsson  <jas@extundo.com>
51924
51925         * modules/readline: New file.
51926
51927         * modules/strnlen (Files): Add strnlen.h.
51928
51929 2005-08-11  Simon Josefsson  <jas@extundo.com>
51930
51931         * m4/readline.m4: New file.
51932
51933 2005-08-11  Simon Josefsson  <jas@extundo.com>
51934
51935         * lib/readline.h, readline.c: New file.
51936
51937 2005-08-11  Simon Josefsson  <jas@extundo.com>
51938
51939         * doc/gnulib.texi (Initial import, Finishing touches): Mention
51940         gl_AVOID.
51941
51942 2005-08-11  Bruno Haible  <bruno@clisp.org>
51943
51944         * lib/strnlen.h (strnlen): Change parameter name to match comment.
51945
51946 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
51947
51948         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
51949
51950 2005-08-10  Simon Josefsson  <jas@extundo.com>
51951
51952         * tests/test-iconvme.c: New file.
51953
51954 2005-08-10  Simon Josefsson  <jas@extundo.com>
51955
51956         * m4/strnlen.m4: New file.
51957
51958         * m4/strndup.m4: Don't check for strnlen declaration, done in
51959         strnlen.m4.
51960
51961 2005-08-10  Simon Josefsson  <jas@extundo.com>
51962
51963         * lib/strndup.c: Use strnlen.h.
51964
51965         * lib/strnlen.h: New file.
51966
51967 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
51968
51969         * README: Typos.
51970
51971 2005-08-02  Simon Josefsson  <jas@extundo.com>
51972
51973         * modules/readline: New file.
51974
51975 2005-08-02  Simon Josefsson  <jas@extundo.com>
51976
51977         * modules/getdelim: New file.
51978
51979         * modules/getline: Rewrite, don't use getndelim2.
51980
51981 2005-08-02  Simon Josefsson  <jas@extundo.com>
51982
51983         * m4/getline.m4: Separate out getdelim stuff into separate module.
51984
51985         * m4/getdelim.m4: New file.
51986
51987 2005-08-02  Simon Josefsson  <jas@extundo.com>
51988
51989         * lib/getline.h, getline.c: Rewrite.
51990
51991         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
51992
51993 2005-07-31  Bruno Haible  <bruno@clisp.org>
51994
51995         * lib/lock.h (gl_lock_initializer): New macro.
51996         (gl_lock_define_initialized): Use it.
51997         (gl_rwlock_initializer): New macro.
51998         (gl_rwlock_define_initialized): Use it.
51999         (gl_recursive_lock_initializer): New macro.
52000         (gl_recursive_lock_define_initialized): Use it.
52001
52002 2005-07-30  Karl Berry  <karl@gnu.org>
52003
52004         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
52005         Report from Ben Pfaff, regarding getopt.
52006
52007 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
52008
52009         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
52010         normal way.
52011         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
52012         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
52013         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
52014         (gl_GETOPT): Use the new macros.  Most of the implementation
52015         is moved to the new macros.  This is for programs like Emacs
52016         that don't want all the functionality of gl_GETOPT.
52017
52018 2005-07-26  Bruno Haible  <bruno@clisp.org>
52019
52020         * m4/lock.m4: Update from GNU gettext.
52021
52022 2005-07-26  Bruno Haible  <bruno@clisp.org>
52023
52024         * lib/lock.h: Update from GNU gettext.
52025         * lib/lock.c: Update from GNU gettext.
52026
52027 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
52028
52029         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
52030         obsolescent AC_TRY_RUN.  Include the default includes files, for
52031         'exit'.
52032
52033 2005-07-24  Bruno Haible  <bruno@clisp.org>
52034
52035         * modules/visibility: New file.
52036         * MODULES.html.sh (Misc): Add visibility.
52037
52038 2005-07-24  Bruno Haible  <bruno@clisp.org>
52039
52040         * m4/visibility.m4: New file.
52041
52042 2005-07-24  Bruno Haible  <bruno@clisp.org>
52043
52044         * doc/visibility.texi: New file.
52045
52046 2005-07-22  Bruno Haible  <bruno@clisp.org>
52047
52048         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
52049         $(ALLOCA_H), redundant through BUILT_SOURCES.
52050         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
52051         redundant through BUILT_SOURCES.
52052         * modules/byteswap (Makefile.am): Remove explicit dependency on
52053         $(BYTESWAP_H), redundant through BUILT_SOURCES.
52054         * modules/fnmatch (Makefile.am): Remove explicit dependency on
52055         $(FNMATCH_H), redundant through BUILT_SOURCES.
52056         * modules/getopt (Makefile.am): Remove explicit dependency on
52057         $(GETOPT_H), redundant through BUILT_SOURCES.
52058         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
52059         redundant through BUILT_SOURCES.
52060         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
52061         redundant through BUILT_SOURCES.
52062         * modules/stdbool (Makefile.am): Remove explicit dependency on
52063         $(STDBOOL_H), redundant through BUILT_SOURCES.
52064         * modules/stdint (Makefile.am): Remove explicit dependency on
52065         $(STDINT_H), redundant through BUILT_SOURCES.
52066         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
52067         Remove explicit dependency on $(SYSEXITS_H).
52068         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
52069
52070 2005-07-18  Simon Josefsson  <jas@extundo.com>
52071
52072         * lib/check-version.c (check_version): Accept identical versions too.
52073
52074 2005-07-18  Bruno Haible  <bruno@clisp.org>
52075
52076         * modules/lock: New file.
52077         * MODULES.html.sh (Multithreading): New section.
52078
52079 2005-07-18  Bruno Haible  <bruno@clisp.org>
52080
52081         * m4/lock.m4: New file, from GNU gettext.
52082
52083 2005-07-18  Bruno Haible  <bruno@clisp.org>
52084
52085         * lib/lock.h: New file, from GNU gettext.
52086         * lib/lock.c: New file, from GNU gettext.
52087
52088 2005-07-18  Bruno Haible  <bruno@clisp.org>
52089
52090         * lib/lock.h (gl_once_t): New type.
52091         (gl_once_define, gl_once): New macros.
52092         * lib/lock.c (fresh_once): New variable.
52093         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
52094         functions.
52095
52096 2005-07-16  Simon Josefsson  <jas@extundo.com>
52097
52098         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
52099         workaround, suggested by Bruno.
52100
52101 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
52102
52103         * modules/xalloc (Depends-on): Add xalloc-die.
52104         * modules/xvasprintf (Depends-on): Add xalloc-die.
52105
52106 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
52107
52108         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
52109         with a minor change.
52110
52111 2005-07-15  Bruno Haible  <bruno@clisp.org>
52112
52113         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
52114         When using lib/poll.c, define poll as rpl_poll.
52115
52116 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
52117
52118         * modules/argp (Depends-on): Remove unlocked-io.
52119
52120 2005-07-14  Derek Price  <derek@ximbiot.com>
52121
52122         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
52123         for glob symlink bug.
52124
52125 2005-07-14  Bruno Haible  <bruno@clisp.org>
52126
52127         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
52128         Instead, test for *_unlocked function declarations directly.
52129
52130 2005-07-11  Simon Josefsson  <jas@extundo.com>
52131
52132         * modules/size_max: New file.
52133
52134         * modules/xsize: Depend on size_max module for size_max.m4.
52135
52136 2005-07-11  Simon Josefsson  <jas@extundo.com>
52137
52138         * lib/size_max.h: New file.
52139
52140 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
52141
52142         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
52143         copyright symbol and the year.
52144         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
52145         (version_etc_va): Use parameterized copyright notice.
52146         Reword to conform to the current GNU coding standards.
52147
52148 2005-07-11  Karl Berry  <karl@gnu.org>
52149
52150         * doc/gnulib.texi (Quoting): new node.
52151         (Initial import): more info, from Patrice.
52152
52153 2005-07-11  Bruno Haible  <bruno@clisp.org>
52154
52155         * gnulib-tool (func_usage): Document option --avoid.
52156         (Command line options): Handle --avoid.
52157         (func_acceptable): New function.
52158         (func_modules_transitive_closure): Use it.
52159
52160 2005-07-11  Bruno Haible  <bruno@clisp.org>
52161
52162         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
52163         Reported by Jim Meyering.
52164
52165 2005-07-10  Bruno Haible  <bruno@clisp.org>
52166
52167         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
52168         Needed when size_t is smaller than 'unsigned int'.
52169         Reported by Paul Eggert.
52170
52171 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
52172
52173         * modules/argp (Depends-on): Add unlocked-io
52174
52175 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
52176
52177         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
52178         block of defines.
52179
52180 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
52181
52182         * config/srclist.txt: Comment out regcomp.c, since we have a porting
52183         fix now.
52184
52185 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
52186         and Paul Eggert  <eggert@cs.ucla.edu>
52187
52188         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
52189         in wint_t, not wchar_t.  Remove now-unnecessary cast.
52190
52191 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
52192
52193         * modules/regex (Files): Add lib/regex_internal.c,
52194         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
52195         (Depends-on): Add extensions.
52196         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
52197
52198 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
52199
52200         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
52201         pathconf.
52202         * m4/same.m4 (gl_SAME): Likewise.
52203         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
52204
52205         * m4/regex.m4: Adjust to new libc regex implementation.
52206         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
52207         all the .c and .h parts of (the new) regex.
52208         Quote the m4 stuff better.
52209         Check for RE_ICASE bug of old gnulib.
52210         Check for REG_STARTEND of recent libc.
52211         Rename local variables from jm_* to gl_*.
52212         Quote operand of "test -f".
52213         Say "recent enough" version of libc, not "version 2".
52214         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
52215         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
52216         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
52217         Remove check for btowc, isascii.
52218         Require AM_LANGINFO_CODESET.
52219
52220 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
52221
52222         * lib/regex.c, regex.h: Sync from libc.
52223         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
52224         * lib/regexec.c:
52225         New files, synced from libc, except that regex_internal.h
52226         currently has a small porting fix.
52227
52228 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
52229
52230         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
52231         regex_internal.c, regexec.c.
52232         Add regex_internal.h too, but as a comment, since the libc version
52233         is currently broken in gnulib mode.
52234
52235 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
52236
52237         Support programs like Emacs that use gnulib but not gettext.
52238         * MODULES.html.sh (Internationalization functions): Add gettext-h.
52239         * modules/gettext-h: New file.
52240         * modules/gettext (Files): Remove lib/gettext.h.
52241         (Depends-on): Add gettext-h.
52242         (Makefile.am): Remove lib_SOURCES.
52243         * modules/argmatch, modules/c-stack, modules/closeout:
52244         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
52245         * modules/execute, modules/file-type, modules/getaddrinfo:
52246         * modules/getopt, modules/human, modules/javacomp:
52247         * modules/javaexec, modules/mkdir-p, modules/obstack:
52248         * modules/openat, modules/pagealign_alloc, modules/pipe:
52249         * modules/quotearg, modules/regex, modules/rpmatch:
52250         * modules/unicodeio, modules/userspec, modules/version-etc:
52251         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
52252         * modules/xsetenv:
52253         Depend on gettext-h, not gettext.
52254
52255 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
52256
52257         * gnulib-tool (func_import): Add support for 'public domain' license.
52258         * modules/alloca, modules/atexit, modules/memmove:
52259         Now public domain, not GPL.
52260         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
52261         * modules/realloc, modules/strerror, modules/strtod:
52262         Now LGPL, not GPL.
52263
52264 2005-07-05  Bruno Haible  <bruno@clisp.org>
52265
52266         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
52267         autoconf CVS. Needed for mingw.
52268
52269 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52270
52271         Remove the dependency of the strftime module on the tzset module.
52272         * modules/strftime (Depends-on): Remove dependency on tzset.
52273
52274 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52275
52276         Remove the dependency of the strftime module on the tzset module.
52277         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
52278         gl_FUNC_TZSET_CLOBBER.
52279
52280 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52281
52282         Remove the dependency of the strftime module on the tzset module.
52283         * lib/strftime.c (my_strftime)
52284         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
52285         Copy the input structure, to work around some of the bug with
52286         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
52287         Solaris releases, you should also use the tzset module, but we won't
52288         require it as a dependency any more since we don't want LGPLed code
52289         to depend on GPLed code.
52290
52291 2005-07-02  Jim Meyering  <jim@meyering.net>
52292
52293         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
52294         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
52295         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
52296         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
52297
52298 2005-07-02  Jim Meyering  <jim@meyering.net>
52299
52300         * lib/backupfile.c (backup_args): Change a `0' to NULL.
52301
52302 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
52303
52304         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
52305         declares only 'struct timespec;' (!).
52306
52307 2005-07-01  Jim Meyering  <jim@meyering.net>
52308
52309         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
52310         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
52311         * lib/save-cwd.c, tempname.c:
52312         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
52313         and don't include <sys/file.h>).
52314
52315 2005-06-29  Jim Meyering  <jim@meyering.net>
52316
52317         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
52318         type name.  Use the variable name instead.
52319         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
52320         Likewise.
52321
52322 2005-06-28  Simon Josefsson  <jas@extundo.com>
52323
52324         * modules/check-version (Files): Add check-version.m4.
52325
52326 2005-06-28  Simon Josefsson  <jas@extundo.com>
52327
52328         * m4/check-version.m4: New file, suggested by Jim Meyering
52329         <jim@meyering.net>.
52330
52331 2005-06-28  Simon Josefsson  <jas@extundo.com>
52332
52333         * lib/check-version.h, lib/check-version.c: New files.
52334
52335 2005-06-28  Simon Josefsson  <jas@extundo.com>
52336
52337         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
52338         collision with global variable.  Better indentation.  Don't
52339         increment buffer pointer beyond buffer end.  Based on comments
52340         from Paul Eggert <eggert@cs.ucla.edu>.
52341
52342         * lib/base64.h: Indent.
52343
52344 2005-06-28  Simon Josefsson  <jas@extundo.com>
52345
52346         * doc/gnulib.texi (Library version handling): New section.
52347
52348 2005-06-28  Jim Meyering  <jim@meyering.net>
52349
52350         * check-module (find_included_lib_files): Hard-code another
52351         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
52352         but modules/fts-lgpl (correctly) does not list those files.
52353
52354         * modules/canonicalize (Files): Add lib/pathmax.h.
52355
52356 2005-06-25  Simon Josefsson  <jas@extundo.com>
52357
52358         * modules/check-version: New file.
52359
52360 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
52361
52362         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
52363         initializer of struct addrinfo, as an indication that we don't
52364         care how many members the structure has.
52365
52366 2005-06-24  Derek Price  <derek@ximbiot.com>
52367         and Bruno Haible  <bruno@clisp.org>
52368
52369         Remove stat module & update lstat.
52370         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
52371         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
52372         * m4/stat.m4: Remove this file.
52373
52374 2005-06-24  Derek Price  <derek@ximbiot.com>
52375         and Bruno Haible  <bruno@clisp.org>
52376
52377         Remove stat module & update lstat.
52378         * lib/stat.c: Remove this file...
52379         (slash_aware_lstat): ...moving this content and its support...
52380         * lib/lstat.c (rpl_lstat): ...into here.
52381         * lib/lstat.h: New file.
52382
52383 2005-06-24  Derek Price  <derek@ximbiot.com>
52384         and Bruno Haible  <bruno@clisp.org>
52385
52386         Remove stat module & update lstat.
52387         * config/srclist.txt (libc sources): Remove stat.
52388
52389 2005-06-24  Derek Price  <derek@ximbiot.com>
52390         and Bruno Haible  <bruno@clisp.org>
52391
52392         Remove stat module & update lstat.
52393         * MODULES.html.sh (stat): Remove.
52394         * MODULES.html: Regenerated.
52395         * modules/lstat (Description): Correct function name.
52396         (Files): Add "lstat.h".
52397         (Depends-on): Remove stat, add xalloc, stat-macros.
52398         * modules/stat: Remove this file.
52399         (Include): Add "lstat.h", remove <sys/stat.h>.
52400
52401 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
52402
52403         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
52404         (ranged_convert): Don't save conversion in a temporary struct.
52405         This causes a warning with GCC 4.0.0, and anyway in the typical
52406         case it's not worth the extra 100 bytes or so of code.
52407         (ranged_convert, __mktime_internal): When calling a function via a
52408         pointer P, use P () rather than (*P) (), as we now assume C89 or
52409         better.
52410
52411 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
52412
52413         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
52414         "who -r" failed to give output.  Problem reported by Tim Waugh.
52415
52416         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
52417         (xcalloc): Use it to avoid needless tests.
52418         Problem reported by Jim Meyering.
52419
52420 2005-06-20  Derek Price  <derek@ximbiot.com>
52421
52422         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
52423         unnecessary for Autoconfs > 2.59c.
52424
52425 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52426
52427         * lib/argp.h (__option_is_short): Check upper limit of
52428         __key. Isprint() requires its argument to have the value
52429         of an unsigned char or EOF.
52430
52431 2005-06-16  Jim Meyering  <jim@meyering.net>
52432
52433         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
52434         when either N or S is zero.
52435
52436 2005-06-16  Derek Price  <derek@ximbiot.com>
52437
52438         * m4/bison.m4: Declare YACC & YFLAGS precious.
52439
52440 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
52441
52442         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
52443         multibyte string or pattern, fall back on unibyte matching.
52444         Problem reported by James Youngman.
52445
52446 2005-06-08  Bruno Haible  <bruno@clisp.org>
52447
52448         * modules/csharpcomp: New file.
52449         * MODULES.html.sh (C#): Add csharpcomp.
52450
52451 2005-06-08  Bruno Haible  <bruno@clisp.org>
52452
52453         * m4/csharpcomp.m4: New file, from GNU gettext.
52454
52455 2005-06-08  Bruno Haible  <bruno@clisp.org>
52456
52457         * lib/csharpcomp.h: New file, from GNU gettext.
52458         * lib/csharpcomp.c: New file, from GNU gettext.
52459         * lib/csharpcomp.sh.in: New file, from GNU gettext.
52460
52461 2005-06-08  Bruno Haible  <bruno@clisp.org>
52462
52463         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
52464         warning on mingw.
52465
52466 2005-06-07  Derek Price  <derek@ximbiot.com>
52467
52468         Sync from CVS.
52469         * lib/glob_.h: Indent nested #ifdef.
52470
52471 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
52472
52473         Sync from coreutils.
52474         Use "file name" when talking about file names, instead of "filename"
52475         or "path", as per the GNU coding standards.
52476         * lib/mkdir-p.c: Renamed from makepath.c.
52477         (make_dir_parents): Renamed from make_path.  All callers changed.
52478         * lib/mkdir-p.h: Likewise.  All includers changed.
52479         * lib/filenamecat.c: Renamed from path-concat.c.
52480         (file_name_concat): Renamed from path_concat.  All callers changed.
52481         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
52482         * lib/filenamecat.h: Likewise.  All includers changed.
52483         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
52484         in comments or local variable names.
52485         * lib/basename.c: Likewise.
52486         * lib/canonicalize.c, canonicalize.h: Likewise.
52487         * lib/dirname.c, dirname.h: Likewise.
52488         * lib/euidaccess.c: Likewise.
52489         * lib/exclude.c: Likewise
52490         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
52491         * lib/fsusage.c, fsuage.h: Likewise.
52492         * lib/fts.c, fts_.h: Likewise.
52493         * lib/getcwd.c: Likewise.
52494         * lib/getloadavg.c: Likewise.
52495         * lib/mkstemp.c: Likewise.
52496         * lib/mountlist.c, mountlist.h: Likewise.
52497         * lib/openat.c, openat.h: Likewise.
52498         * lib/readlink-stub.c: Likewise.
52499         * lib/readutmp.c, readutmp.h: Likewise.
52500         * lib/rename.c: Likewise.
52501         * lib/rmdir.c: Likewise.
52502         * lib/same.c: Likewise.
52503         * lib/savedir.c: Likewise.
52504         * lib/stripslash.c: Likewise.
52505         * lib/tempname.c: Likewise.
52506         * lib/xreadlink.c: Likewise.
52507         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
52508         All uses changed.
52509         * lib/exclude.h: Likewise.
52510
52511         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
52512         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
52513         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
52514         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
52515         * lib/pathmax.h: Include <limits.h> unconditionally, since other
52516         files have been getting away with it for years (MORE/BSD 4.3
52517         is extinct now).
52518         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
52519         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
52520
52521         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
52522         Define to 256, not 255, as per modern POSIX.
52523
52524 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
52525
52526         Sync from coreutils.
52527         Use "file name" when talking about file names, instead of "filename"
52528         or "path", as per the GNU coding standards.
52529         * MODULES.html.sh: mkdir-p renamed from makepath.
52530         filenamecat renamed from path-concat.
52531         * modules/filenamecat: Renamed from modules/path-concat.
52532         (Files): filenamecat.h and filenamecat.c renamed from
52533         path-concat.h and path-concat.c.
52534         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
52535         (Include): filenamecat.h, not path-concat.h.
52536         * modules/mkdir-p: Renamed from modules/makepath.
52537         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
52538         makepath.c.
52539         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
52540         (Include): mkdir-p.h, not makepath.h.
52541
52542 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
52543
52544         Sync from coreutils.
52545         * m4/mkdir-p.m4: Renamed from makepath.m4.
52546         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
52547         Rename files from makepath.c to mkdir-p.c, and from
52548         makepath.h to mkdir-p.h.
52549         * m4/filenamecat.m4: Renamed from path-concat.m4.
52550         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
52551         Rename files from path-concat.c to filenamecat.c,
52552         and from path-concat.h to filenamecat.h.
52553         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
52554         "file name" in local variables or comments.
52555         * m4/rename.m4: Likewise.
52556
52557 2005-06-01  Bruno Haible  <bruno@clisp.org>
52558
52559         * modules/csharpexec: New file.
52560         * MODULES.html.sh (C#): New section.
52561
52562 2005-06-01  Bruno Haible  <bruno@clisp.org>
52563
52564         * m4/csharp.m4: New file, from GNU gettext.
52565         * m4/csharpexec.m4: New file, from GNU gettext.
52566
52567 2005-06-01  Bruno Haible  <bruno@clisp.org>
52568
52569         * lib/csharpexec.h: New file, from GNU gettext.
52570         * lib/csharpexec.c: New file, from GNU gettext.
52571         * lib/csharpexec.sh.in: New file, from GNU gettext.
52572
52573 2005-05-31  Derek Price  <derek@ximbiot.com>
52574             Paul Eggert  <eggert@cs.ucla.edu>
52575
52576         Sync from cvs.
52577         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
52578
52579 2005-05-31  Derek Price  <derek@ximbiot.com>
52580             Paul Eggert  <eggert@cs.ucla.edu>
52581
52582         Sync from cvs.
52583         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
52584
52585 2005-05-29  Derek Price  <derek@ximbiot.com>
52586
52587         * config/srclist.txt (glob_.h, glob.c): Add these files.
52588
52589 2005-05-29  Derek Price  <derek@ximbiot.com>
52590
52591         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
52592         * modules/glob: New file.
52593         * modules/getlogin_r: Add link to POSIX spec in description.
52594
52595 2005-05-29  Derek Price  <derek@ximbiot.com>
52596             Paul Eggert  <eggert@cs.ucla.edu>
52597
52598         * m4/glob.m4: New file.
52599
52600 2005-05-29  Derek Price  <derek@ximbiot.com>
52601             Paul Eggert  <eggert@cs.ucla.edu>
52602
52603         * lib/glob_.h, lib/glob.c: New files.
52604
52605 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
52606
52607         * modules/fts (Files): Remove m4/inttypes-pri.m4.
52608         * modules/fts-lgpl (Depends-on): Remove gettext.
52609
52610 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
52611
52612         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
52613         and don't require gt_INTTYPES_PRI.
52614
52615 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
52616
52617         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
52618
52619         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
52620         the configuration hassle isn't worth it.
52621         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
52622         (LONGEST_MODIFIER, PRIuMAX): Remove.
52623
52624 2005-05-27  Bruno Haible  <bruno@clisp.org>
52625
52626         * lib/getlogin_r.h: Remove second include of <stddef.h>.
52627
52628 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
52629
52630         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
52631         _POSIX_PTHREAD_SEMANTICS for Solaris.
52632
52633 2005-05-25  Derek Price  <derek@ximbiot.com>
52634
52635         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
52636
52637 2005-05-25  Derek Price  <derek@ximbiot.com>
52638             Paul Eggert  <eggert@cs.ucla.edu>
52639
52640         * modules/getlogin_r, m4/getlogin_r.m4: New files.
52641         * lib/getlogin_r.c, getlogin_r.h: New files.
52642
52643 2005-05-25  Bruno Haible  <bruno@clisp.org>
52644             Derek Price  <derek@ximbiot.com>
52645
52646         * lib/getlogin_r.h: Simplify API documentation.
52647
52648 2005-05-23  Derek Price  <derek@ximbiot.com>
52649
52650         * modules/minmax (Files): Add m4/minmax.m4.
52651         (configure.ac): Add gl_MINMAX.
52652
52653 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
52654
52655         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
52656         so that unistd-safer.h (GPL'ed code) need not be included.
52657
52658 2005-05-22  Bruno Haible  <bruno@clisp.org>
52659
52660         * m4/minmax.m4: New file.
52661         Based on a patch by Derek Price <derek@ximbiot.com>.
52662
52663 2005-05-22  Bruno Haible  <bruno@clisp.org>
52664
52665         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
52666         (INT64_MIN): Fix definition.
52667         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
52668
52669         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
52670         NEED_SIGNED_INT_TYPES.
52671
52672         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
52673         HAVE_SYSTEM_INTTYPES.
52674
52675 2005-05-22  Bruno Haible  <bruno@clisp.org>
52676
52677         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
52678         Also include <sys/param.h> if it defines MIN, MAX.
52679         Based on a patch by Derek Price <derek@ximbiot.com>.
52680
52681 2005-05-21  Jim Meyering  <jim@meyering.net>
52682
52683         * modules/fts (Files): Add m4/inttypes-pri.m4.
52684         (Depends-on): Add lstat and remove gettext.  Alphabetize.
52685
52686 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
52687
52688         New fts module.
52689         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
52690         (setup_dir, free_dir): New functions.
52691         (enter_dir, leave_dir): Define trivial
52692         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
52693         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
52694         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
52695         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
52696         Move to fts-cycle.c.
52697         (fts_open): Use setup_dir.
52698         (fts_close): Use free_dir.
52699         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
52700         This adds a label and some gotos, but the alternatives were messier.
52701         Check for memory allocation failure when entering a dir.
52702         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
52703         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
52704         (FTS): New member fts_cycle, that is a union that contains the
52705         old active_dir_ht and cycle_state.  All uses changed to mention
52706         fts_cycle.ht and fts_cycle.state.
52707         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
52708         fts.c, with the following changes:
52709         (setup_dir, free_dir): New functions.
52710         (enter_dir): Now returns bool.  Return true if successful, false
52711         if memory exhausted.  All callers changed.
52712         Do not bother partly cleaning up on
52713         memory allocation failure; that is free_dir's job.
52714         However, free ad if hash_insert fails, to avoid memory leak.
52715         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
52716         fts->fts_options to see which union member to use.
52717
52718 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
52719
52720         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
52721         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
52722
52723 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
52724
52725         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
52726
52727 2005-05-20  Jim Meyering  <jim@meyering.net>
52728
52729         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
52730         Now a macro, to pacify GCC.
52731
52732 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
52733
52734         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
52735         of -1.
52736
52737 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
52738
52739         * lib/chown.c (rpl_chown): Return -1 on failure.
52740
52741 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
52742
52743         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
52744         Don't check for stddef.h.
52745         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
52746         don't use its results.
52747         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
52748         since we include them unconditionally.  Don't require
52749         AM_STDBOOL_H, since stdbool is a prerequisite.
52750         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
52751         since we assume C89 or better.
52752         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
52753         as we don't use their results.
52754         Don't check for fchdir, memmove, memset, strrchr, as we use
52755         them unconditionally.
52756         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
52757         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
52758
52759 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
52760
52761         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
52762         Include <stddef.h> unconditionally, since we assume C89 now.
52763         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
52764         * lib/fts.c: Include fts_.h first, to check interface.
52765         Do not include intprops.h; no longer needed.
52766         Include cycle-check.h and hash.h, since fts_.h no longer does.
52767         Remove unnecessary casts of closedir to void.
52768         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
52769         decide whether to decrement nlinks.
52770         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
52771         (FTS): Use struct hash_table * instead of Hash_table, so that
52772         we no longer need to include hash.h here.
52773
52774 2005-05-18  Jim Meyering  <jim@meyering.net>
52775
52776         * modules/dirfd (License): Change to LGPL.  Most of the code
52777         is already in the public domain.
52778
52779 2005-05-18  Jim Meyering  <jim@meyering.net>
52780
52781         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
52782         Reported by Yoann Vandoorselaere.
52783
52784 2005-05-17  Jim Meyering  <jim@meyering.net>
52785
52786         * m4/fts.m4: New file, from coreutils.
52787
52788 2005-05-17  Jim Meyering  <jim@meyering.net>
52789
52790         * lib/fts.c, lib/fts_.h: New files, from coreutils.
52791
52792 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
52793
52794         Sync from coreutils.
52795         * m4/unlinkdir.m4: New file.
52796
52797 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
52798
52799         Sync from coreutils.
52800         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
52801         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
52802         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
52803         White space changes only.
52804         * lib/makepath.c (make_path): Port to hosts where leading "//" is
52805         special.
52806         * lib/yesno.c: Include getline.h, not ctype.h.
52807         (yesno): Don't remove leading white space; POSIX doesn't allow it.
52808         Use getline to remove arbitrary restriction on response length.
52809
52810 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
52811
52812         * config/srclist-update: Spell out "Street" in FSF postal
52813         mail address; this is the style the FSF seems to prefer.
52814
52815         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
52816         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
52817         this updates FSF postal mail address.
52818
52819         Sync from coreutils.
52820         * modules/unlinkdir: New file.
52821         * modules/yesno (Depends-on): Add getline.
52822         * MODULES.html.sh (File system functions): Add unlinkdir.
52823
52824 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
52825
52826         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
52827         lib/strsep.h:
52828         Change the initial comment to refer to GPL, not LGPL.
52829         gnulib-tool will change it to LGPL as needed.
52830
52831         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
52832         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
52833         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
52834         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
52835         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
52836         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
52837         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
52838         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
52839         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
52840         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
52841         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
52842         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
52843         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
52844         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
52845         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
52846         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
52847         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
52848         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
52849         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
52850         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
52851         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
52852         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
52853         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
52854         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
52855         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
52856         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
52857         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
52858         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
52859         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
52860         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
52861         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
52862         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
52863         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
52864         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
52865         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
52866         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
52867         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
52868         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
52869         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
52870         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
52871         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
52872         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
52873         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
52874         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
52875         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
52876         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
52877         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
52878         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
52879         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
52880         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
52881         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
52882         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
52883         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
52884         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
52885         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
52886         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
52887         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
52888         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
52889         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
52890         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
52891         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
52892         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
52893         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
52894         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
52895         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
52896         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
52897         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
52898         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
52899         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
52900         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
52901         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
52902         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
52903         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
52904         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
52905         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
52906         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
52907         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
52908         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
52909         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
52910         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
52911         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
52912         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
52913         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
52914         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
52915         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
52916         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
52917         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
52918         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
52919         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
52920         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
52921         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
52922         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
52923         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
52924         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
52925         lib/yesno.c, lib/yesno.h:
52926         Update FSF postal mail address.
52927
52928 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
52929
52930         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
52931         tests/test-memmem.c, tests/test-stpncpy.c:
52932         Update FSF postal mail address.
52933
52934 2005-05-13  Bruno Haible  <bruno@clisp.org>
52935
52936         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
52937         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
52938         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
52939         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
52940         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
52941         Add support for 64-bit integers in the MSVC compiler.
52942
52943 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52944
52945         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
52946
52947 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
52948
52949         * gnulib-tool (func_import): Sort and uniquify recommended includes.
52950
52951 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
52952
52953         * doc/getdate.texi (General date syntax): Don't say that date
52954         date --iso-8601=ns generates acceptable dates; it doesn't yet.
52955         Problem reported by Nic Ferrier.
52956
52957 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52958
52959         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
52960         specified in ai_socktype. Fix invalid ai_protocol
52961         check. ai_protocol is usually set to 0 or depending on
52962         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
52963         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
52964         ai_socktype / ai_protocol in the returned addrinfo structure.
52965
52966 2005-05-10  Simon Josefsson  <jas@extundo.com>
52967
52968         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
52969         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52970
52971 2005-05-10  Karl Berry  <karl@gnu.org>
52972
52973         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
52974         (from http://www.gnu.org/licenses).
52975         * doc/COPYING.LIB: also rename to COPYING.LESSER.
52976         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
52977         fdl.texi suffices.
52978
52979 2005-05-10  Karl Berry  <karl@gnu.org>
52980
52981         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
52982         (COPYING.DOC): remove.
52983
52984         * config/srclist-update: new FSF address.
52985
52986 2005-05-10  Derek Price  <derek@ximbiot.com>
52987
52988         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
52989         possible.
52990
52991 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52992             Bruno Haible  <bruno@clisp.org>
52993
52994         * modules/inet_ntop: New file.
52995         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52996         inet_ntop.
52997
52998 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52999             Bruno Haible  <bruno@clisp.org>
53000
53001         * m4/inet_ntop.m4: New file.
53002
53003 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53004             Bruno Haible  <bruno@clisp.org>
53005
53006         * lib/inet_ntop.h: New file.
53007         * lib/inet_ntop.c: New file, from glibc with modifications.
53008
53009 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
53010
53011         * modules/time_r (License): Change to LGPL.
53012         * modules/extensions (License): Change to LGPL.  Actually,
53013         the license is more permissive than that, but currently gnulib-tool
53014         doesn't know how to handle more-permissive licenses.
53015
53016         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
53017         Problem reported by Dave Love.
53018
53019 2005-05-08  Jim Meyering  <jim@meyering.net>
53020
53021         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
53022         blank.
53023
53024 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
53025
53026         * modules/argmatch (Depends-on): Add stdbool.
53027         * modules/backupfile (Depends-on): Likewise.
53028         * modules/chdir-long (Depends-on): Likewise.
53029         * modules/closeout (Depends-on): Likewise.
53030         * modules/cycle-check (Depends-on): Likewise.
53031         * modules/dirname (Depends-on): Likewise.
53032         * modules/fnmatch (Depends-on): Likewise.
53033         * modules/fsusage (Depends-on): Likewise.
53034         * modules/fwriteerror (Depends-on): Likewise.
53035         * modules/getcwd (Depends-on): Likewise.
53036         * modules/getloadavg (Depends-on): Likewise.
53037         * modules/hard-locale (Depends-on): Likewise.
53038         * modules/makepath (Depends-on): Likewise.
53039         * modules/mountlist (Depends-on): Likewise.
53040         * modules/nanosleep (Depends-on): Likewise.
53041         * modules/posixtm (Depends-on): Likewise.
53042         * modules/quotearg (Depends-on): Likewise.
53043         * modules/readtokens (Depends-on): Likewise.
53044         * modules/readtokens0 (Depends-on): Likewise.
53045         * modules/readutmp (Depends-on): Likewise.
53046         * modules/save-cwd (Depends-on): Likewise.
53047         * modules/strftime (Depends-on): Likewise.
53048         * modules/userspec (Depends-on): Likewise.
53049         * modules/utimecmp (Depends-on): Likewise.
53050         * modules/xgetcwd (Depends-on): Likewise.
53051         * modules/xnanosleep (Depends-on): Likewise.
53052         * modules/xstrtod (Depends-on): Likewise.
53053         * modules/yesno (Depends-on): Likewise.
53054
53055 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
53056
53057         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
53058         needless checks.
53059
53060 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
53061
53062         Merge from coreutils.  Among other things,
53063         add bulletproofing for cases where stdin, stdout, or stderr are closed.
53064         * lib/fd-safer.c: New file.
53065         * lib/fcntl-safer.h, open-safer.c: Remove.
53066         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
53067         * lib/dup-safer.c: Include unistd-safer.h first.
53068         Don't include errno.h.
53069         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
53070         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
53071         * lib/file-type.c: Rely on file-type.h change.
53072         * lib/getloadavg.c: Include unistd-safer.h.
53073         (getloadavg): Use safer open.
53074         * lib/getusershell.c: Include "stdio-safer.h".
53075         (getusershell): Use safer fopen.
53076         * lib/long-options.c (long_options): Use NULL rather than 0.
53077         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
53078         'free'.
53079         * lib/modechange.c: Likewise.
53080         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
53081         (MODE_DONE): New constant.
53082         (struct mode_change): Remove 'next' member.
53083         (make_node_op_equals): New function; like the old one of the
53084         same name, except it allocates an array.
53085         (mode_compile, mode_create_from_ref): Use it.
53086         (mode_compile): Allocate result as an array, not a linked list.
53087         Parse octal string ourself, so that we catch mistakes like "+0".
53088         (mode_adjust): Arg is an array, not a linked list.
53089         * lib/modechange.c: Include stat-macros.h, xalloc.h.
53090         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
53091         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
53092         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
53093         Remove.  This is now stat-macros.h's job.
53094         (talloc): Remove.  All callers replaced by xalloc, so that
53095         our invokers don't have to worry about reporting memory failures.
53096         (make_node_op_equals): Remove.
53097         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
53098         New constants.
53099         (struct mode_change): Moved here from modechange.h.
53100         (mode_append_entry): Remove.
53101         (mode_compile): Remove MASKED_OPS arg, since it encouraged
53102         apps to have incorrect behavior.  Use simpler algorithm for head
53103         and tail.  Don't futz with umask; that's now the job of mode_adjust.
53104         Detect more invalid usages rather than having somewhat-random behavior.
53105         Don't insert an "a=" action, as that leads to incorrect behavior.
53106         (mode_compile, mode_create_from_ref): Return NULL on error instead
53107         of an enum, since now there's only one way to have an error.  All
53108         callers changed.
53109         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
53110         at the correct time.  Simplify calculation of "+u" and its ilk.
53111         Don't mishandle "+X".
53112         (mode_free): Remove "register" and localize decls.
53113         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
53114         (struct mode_change): Move to modechange.c; callers don't
53115         need to see this stuff.
53116         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
53117         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
53118         (mode_change, mode_adjust): Reflect the new signatures noted above.
53119         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
53120         that might redefine system include files.
53121         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
53122         (my_usleep): Use NULL rather than (void *) 0.
53123         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
53124         Use siginterrupt to specify that system calls should be interrupted.
53125         (rpl_nanosleep): Move initialization of suspended closer to call of
53126         my_usleep.
53127         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
53128         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
53129         (desirable_utmp_entry): New function.
53130         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
53131         using x2nrealloc, to simplify logic.
53132         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
53133         size calculation.  Do not assume utmp file is a regular file.
53134         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
53135         (READ_UTMP_CHECK_PIDS): New constant.
53136         * lib/save-cwd.c: Include unistd-safer.h.
53137         (save_cwd): Use fd_safer.
53138         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
53139         [!_LIBC] Include "stat-macros.h" instead.
53140         * lib/unistd-safer.h (fd_safer): New decl.
53141
53142 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
53143
53144         * modules/getloadavg (Depends-on): Add unistd-safer.
53145         * modules/getusershell (Depends-on): Add stdio-safer.
53146         * modules/lstat (Depends-on): Remove xalloc.
53147         * modules/mkstemp (Depends-on): Add stat-macros.
53148         * modules/modechange (Depends-on): Remove xstrtol.
53149         Add stat-macros, xalloc.
53150         * modules/save-cwd (Depends-on): Add unistd-safer.
53151         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
53152         * modules/unistd-safer (Files): Add lib/fd-safer.c
53153         (Makefile.am): Remove lib_SOURCES.
53154
53155         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
53156         Remove fcntl-safer; unistd-safer supersedes it.
53157
53158 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
53159
53160         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
53161         AC_HEADER_STAT.
53162         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
53163         (gl_PREREQ_CHOWN): Remove.
53164         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
53165         it.  Don't require AC_HEADER_STAT.
53166         (gl_PREREQ_LSTAT): Remove.
53167         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
53168         Don't require AC_HEADER_STAT.
53169         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
53170         (gl_PREREQ_RMDIR): Remove.
53171         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
53172         mention stat-macros.h or AC_HEADER_STAT, since we'll make
53173         the stat-macros module a prerequisite.
53174         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
53175         * m4/filemode.m4 (gl_FILEMODE): Likewise.
53176         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
53177         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
53178         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
53179         variable names.
53180         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
53181         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
53182         variable prefixes.
53183         * m4/fcntl-safer.m4: Remove.
53184         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
53185         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
53186         Invoke gl_PREREQ_FD_SAFER.
53187         (gl_PREREQ_FD_SAFER): New macro.
53188         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
53189         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
53190         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
53191         Remove duplicate call to AC_LIBOBJ(readutmp).
53192         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
53193
53194         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
53195         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
53196
53197 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
53198
53199         * MODULES.html.sh (Misc): Add byteswap.
53200
53201 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
53202
53203         * modules/getcwd (Depends-on): Add extensions.
53204         * modules/openat (Depends-on): Likewise.
53205
53206 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
53207
53208         * modules/byteswap: New file.
53209
53210 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
53211
53212         * m4/byteswap.m4: New file.
53213
53214 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
53215
53216         * lib/byteswap_.h: New file.
53217
53218 2005-04-25  Karl Berry  <karl@gnu.org>
53219
53220         * m4/gettext.m4: Update from GNU gettext 0.14.4.
53221
53222 2005-04-25  Albert Chin  <china@thewrittenword.com>
53223
53224         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
53225         Toolkit C bug.
53226
53227 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
53228
53229         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
53230         (func_ln_if_changed) Remove forcibly for no error message
53231         in case file does not exist.
53232
53233 2005-04-19  Simon Josefsson  <jas@extundo.com>
53234
53235         * gnulib-tool (Options): Make --symlink mean --symbolic.
53236
53237 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
53238
53239         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
53240
53241 2005-04-16  Simon Josefsson  <jas@extundo.com>
53242
53243         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
53244
53245 2005-04-15  Simon Josefsson  <jas@extundo.com>
53246
53247         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
53248
53249 2005-04-15  Simon Josefsson  <jas@extundo.com>
53250
53251         * gnulib-tool: Rename --symlink to --symbolic.
53252
53253 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
53254
53255         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
53256         symbolic links to files instead of copying/moving.  Add --aux-dir,
53257         specifying directory relative --dir where auxiliary build tools
53258         are placed.
53259
53260 2005-04-14  Bruno Haible  <bruno@clisp.org>
53261
53262         * modules/allocsa (License): Change to LGPL.
53263         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53264
53265 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
53266
53267         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
53268         that "UTC +1 second" continues to work.  Problem reported
53269         by Dmitry V. Levin.
53270         (relunit_snumber): New rule.
53271         (relunit): Use it.
53272
53273 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
53274
53275         * lib/getdate.y (universal_time_zone_table): New constant.
53276         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
53277         universal_time_zone_table.
53278         (lookup_zone): Prefer universal_time_zone_table to
53279         local_time_zone_table, so that "GMT" time stamps are allowed in
53280         London during the summer.  Problem reported by Ian Abbott.
53281
53282 2005-04-12  Jim Meyering  <jim@meyering.net>
53283
53284         * lib/human.c (humblock): Set *options even when returning due to
53285         xstrtoumax conversion failure.  Thanks to a used-uninitialized
53286         warning from gcc-4.
53287
53288 2005-04-09  Jim Meyering  <jim@meyering.net>
53289
53290         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
53291         -Wuninitialized: initialize tm0.tm_year.
53292
53293 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
53294
53295         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
53296         count, since there's no maximum.  All uses changed.
53297         Add member dsts_seen.
53298         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
53299         not being INT_MAX.
53300         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
53301         Use pc_rels_seen to decide whther a date is absolute.
53302
53303         * lib/getdate.y (number): Don't overwrite year.
53304         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
53305         check.
53306
53307 2005-04-02  Simon Josefsson  <jas@extundo.com>
53308
53309         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
53310         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
53311
53312 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
53313
53314         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
53315         where no absolute path name can be longer than PATH_MAX.
53316
53317 2005-03-27  Jim Meyering  <jim@meyering.net>
53318
53319         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
53320
53321 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
53322
53323         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
53324         "one's complement" -> "ones' complement" in comment, as per Knuth.
53325         "value of type" -> "type or expression" in comment.
53326         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
53327
53328 2005-03-26  Jim Meyering  <jim@meyering.net>
53329
53330         Comment nits.
53331         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
53332         Correct typos: s/or/of/.
53333
53334 2005-03-26  Jim Meyering  <jim@meyering.net>
53335
53336         * modules/check-include-files: Move to ../ and rename to...
53337         * check-module: ...this.
53338
53339 2005-03-25  Jim Meyering  <jim@meyering.net>
53340
53341         * modules/xvasprintf (Files): Add xalloc.h.
53342
53343 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
53344
53345         * modules/gettext (Files): config/config.rpath ->
53346         build-aux/config.rpath
53347         * modules/iconv (Files): Likewise.
53348         Problem reported by Oskar Liljeblad.
53349
53350 2005-03-23  Jim Meyering  <jim@meyering.net>
53351
53352         * modules/check-include-files: New script to check for
53353         missing dependencies, multiple includes, etc.
53354
53355         * modules/c-strtold (Depends-on): Add xalloc.
53356         * modules/c-strtod (Depends-on): Add xalloc.
53357         * modules/hash (Depends-on): Add xalloc.
53358         (Files): Remove lib/xalloc.h.
53359
53360         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
53361         * modules/userspec (Files): Add lib/inttostr.h.
53362
53363 2005-03-23  Jim Meyering  <jim@meyering.net>
53364
53365         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
53366
53367 2005-03-22  Jim Meyering  <jim@meyering.net>
53368
53369         * modules/stat-macros: New module.
53370         * modules/canonicalize, modules/euidaccess, modules/file-type,
53371         * modules/filemode, modules/lchown, modules/makepath,
53372         * modules/rmdir, modules/stat: Depend on new stat-macros module
53373         rather than listing lib/stat-macros.h manually.
53374         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
53375
53376 2005-03-22  Jim Meyering  <jim@meyering.net>
53377
53378         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
53379
53380 2005-03-22  Bruno Haible  <bruno@clisp.org>
53381
53382         * config/srclist.txt: Replace target directory 'config' with
53383         'build-aux'.
53384         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
53385         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
53386         ../build-aux/.
53387
53388 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
53389
53390         * modules/chdir-long (Depends-on): Add mempcpy.
53391
53392         * modules/acl, modules/backupfile, modules/c-strtod,
53393         modules/c-strtold, modules/canon-host, modules/canonicalize,
53394         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
53395         modules/exclude, modules/exitfail, modules/file-type,
53396         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
53397         modules/getdate, modules/getline, modules/getpagesize,
53398         modules/getpass, modules/getugroups, modules/group-member,
53399         modules/hard-locale, modules/hash, modules/human, modules/idcache,
53400         modules/inttostr, modules/long-options, modules/makepath,
53401         modules/md5, modules/memcasecmp, modules/memcoll,
53402         modules/modechange, modules/mountlist, modules/path-concat,
53403         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
53404         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
53405         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
53406         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
53407         modules/strftime, modules/strndup, modules/strverscmp,
53408         modules/timespec, modules/unlocked-io, modules/userspec,
53409         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
53410         modules/yesno:
53411         Remove lib_SOURCES line from Makefile.am section, as this is now
53412         done automatically by the corresponding Autoconf macro.
53413
53414 2005-03-21  Jim Meyering  <jim@meyering.net>
53415
53416         Changes imported from coreutils.
53417
53418         * lib/cycle-check.c: Don't include xalloc.h.
53419
53420         * lib/path-concat.c: Don't include assert.h.
53421         (path_concat): Remove assertion that would have triggered
53422         for ABASE starting with more than one slash.
53423         Reported by Andreas Schwab.
53424
53425         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
53426         properly when ABASE is an absolute file name.
53427         Correct the description of this function.
53428         Include <assert.h>.
53429         Add an assertion and a test driver.
53430         This fixes a bug introduced on 2004-07-02.
53431         Andreas Schwab reported the resulting failure of cp --parents:
53432         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
53433
53434 2005-03-21  Jim Meyering  <jim@meyering.net>
53435
53436         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
53437         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
53438
53439 2005-03-21  Jim Meyering  <jim@meyering.net>
53440         and  Paul Eggert  <eggert@cs.ucla.edu>
53441
53442         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
53443         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
53444         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
53445         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
53446         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
53447         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
53448         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
53449         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
53450         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
53451         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
53452         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
53453         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
53454         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
53455         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
53456         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
53457         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
53458         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
53459         for these modules.
53460
53461 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
53462
53463         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
53464         (which shouldn't happen), generate nothing instead of returning 0
53465         immediately, so that nstrftime (NULL, ...) doesn't return 0.
53466
53467 2005-03-16  Bruno Haible  <bruno@clisp.org>
53468
53469         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
53470         HAVE_LONGLONG_64BIT.
53471
53472 2005-03-16  Bruno Haible  <bruno@clisp.org>
53473
53474         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
53475         HAVE_LONGLONG_64BIT.
53476
53477 2005-03-16  Bruno Haible  <bruno@clisp.org>
53478
53479         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
53480         HAVE_LONGLONG_64BIT.
53481
53482 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
53483
53484         * lib/strftime.c (my_strftime): Prepend space to format so that we can
53485         reliably distinguish strftime failure from empty output on POSIX
53486         hosts.
53487
53488 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
53489
53490         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
53491         (iconv_string): Don't guess a size-zero buffer, as that might cause
53492         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
53493         result would be 'too large', where 'too large' is (heuristically)
53494         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
53495         overflow concerns.  This will prevent some unwanted malloc failures
53496         when the inputs are very large.
53497
53498 2005-03-15  Karl Berry  <karl@gnu.org>
53499
53500         * config/srclist.txt (config.rpath): from gettext.
53501         * config/config.rpath: update.
53502
53503 2005-03-15  Bruno Haible  <bruno@clisp.org>
53504
53505         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
53506         to 'negate'.
53507
53508         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
53509         variable.
53510
53511         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
53512         results.
53513
53514 2005-03-14  Simon Josefsson  <jas@extundo.com>
53515
53516         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
53517         <fx@gnu.org>.
53518
53519 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
53520
53521         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
53522         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
53523         intprops.h.
53524         * lib/strtol.c: Likewise.
53525
53526 2005-03-14  Jim Meyering  <jim@meyering.net>
53527
53528         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
53529         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
53530         to be nonzero so that we (and caller) can detect the difference
53531         between a valid zero-length expansion and an error return, even
53532         when the underlying strftime fails before writing anything into
53533         that location.
53534
53535 2005-03-14  Bruno Haible  <bruno@clisp.org>
53536
53537         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
53538         Update from GNU gettext 0.14.3.
53539
53540 2005-03-10  Jim Meyering  <jim@meyering.net>
53541
53542         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
53543
53544 2005-03-10  Jim Meyering  <jim@meyering.net>
53545
53546         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
53547         so that this module works on systems without fchdir.
53548
53549 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
53550
53551         Factor int-properties macros into a single file, except for
53552         glibc-related files.
53553         * lib/intprops.h: New file.
53554         * lib/getloadavg.c: Include it instead of limits.h.
53555         (INT_STRLEN_BOUND): Remove.
53556         * lib/human.c: Include intprops.h.
53557         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
53558         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
53559         302/1000.
53560         * lib/inttostr.h: Include intprops.h instead of limits.h.
53561         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
53562         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
53563         for consistency with intprops.h.
53564         (time_t_is_integer, twos_complement_arithmetic): Use them.
53565         * lib/sig2str.h: Include <signal.h>, intprops.h.
53566         (INT_STRLEN_BOUND): Remove.
53567         * lib/strftime.c (TYPE_SIGNED): Remove.
53568         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
53569         * lib/strtol.c: Adjust comments to match intprops.h.
53570         * lib/userspec.c: Include intprops.h.
53571         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
53572         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
53573         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
53574         instead of rolling our own expressions.
53575         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
53576
53577         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
53578         instead of int.
53579         (my_strftime): Do not mishandle years close to INT_MAX, by doing
53580         the right thing even if adding 1900 would overflow.  Similarly
53581         for tm_mon + 1 and tm_yday + 1.
53582         Make %Y always equivalent to %C%y, and similarly for %G and %g.
53583         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
53584         (DO_SIGNED_NUMBER): New macro.
53585         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
53586
53587 2005-03-07  Bruno Haible  <bruno@clisp.org>
53588
53589         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
53590
53591 2005-03-07  Bruno Haible  <bruno@clisp.org>
53592
53593         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
53594
53595 2005-03-04  Derek R. Price  <derek@ximbiot.com>
53596
53597         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
53598         (func_import): Only replace files via --import when they have actually
53599         changed.
53600
53601 2005-03-03  Derek R. Price  <derek@ximbiot.com>
53602
53603         * m4/mmap-anon.m4: New file.
53604         * m4/pagealign_alloc.m4: New file.
53605
53606 2005-03-03  Derek R. Price  <derek@ximbiot.com>
53607             Bruno Haible  <bruno@clisp.org>
53608
53609         * modules/pagealign_alloc: New file.
53610         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
53611
53612 2005-03-03  Derek R. Price  <derek@ximbiot.com>
53613             Bruno Haible  <bruno@clisp.org>
53614
53615         * lib/pagealign_alloc.h: New file.
53616         * lib/pagealign_alloc.c: New file.
53617
53618 2005-03-03  Bruno Haible  <bruno@clisp.org>
53619
53620         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
53621         Use an all-permissive copyright notice, recommended by RMS.
53622
53623 2005-03-02  Bruno Haible  <bruno@clisp.org>
53624
53625         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
53626         of AIX, the replacement has to be done only after <string.h> is
53627         included, therefore not in config.h. stpncpy.h does the replacement,
53628         and stpncpy.c uses it.
53629
53630 2005-03-02  Bruno Haible  <bruno@clisp.org>
53631
53632         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
53633         stpncpy.c uses it.
53634
53635 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53636
53637         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
53638         The workaround isn't strictly needed for POSIX conformance, and
53639         it's too much of a pain to configure and maintain.  We'll ask
53640         people to fix their kernels instead.
53641         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
53642         (NANOSLEEP_BUG_WORKAROUND): Remove.
53643         (xnanosleep): Remove the workaround.
53644
53645 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53646
53647         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
53648         Reported by Derek Price.
53649         (Include): Add "timespec.h".
53650
53651         * modules/xnanosleep (Depends-on): Remove gethrxtime.
53652
53653 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53654
53655         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
53656         to detect nanosleep bug.
53657
53658 2005-03-01  Bruno Haible  <bruno@clisp.org>
53659
53660         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
53661
53662 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
53663
53664         * modules/gethrxtime: New file.
53665         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
53666         (Depends-on): Add gethrxtime.
53667         (configure.ac): Add gl_XNANOSLEEP.
53668         (Makefile.am): Remove lib_SOURCES line.
53669
53670 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
53671
53672         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
53673         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
53674
53675 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
53676
53677         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
53678         * lib/timespec.h (gettime): Return void, since it always
53679         succeeds now.  All uses changed.
53680         * lib/gettime.c (gettime) Likewise.
53681         [HAVE_NANOTIME]: Prefer nanotime.
53682         Assume gettimeofday succeeds, as POSIX requires.
53683         Assime time () succeeds, since other code already does.
53684         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
53685         (timespec_subtract): Remove.
53686         (NANOSLEEP_BUG_WORKAROUND): New constant.
53687         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
53688         things considerably.  Use it only on GNU/Linux hosts, since the
53689         workaround shouldn't be needed elsewhere.
53690
53691 2005-02-24  Bruno Haible  <bruno@clisp.org>
53692
53693         * modules/gettext (Files): Add m4/glibc2.m4.
53694
53695 2005-02-24  Bruno Haible  <bruno@clisp.org>
53696
53697         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
53698         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
53699         * m4/progtest.m4:
53700         Update from GNU gettext 0.14.2.
53701         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
53702
53703 2005-02-24  Bruno Haible  <bruno@clisp.org>
53704
53705         * lib/localcharset.c: Update from GNU gettext 0.14.2.
53706         * lib/config.charset: Update from GNU gettext 0.14.2.
53707
53708 2005-02-24  Bruno Haible  <bruno@clisp.org>
53709
53710         * lib/gettext.h: Update from GNU gettext 0.14.2.
53711
53712 2005-02-23  Simon Josefsson  <jas@extundo.com>
53713
53714         * m4/iconvme.m4: New file.
53715
53716 2005-02-23  Jim Meyering  <jim@meyering.net>
53717
53718         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
53719         change.
53720         Thanks to Bruno Haible for catching it.
53721
53722 2005-02-22  Simon Josefsson  <jas@extundo.com>
53723
53724         * modules/iconvme: New file.
53725
53726         * MODULES.html.sh: Add iconvme.
53727
53728 2005-02-22  Simon Josefsson  <jas@extundo.com>
53729
53730         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
53731
53732 2005-02-22  Simon Josefsson  <jas@extundo.com>
53733
53734         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
53735
53736 2005-02-22  Jim Meyering  <jim@meyering.net>
53737
53738         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
53739         s/ifndef/ifdef/.
53740
53741 2005-02-20  Neil Conway  <neilc@samurai.com>
53742
53743         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
53744         returned by OSX/Darwin if the specified buffer is not large
53745         enough for the hostname.
53746
53747 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53748
53749         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
53750         pass it to _help, otherwise the latter coredumps trying to
53751         dereference state.root_argp.
53752
53753 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53754
53755         * modules/chdir-long (Depends-on): Add memrchr.
53756         * modules/memrchr (Files): Add lib/memrchr.h.
53757         (Include): "memrchr.h".
53758
53759 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53760
53761         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
53762
53763 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53764
53765         * lib/memrchr.h: New file.
53766         * lib/chdir-long.c: Include it.
53767         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
53768         Don't bother including stddef.h.
53769
53770 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
53771
53772         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
53773         inclusion.
53774         Include <sys/types.h>, for dev_t.
53775         (ME_DUMMY, ME_REMOTE): Move from here....
53776         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
53777         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
53778         Dmitry V. Levin.
53779         Include mountlist.h first, to test the interface.
53780
53781 2005-01-29  Bruno Haible  <bruno@clisp.org>
53782
53783         * lib/progname.c (program_name): Initialize.
53784         Needed when linking statically on MacOS X.
53785
53786 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
53787
53788         Sync from coreutils.
53789         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
53790         (Depends-on): Add c-strtod.
53791         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
53792
53793 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
53794
53795         Sync from coreutils.
53796         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
53797
53798         Remove files that are specific to coreutils.
53799         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
53800
53801 2005-01-28  Bruno Haible  <bruno@clisp.org>
53802
53803         * modules/javacomp: New file.
53804         * MODULES.html.sh (Java): Add javacomp.
53805
53806 2005-01-28  Bruno Haible  <bruno@clisp.org>
53807
53808         * m4/javacomp.m4: New file, from GNU gettext.
53809
53810 2005-01-28  Bruno Haible  <bruno@clisp.org>
53811
53812         * lib/javacomp.sh.in: New file, from GNU gettext.
53813         * lib/javacomp.h: New file, from GNU gettext.
53814         * lib/javacomp.c: New file, from GNU gettext.
53815
53816 2005-01-26  Simon Josefsson  <jas@extundo.com>
53817
53818         * lib/gai_strerror.c: Use GPL in header.
53819
53820 2005-01-26  Bruno Haible  <bruno@clisp.org>
53821
53822         * modules/javaexec: New file.
53823         * MODULES.html.sh (Java): Add javaexec.
53824
53825 2005-01-26  Bruno Haible  <bruno@clisp.org>
53826
53827         * m4/javaexec.m4: New file, from GNU gettext.
53828
53829 2005-01-26  Bruno Haible  <bruno@clisp.org>
53830
53831         * lib/javaexec.sh.in: New file, from GNU gettext.
53832         * lib/javaexec.h: New file, from GNU gettext.
53833         * lib/javaexec.c: New file, from GNU gettext.
53834
53835 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53836
53837         * modules/lchown (Depends-on): Remove lchown.h
53838
53839 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53840
53841         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
53842         must be defined if the header file was not found, in order
53843         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
53844
53845 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53846
53847         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
53848         initializers for struct pentry_state.
53849         (__argp_error): Check return value of __asprintf
53850         (__argp_failure): Translate error message
53851
53852         * lib/argp-parse.c: Removed braces around the expansion of N_()
53853
53854 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
53855
53856         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
53857         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
53858         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
53859         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
53860         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
53861         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
53862         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
53863         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
53864         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
53865         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
53866         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
53867         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
53868         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
53869         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
53870         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
53871         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
53872         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
53873         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
53874         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
53875         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
53876         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
53877         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
53878         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
53879         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
53880         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
53881         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
53882         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
53883         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
53884         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
53885         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
53886         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
53887         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
53888         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
53889         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
53890         xstrtol.m4, xstrtoumax.m4, yesno.m4:
53891         Use an all-permissive copyright notice, recommended by RMS.
53892
53893 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
53894
53895         * modules/chdir-long (Depends-on): Remove mempcpy.
53896
53897 2005-01-21  Jim Meyering  <jim@meyering.net>
53898
53899         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
53900         same value as for Solaris 9.
53901
53902         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
53903         component length.  This included changing the parameter to be
53904         of type `char *' rather than `char const *'.
53905         * lib/chdir-long.h (chdir_long): Update prototype.
53906
53907         * lib/openat.c (fdopendir, fstatat): New functions.
53908         * lib/openat.h: Include headers required for use of DIR and struct
53909         stat.
53910         [AT_SYMLINK_NOFOLLOW]: Define.
53911         (fdopendir, fstatat): Add prototypes.
53912
53913 2005-01-21  Bruno Haible  <bruno@clisp.org>
53914
53915         * modules/classpath: New file.
53916         * MODULES.html.sh (Java): Add classpath.
53917
53918 2005-01-21  Bruno Haible  <bruno@clisp.org>
53919
53920         * lib/classpath.h: New file, from GNU gettext.
53921         * lib/classpath.c: New file, from GNU gettext.
53922
53923 2005-01-20  Simon Josefsson  <jas@extundo.com>
53924
53925         * modules/version-etc-fsf: New file.
53926
53927 2005-01-20  Simon Josefsson  <jas@extundo.com>
53928
53929         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
53930         * lib/version-etc.c: Remove version_etc_copyright.
53931         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
53932         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
53933
53934 2005-01-20  Simon Josefsson  <jas@extundo.com>
53935
53936         * lib/base64.h (isbase64): Add.
53937
53938         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
53939         using a unsigned prototype, don't inline.
53940         (base64_decode): Use it.
53941
53942 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53943
53944         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
53945         it.
53946
53947 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53948
53949         * lib/save-cwd.c (save_cwd): Remove code to support the case
53950         where fchdir is missing or flaky.
53951
53952 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53953
53954         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
53955
53956 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
53957
53958         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
53959         AC_LIBSOURCES now does this.
53960         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
53961         with new ullong_max module.
53962
53963 2005-01-19  Bruno Haible  <bruno@clisp.org>
53964
53965         * modules/sh-quote: New file.
53966         * MODULES.html.sh (Executing programs): Add sh-quote.
53967
53968 2005-01-19  Bruno Haible  <bruno@clisp.org>
53969
53970         * lib/sh-quote.h: New file, from GNU gettext.
53971         * lib/sh-quote.c: New file, from GNU gettext.
53972
53973 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
53974
53975         Merge from coreutils.
53976         * m4/ullong_max.m4: New file.
53977         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
53978         (gl_MACROS): Assume localeconv exists.
53979
53980 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
53981
53982         Merge changes from coreutils, as described below in several
53983         changelogs dated today.
53984
53985         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
53986         (O_DIRECTORY): Remove; not needed here, since "." must be
53987         a directory.  All uses removed.
53988         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
53989         universal on Suns, and we also need to test for IRIX.
53990         Revamp code to use 'if' rather than '#if'.
53991         Avoid unnecessary comparison of cwd->desc to 0.
53992
53993         * lib/utimens.c (futimens): Robustify the previous patch, by checking
53994         for known valid error numbers rather than observed invalid ones.
53995
53996 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
53997
53998         * modules/ullong_max: New file.
53999
54000         * modules/chdir-long, modules/openat: New files.
54001         * modules/save-cwd (Depends-on): Depend on chdir-long.
54002         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
54003
54004 2005-01-18  Jim Meyering  <jim@meyering.net>
54005
54006         Merge from coreutils.
54007         * m4/chdir-long.m4, m4/openat.m4: New files.
54008         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
54009         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
54010         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
54011         is sane and DOES follow symlinks.  Besides, testing 20 different
54012         systems found no broken chown implementations.
54013         Prompted by a change in rsync's copy of this macro.
54014         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
54015
54016         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
54017
54018         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
54019         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
54020         NULL-means-set-to-current-time semantics.
54021         Remove temporary file immediately, rather than waiting
54022         for configure's at-exit trap code to do it.
54023
54024 2005-01-18  Jim Meyering  <jim@meyering.net>
54025
54026         * lib/version-etc.c (version_etc_copyright): Update copyright date.
54027
54028         * lib/utimens.c (futimens): Account for the fact that futimes
54029         can also fail with errno == ENOSYS or errno == ENOENT.
54030         Patch from Dmitry V. Levin.
54031
54032         Change the name of the robust chdir function from chdir to chdir_long.
54033         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
54034         (restore_cwd): Use chdir_long, not chdir.
54035         * lib/chdir-long.c: Renamed from chdir.c.
54036         * lib/chdir-long.h: Renamed from chdir.h.
54037         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
54038         Hurd.
54039
54040 2005-01-18  Bruno Haible  <bruno@clisp.org>
54041
54042         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
54043         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
54044         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
54045         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
54046         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
54047         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
54048         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
54049         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
54050         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
54051         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
54052         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
54053         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
54054         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
54055         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
54056         Use an all-permissive copyright notice, recommended by RMS.
54057
54058 2005-01-18  Bob Proulx  <bob@proulx.com>
54059
54060         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
54061         simplify offsetof() macro construct to avoid compile failure with
54062         native HP-UX 11.0 ANSI C compiler.
54063
54064 2005-01-17  Bruno Haible  <bruno@clisp.org>
54065
54066         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
54067         redundant because stpncpy.m4 takes care of it.
54068
54069 2005-01-17  Bruno Haible  <bruno@clisp.org>
54070
54071         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
54072
54073 2005-01-17  Bruno Haible  <bruno@clisp.org>
54074
54075         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
54076         used.
54077
54078 2005-01-17  Bruno Haible  <bruno@clisp.org>
54079
54080         * lib/fwriteerror.h (fwriteerror): Change specification to include
54081         fclose.
54082         * lib/fwriteerror.c: Include <stdbool.h>.
54083         (fwriteerror): At the end, close the file stream. Record whether
54084         stdout was already closed.
54085
54086 2005-01-17  Bruno Haible  <bruno@clisp.org>
54087
54088         * lib/execute.c (environ): Declare if needed.
54089         * lib/pipe.c (environ): Likewise.
54090         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
54091
54092 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54093
54094         * modules/argp: Depend on vsnprintf
54095
54096 2005-01-10  Jim Meyering  <jim@meyering.net>
54097
54098         * modules/closeout (Depends-on): Add atexit.
54099
54100 2005-01-06  Bruno Haible  <bruno@clisp.org>
54101
54102         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
54103
54104 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
54105
54106         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
54107         definitions to be after all include files, to avoid collisions.
54108         Problem reported by Bob Proulx.
54109
54110 2005-01-04  Jim Meyering  <jim@meyering.net>
54111
54112         Changes imported from coreutils.
54113         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
54114         as the mkstemp template, use a temporary directory and an
54115         8.3-friendly template to avoid trouble on systems like DJGPP.
54116         Reported by Juan M. Guerrero via Stepan Kasal.
54117         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
54118         close. Remove the temporary directory right away, rather than waiting
54119         for configure's at-exit trap code to do it.
54120         Suggestion from Stepan Kasal.
54121
54122 2005-01-01  Simon Josefsson  <jas@extundo.com>
54123
54124         * gnulib-tool: Print #include directives when --import'ing.
54125
54126 2004-12-28  Simon Josefsson  <jas@extundo.com>
54127
54128         * tests/test-base64.c: Include required header files.  Remove
54129         unused variables.
54130
54131 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
54132
54133         * modules/error (Depends-on): Remove gettext.
54134
54135 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
54136
54137         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
54138         not needed.  This removes a dependency on the gettext module.
54139         [defined _LIBC]: Do not include <libintl.h>; not needed.
54140
54141 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
54142
54143         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
54144         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
54145
54146 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
54147
54148         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
54149         HAVE_DECL_STRTOLD.
54150
54151 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
54152
54153         * modules/getdate (Depends-on): Remove alloca-opt.
54154
54155 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
54156
54157         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
54158
54159 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
54160
54161         * lib/argp-parse.c: Include <stddef.h>.
54162         (alignof, alignto): New macros.
54163         (parser_init): Don't assume that void * is aligned sufficiently
54164         for struct option.
54165
54166         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
54167         need to extend the stack.
54168         (YYINITDEPTH): New macro, so that the initial stack isn't overly
54169         large.
54170
54171 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54172
54173         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
54174
54175 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
54176
54177         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
54178         (2004-10-24) change.  Apparently this was a false alarm.
54179
54180         * modules/getdate: Depend on alloca-opt, not alloca.
54181
54182 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
54183
54184         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
54185         Remove now-obsolete comment about AIX.
54186         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
54187         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
54188         (YYMAXDEPTH): New macro.
54189
54190 2004-12-18  Simon Josefsson  <jas@extundo.com>
54191
54192         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
54193
54194 2004-12-18  Bruno Haible  <bruno@clisp.org>
54195
54196         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
54197
54198 2004-12-18  Bruno Haible  <bruno@clisp.org>
54199
54200         * lib/fatal-signal.c (fatal_signals): Make non-const.
54201         (init_fatal_signals): New function.
54202         (uninstall_handlers, install_handlers): Ignore signals that were set to
54203         SIG_IGN.
54204         (at_fatal_signal): Call init_fatal_signals.
54205         (init_fatal_signal_set): Likewise. Ignore signals that were set to
54206         SIG_IGN.
54207         Reported by Paul Eggert.
54208
54209 2004-12-18  Bruno Haible  <bruno@clisp.org>
54210
54211         * doc/alloca.texi: New file.
54212         * doc/alloca-opt.texi: New file.
54213
54214 2004-12-17  Jim Meyering  <jim@meyering.net>
54215
54216         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
54217         Otherwise, install-sh could exit with improper exit status when
54218         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
54219
54220 2004-12-16  Simon Josefsson  <jas@extundo.com>
54221
54222         * tests/test-base64.c: Add license.
54223
54224 2004-12-15  Stepan Kasal  <address@hidden>
54225
54226         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
54227
54228 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
54229
54230         * modules/getcwd (Files): Add m4/d-ino.m4.
54231         Suggested by Mark D. Baushke.
54232
54233 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
54234
54235         * lib/getdate.y (textint): New member "negative".
54236         (time_zone_hhmm): New function.
54237         Expect 14 shift-reduce conflicts, not 13.
54238         (o_colon_minutes): New rule.
54239         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
54240         (yylex): Set the "negative" member of signed numbers.
54241
54242 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
54243
54244         * doc/getdate.texi (Time of day items, Time zone items):
54245         Describe new formats +00:00, UTC+00:00.
54246
54247 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
54248
54249         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
54250         spurious "-l"s.  Problem reported by Stepan Kasal.
54251
54252 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
54253
54254         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
54255         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
54256
54257 2004-12-04  Simon Josefsson  <jas@extundo.com>
54258
54259         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
54260         Vandoorselaere <yoann@prelude-ids.org>.
54261
54262 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
54263
54264         Changes imported from coreutils.
54265         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
54266         exist.
54267         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
54268
54269 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
54270
54271         Changes imported from coreutils.
54272         * lib/hard-locale.c: Assume <locale.h> exists.
54273         Include "strdup.h".
54274         (GLIBC_VERSION): New macro.
54275         (hard_locale): Assume setlocale exists.
54276         Rewrite to avoid #ifdef.
54277         Use strdup rather than malloc + strcpy.
54278         * lib/human.c: Assume <locale.h> exists.
54279         (human_readable): Assume localeconv exists.
54280
54281 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
54282
54283         * modules/hard-locale (Depends-on): Add strdup.
54284
54285 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
54286
54287         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
54288         convert T2, not T.  (Imported from libc.)
54289
54290 2004-11-30  Simon Josefsson  <jas@extundo.com>
54291
54292         * modules/restrict (License): Change to LGPL.
54293
54294 2004-11-30  Simon Josefsson  <jas@extundo.com>
54295
54296         * m4/restrict.m4: Add copyright and copying conditions.
54297
54298 2004-11-30  Simon Josefsson  <jas@extundo.com>
54299
54300         * m4/base64.m4: New file.
54301
54302 2004-11-30  Simon Josefsson  <jas@extundo.com>
54303
54304         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
54305         base64.
54306
54307         * tests/test-base64.c: New file.
54308
54309         * modules/base64: New file.
54310
54311 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
54312
54313         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
54314         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
54315
54316         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
54317
54318 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
54319
54320         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
54321         (__getcwd.c): Don't restore errno; glibc doesn't.
54322         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
54323         first, falling back to our code only if its results look suspicious.
54324         Ensure that the resulting buffer is only as large as necessary.
54325
54326         * lib/readutmp.c: Include readutmp.h first.
54327         Include <errno.h>, since readutmp.h no longer does that.
54328         * lib/readutmp.h: Don't include <errno.h>,
54329         <sys/param.h>, <time.h>; not needed to establish interface.
54330         (errno): Remove decl.
54331         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
54332         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
54333         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
54334
54335 2004-11-28  Simon Josefsson  <jas@extundo.com>
54336
54337         * lib/base64.h, base64.c: New file.
54338
54339 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
54340
54341         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
54342
54343 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
54344
54345         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
54346         (Depends-on): Remove pathmax, same.  Add mempcpy.
54347         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
54348         (Makefile.am): Append getcwd.h to lib_SOURCES.
54349         (Include): Add getcwd.h.
54350         (Maintainer): Change from Jim Meyering to "all, glibc",
54351         since getdate now uses intended-for-glibc code.
54352         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
54353         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
54354
54355 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
54356
54357         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
54358         HP's ANSI C compiler.
54359         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
54360         Declaring int functions causes warnings on some modern systems and
54361         shouldn't be needed to compile on ancient ones.
54362         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
54363         defined.
54364
54365         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
54366         with the following changes.
54367         (__set_errno): Parenthesize properly.
54368         Include <stdbool.h>.
54369         (MIN, MAX, MATCHING_INO): New macros.
54370         (__getcwd): Define with prototype, not K&R form.
54371         Use heuristics to allocate default buffer on stack if possible.
54372         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
54373         behavior, and to avoid the PATH_MAX limit when computing
54374         ../../../../...
54375         Use MATCHING_INO to compare inode number to file.
54376         Check for arithmetic overflow in size calculations.
54377         Fix bug in reallocation of dot array that caused getcwd to fail
54378         on directories nested deeper than 75.
54379         Be more careful about saving errno on error.
54380         Do not use realloc; use only free+malloc, as this is a bit
54381         more flexible and avoids a needless copy operation.
54382         Do not inspect st_dev and st_ino for symbolic links; POSIX
54383         doesn't specify the latter.
54384         Check for closedir errors.
54385         Avoid needless casts.
54386         Use "#ifdef weak_alias" around weak_alias, to be like other
54387         glibc code.
54388         The following changes to getcwd.c have effect only when used in
54389         gnulib; they have no effect inside glibc proper.
54390         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
54391         as alloca isn't used.
54392         (alloca, __alloca): Likewise.
54393         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
54394         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
54395         unconditionally, as gnulib assumes C89 or better.
54396         Do not include <sys/param.h>.
54397         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
54398         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
54399         better.
54400         (NULL) [!defined NULL]: Remove; we assume C89 or better.
54401         Include <dirent.h> in a way that is compatible with modern Autoconf.
54402         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
54403         New macros, if not already defined.
54404         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
54405         Use "_LIBC", not "defined _LIBC", for consistency.
54406         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
54407         a mempcpy module.
54408         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
54409         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
54410         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
54411         credit only to Jim Meyering and adjust the copyright dates.
54412         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
54413         <stdlib.h>, <unistd.h>, "pathmax.h".
54414         Instead, include "xgetcwd.h" (first) and "getcwd.h".
54415         (INITIAL_BUFFER_SIZE): Remove.
54416         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
54417
54418 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
54419
54420         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
54421         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
54422         Use the _ONCE methods, for efficiency.
54423         Check for fcntl.h.  In test program, include <errno.h>
54424         and <fcntl.h> if available.  Remove old K&R cruft from
54425         test program.  Check for common errors in GNU/Linux,
54426         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
54427         don't do AC_LIBOBJ, as that's getcwd.m4's job.
54428         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
54429         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
54430         name accordingly.
54431         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
54432         accommodate new getcwd.c.
54433         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
54434         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
54435         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
54436         that's all we need now.
54437
54438 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54439
54440         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
54441         argp-parse.c depends on getopt internals, that means we should
54442         always use our getopt, to be on the safe side.
54443         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
54444         order not to spoil the result of an eventual previous invocation
54445         of gl_GETOPT_SUBSTITUTE.
54446
54447 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54448
54449         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
54450         redefinition warnings. To avoid them, include the defines
54451         in `#if !defined __need_getopt ... #endif'. The only place
54452         where __getopt_argv_const is used is in definitions
54453         of getopt_long and getopt_long_only below, which are as well
54454         protected by `#ifndef __need_getopt'.
54455         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
54456         __need_getopt after including <stdio.h> and <unistd.h> These
54457         headers might have defined it.
54458
54459 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
54460
54461         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
54462
54463 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
54464
54465         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
54466         (futimens): New function, which uses futimes if available.
54467         (futimens, utimens): Support timespec==NULL, with same semantics
54468         as utime and utimens.
54469         * lib/utimens.h (futimens): New decl.
54470
54471 2004-11-23  Jim Meyering  <jim@meyering.net>
54472
54473         * lib/getopt_.h: Remove trailing blanks.
54474
54475 2004-11-23  Jim Meyering  <jim@meyering.net>
54476
54477         * lib/__fpending.c: Add comment.
54478
54479 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
54480
54481         * modules/canonicalize (Depends-on): Add xreadlink.
54482         Problem reported by James Youngman.
54483
54484 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
54485
54486         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
54487         New macros.
54488         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
54489         optopt): Use them instead of invoking ## directly; otherwise, the
54490         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
54491
54492 2004-11-19  Bruno Haible  <bruno@clisp.org>
54493
54494         * lib/strtok_r.c: Move comments from here...
54495         * lib/strtok_r.h: ... to here.
54496
54497 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
54498
54499         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
54500         implementations that mishandle size_t overflow.
54501
54502 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
54503
54504         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
54505         might fail.  Problem reported by Yoann Vandoorselaere.
54506         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
54507         implementations that mishandle size_t overflow.
54508
54509 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54510
54511         * modules/canon-host (Depends-on): Add strdup.
54512
54513 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54514
54515         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
54516
54517 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54518
54519         * lib/canon-host.c: Include "strdup.h".
54520         (canon_host): Use getaddrinfo if available, so that IPv6 works.
54521         Use strdup instead of malloc/strcpy to duplicate strings.
54522
54523         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
54524         (human_space_before_unit): New constant.
54525         * lib/human.c (human_readable): Support it.
54526
54527         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
54528         (xgetcwd): Set errno correctly when failing.
54529         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
54530         the failure is actually due to a PATH_MAX problem.
54531
54532         Further getopt changes to make it more likely that glibc will
54533         buy the changes back.
54534         * lib/getopt.c (POSIXLY_CORRECT): New constant.
54535         (getopt): Use it, so to preserve glibc semantic
54536         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
54537         when compiling for libc.
54538         * lib/getopt_.h (__getopt_argv_const): Bring it back.
54539         (getopt_long, getopt_long_only): Use it.
54540
54541         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
54542         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
54543         (getopt): Argv is now char * const *, as per standard.
54544         (_getopt_internal_r, _getopt_internal): Argv is now char **,
54545         not char *__getopt_argv_const *.
54546         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
54547         _getopt_long_only_r): Likewise.
54548         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
54549         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
54550         _getopt_long_r, _getopt_long_only_r): Likewise.
54551         * lib/getopt_.h (__getopt_argv_const): Remove.
54552         (getopt): Argv is now char * const *, as per standard.
54553
54554         * lib/getdate.y (tORDINAL): New token.
54555         (day, relunit): Allow it for relative times.
54556         (relative_time_table): Use tORDINAL for ordinals.
54557
54558 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54559
54560         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
54561         Document that "second" isn't allowed as an ordinal number.
54562
54563 2004-11-16  Jim Meyering  <jim@meyering.net>
54564
54565         * modules/closeout (Depends-on): Add fpending.
54566
54567 2004-11-15  Jim Meyering  <jim@meyering.net>
54568
54569         * lib/closeout.c: Include "__fpending.h" once again.
54570         Include <stdbool.h>.
54571         (close_stdout): Don't fail just because stdout was closed initially,
54572         since some programs don't write to stdout in the normal course of
54573         operation (other than --version and --help), and we don't want this
54574         function to make e.g. `touch file >&-' fail.
54575         But do fail if it was closed and someone has tried to write to it.
54576         E.g., `printf foo >&-' must fail.
54577
54578 2004-11-13  Jim Meyering  <jim@meyering.net>
54579
54580         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
54581
54582 2004-11-12  Simon Josefsson  <jas@extundo.com>
54583
54584         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
54585         small doc fix is still pending.
54586
54587 2004-11-11  Simon Josefsson  <jas@extundo.com>
54588
54589         * modules/strtok_r: New file.
54590
54591         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54592         strtok_r.
54593
54594 2004-11-11  Simon Josefsson  <jas@extundo.com>
54595
54596         * m4/strtok_r.m4: New file.
54597
54598         * m4/getopt.m4: Replace opterr.
54599
54600 2004-11-11  Simon Josefsson  <jas@extundo.com>
54601
54602         * lib/strtok_r.h, strtok_r.c: New file.
54603
54604 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
54605
54606         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
54607         of replacing opterr, getopt, etc.  This should handle the
54608         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
54609
54610 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
54611
54612         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
54613         we can stop lying to compilers about the constness of argv when we
54614         are compiled outside glibc.
54615         (getopt, getopt_long, getopt_long_only): Use it.
54616         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
54617         _getopt_internal, getopt): Likewise.
54618         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
54619         _getopt_long_only_r): Likewise.
54620         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
54621         _getopt_long_r, _getopt_long_only_r): Likewise.
54622
54623         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
54624         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
54625         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
54626         the other external symbols.
54627         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
54628         declaration, since the above renaming now works around collisions.
54629
54630 2004-11-11  Jim Meyering  <jim@meyering.net>
54631
54632         * lib/linebreak.c: Remove trailing blanks.
54633         * lib/alloca_.h: Likewise.
54634         * lib/acosl.c: Likewise.
54635         * lib/euidaccess.c: Likewise.
54636         * lib/allocsa.h: Likewise.
54637
54638 2004-11-10  Simon Josefsson  <jas@extundo.com>
54639
54640         * m4/getaddrinfo.m4: New file.
54641
54642 2004-11-10  Simon Josefsson  <jas@extundo.com>
54643
54644         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
54645
54646 2004-11-10  Simon Josefsson  <jas@extundo.com>
54647
54648         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54649         getaddrinfo.
54650
54651         * modules/getaddrinfo: New file.
54652
54653 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
54654
54655         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
54656
54657 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
54658
54659         * lib/mktime.c (SHR): New macro, which is a portable
54660         substitute for >> that should work even on Crays.
54661         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
54662         Problem reported by Mark D. Baushke in
54663         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
54664         * lib/getdate.y (SHR): Likewise.
54665         (tm_diff): Use it.
54666         * lib/strftime.c (SHR): Likewise.
54667         (tm_diff): Use it.
54668         * lib/quotearg.c (struct quoting_options): Use unsigned int for
54669         quote_these_too, so that right shifts are well defined.  All uses
54670         changed.
54671
54672 2004-11-10  Jim Meyering  <jim@meyering.net>
54673
54674         Ensure that no close failure goes unreported.
54675         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
54676         return early when it seems there's nothing to flush.
54677         Don't include __fpending.h.
54678
54679 2004-11-10  Jim Meyering  <jim@meyering.net>
54680
54681         * modules/closeout (Depends-on): Remove fpending.
54682
54683 2004-11-10  Jim Meyering  <jim@meyering.net>
54684
54685         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
54686
54687 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
54688
54689         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
54690         gl_FUNC_STRFTIME.
54691         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
54692         and AC_REQUIRE when possible, to avoid duplicate checks.
54693         Check for <wchar.h>.
54694
54695 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
54696
54697         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
54698
54699 2004-11-09  Bruno Haible  <bruno@clisp.org>
54700
54701         * m4/sockpfaf.m4: New file.
54702
54703 2004-11-05  Bruno Haible  <bruno@clisp.org>
54704
54705         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
54706         Reported by Mark D. Baushke <mdb@cvshome.org>.
54707
54708 2004-11-04  Bruno Haible  <bruno@clisp.org>
54709
54710         2004-09-11  Bruno Haible  <bruno@clisp.org>
54711                 * allocsa.valgrind: New file.
54712         2004-02-06  Bruno Haible  <bruno@clisp.org>
54713                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
54714                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
54715                 Reported by Christopher Seip <chris.seip@hp.com>.
54716
54717 2004-11-04  Bruno Haible  <bruno@clisp.org>
54718
54719         * modules/allocsa (Files): Add lib/allocsa.valgrind.
54720         (Makefile.am): Distribute it.
54721
54722 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
54723
54724         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
54725         with errno == ERANGE if the buffer is too small.
54726         Problem reported by Mark D. Baushke.
54727
54728 2004-11-03  Albert Chin  <china@thewrittenword.com>
54729             Paul Eggert  <eggert@cs.ucla.edu>
54730
54731         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
54732         equivalent, substitute $ac_type for equivalent type rather than
54733         blindly using uint32_t *always* which won't work if uint32_t is not
54734         available.  Define _UINT32_T to work around typedef of uint32_t if
54735         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
54736         2.5.1.
54737
54738 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
54739
54740         * m4/jm-macros.m4: Sync from coreutils.
54741         (gl_MACROS): Check for mbrlen, for pathchk.
54742         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
54743
54744 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
54745
54746         * lib/xreadlink.c (MAXSIZE): New macro.
54747         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
54748         size does not exceed MAXSIZE.  Avoid cast.
54749         As suggested by Mark D. Baushke in
54750         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
54751         if readlink fails with buffer size just under MAXSIZE, try again
54752         with MAXSIZE.
54753
54754 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
54755
54756         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
54757
54758 2004-11-02  Derek R. Price  <derek@ximbiot.com>
54759         and  Paul Eggert  <eggert@cs.ucla.edu>
54760
54761         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
54762         (get_date): Overparenthesize to avoid GCC warning.
54763
54764 2004-11-02  Bruno Haible  <bruno@clisp.org>
54765
54766         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
54767         returns void.
54768
54769 2004-11-02  Bruno Haible  <bruno@clisp.org>
54770
54771         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
54772         function returns void.
54773
54774 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54775
54776         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
54777         fflush_unlocked, flockfile, funlockfile, funlockfile,
54778         fputs_unlocked, putc_unlocked.
54779
54780 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54781
54782         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
54783         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
54784         already declared.
54785
54786 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
54787
54788         * modules/getdate (Files): Add doc/getdate.texi.
54789         (Depends-on): Add setenv, xalloc.
54790
54791 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
54792
54793         * lib/getdate.y: Add support for TZ="foo" within a date string.
54794         Fix some bugs near time_t boundaries.  Reject dates with
54795         out-of-range components, e.g., "Sept 31".
54796         Include <stdlib.h>, "setenv.h", "xalloc.h".
54797         (ISDIGIT_LOCALE): Remove; unused.
54798         Note that the TZ and time functions used here are not reentrant.
54799         (mktime_ok, get_tz): New functions.
54800         (TZBUFSIZE): New constant.
54801         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
54802         This requires that we sometimes generate our own TZ="XXX..." setting.
54803
54804 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
54805
54806         * doc/getdate.texi: New file, from coreutils with modifications for
54807         the new TZ parsing.
54808
54809 2004-10-27  Derek R. Price  <derek@ximbiot.com>
54810
54811         * lib/mktime.c (not_equal_tm): Remove redundant check.
54812
54813 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54814
54815         * modules/regex (lib_SOURCES): Add regex.c.
54816         Reported by James Youngman in
54817         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
54818
54819 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54820
54821         * lib/getdate.y: Use Bison 1.875 features, and some minor
54822         code cleanups.  This change does not affect semantics.
54823         Don't include <stdlib.h>; no longer needed.
54824         Don't include unlocked-io.h; only the "#if TEST" code uses
54825         stdio, and performance isn't crucial there.
54826         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
54827         Bison 1.875 features as described below.
54828         All uses of "PC." replaced by "pc->".
54829         (YYSTYPE): Add a forward declaration.
54830         (yylex, yyerror): Use full prototypes in forward decls.
54831         Use "%pure-parser" rather than obsolescent "%pure_parser".
54832         Use %parse-param and %lex-param instead of obsolescent
54833         YYPARSE_PARAM and YYLEX_PARAM.
54834         (meridian_table, month_and_day_table, time_units_table,
54835         relative_time_table, time_zone_table, military_table,
54836         lookup_zone, lookup_word, get_date):
54837         Use NULL instead of 0 where appropriate.
54838         (to_hour): Avoid abort (), to avoid a dependency on
54839         stdlib.h.
54840         (yyerror, yylex): Now accepts parser_control * arg.
54841         (main) [TEST]: Use '\0' rather than 0 for char.
54842
54843 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54844
54845         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
54846
54847 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54848
54849         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
54850         It's now the caller's responsibility to handle the case where
54851         !HAVE_GETPAGESIZE && !defined getpagesize.
54852
54853         * lib/mktime.c (leapyear): Arg is long int, not int.
54854
54855 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
54856
54857         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
54858
54859 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
54860
54861         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
54862         missing.  Problem reported by James Youngman.
54863
54864 2004-10-16  Simon Josefsson  <jas@extundo.com>
54865
54866         * gnulib-tool: Fix comments.  Fix parse problem.
54867         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
54868
54869 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
54870
54871         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
54872         implementation of getopt_long.  Problem reported by Alexander Taler in:
54873         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
54874
54875 2004-10-15  Bruno Haible  <bruno@clisp.org>
54876
54877         * gnulib-tool: Untabify. Initialize supplied_libname.
54878         (func_usage): More homogenous output.
54879         (func_modules_transitive_closure, func_modules_to_filelist,
54880         func_emit_lib_Makefile_am): New functions.
54881         (func_import): New function, extracted from big case statement. Use
54882         func_get_license, func_modules_transitive_closure,
54883         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
54884         opt_lgpl. Don't use test -a, as it's not portable.
54885         (func_create_testdir): Use func_modules_transitive_closure,
54886         func_modules_to_filelist, func_emit_lib_Makefile_am.
54887
54888 2004-10-15  Bruno Haible  <bruno@clisp.org>
54889
54890         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
54891
54892 2004-10-15  Bruno Haible  <bruno@clisp.org>
54893
54894         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
54895         the portions belonging to each module.
54896         Suggested by Derek Robert Price <derek@ximbiot.com>.
54897
54898 2004-10-12  Simon Josefsson  <jas@extundo.com>
54899
54900         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
54901         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
54902         to real functions.
54903
54904 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54905
54906         * modules/vsnprintf: New file.
54907
54908 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54909
54910         * m4/vsnprintf.m4: New file.
54911
54912 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54913
54914         * lib/vsnprintf.h: New file.
54915         * lib/vsnprintf.c: New file.
54916
54917 2004-10-11  Bruno Haible  <bruno@clisp.org>
54918
54919         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
54920         vsnprintf.
54921
54922 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
54923
54924         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
54925
54926 2004-10-07  Bruno Haible  <bruno@clisp.org>
54927
54928         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
54929         fits into the provided buffer.
54930
54931 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
54932
54933         * lib/diacrit.c, diacrit.h: Add GPL notice.
54934
54935         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
54936         notice.
54937         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
54938         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
54939         This avoids a potential constant-folding bug.
54940
54941 2004-10-05  Bruno Haible  <bruno@clisp.org>
54942
54943         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
54944         for the declaration of strsep.
54945
54946 2004-10-05  Bruno Haible  <bruno@clisp.org>
54947
54948         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
54949
54950 2004-10-04  Simon Josefsson  <jas@extundo.com>
54951
54952         * modules/memmem: New file.
54953         * tests/test-memmem.c: New file.
54954         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
54955
54956 2004-10-04  Simon Josefsson  <jas@extundo.com>
54957
54958         * m4/memmem.m4: New file.
54959
54960 2004-10-04  Simon Josefsson  <jas@extundo.com>
54961
54962         * lib/memmem.h: New file.
54963         * lib/memmem.c: New file, taken from glibc.
54964
54965 2004-10-04  Simon Josefsson  <jas@extundo.com>
54966
54967         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
54968         '#ifdef USE_UNLOCKED_IO'.
54969
54970 2004-10-04  Simon Josefsson  <jas@extundo.com>
54971
54972         * config/srclist.txt: Add memmem from glibc.
54973
54974 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54975
54976         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
54977
54978         * modules/argmatch, modules/argp, modules/closeout, modules/error,
54979         modules/exclude, modules/getdate, modules/getline,
54980         modules/getndelim2, modules/getpass, modules/getpass-gnu,
54981         modules/getusershell, modules/linebuffer, modules/md5,
54982         modules/mountlist, modules/posixtm, modules/readtokens,
54983         modules/readutmp, modules/regex, modules/sha1,
54984         modules/version-etc, modules/yesno:
54985         Remove dependency on unlocked-io.
54986
54987 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54988
54989         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
54990
54991         * m4/unlocked-io.m4: Add copyright notice.
54992         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
54993
54994 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
54995
54996         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
54997         * lib/xmalloc.c (xmemdup): Likewise.
54998         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
54999         XFREE): Remove these long-obsolescent macros.
55000         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
55001         * lib/xstrdup.c: Remove.
55002
55003         * lib/regex.c (re_comp): Cast gettext return value to char *,
55004         Problem reported by Martin Neitzel via Mark D. Baushke.
55005
55006 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
55007
55008         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
55009         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
55010         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
55011         regex.c, sha1.c, version-etc.c, yesno.c:
55012         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
55013         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
55014         the includer's responsibility.
55015
55016         Sync from coreutils.
55017
55018         * lib/modechange.c (mode_compile): Don't decrement a pointer that
55019         points to the start of a string, as the C Standard says the
55020         resulting behavior is undefined.
55021
55022         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
55023         simple -> simple_backups, numbered_existing ->
55024         numbered_existing_backups, numbered -> numbered_backups
55025         to avoid shadowing problems.  All uses changed.
55026         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
55027         * lib/backupfile.c (check_extension, numbered_backup):
55028         Rename locals to avoid shadowing 'basename'.
55029         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
55030         once.
55031
55032         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
55033         * lib/.cvsignore: Add getopt.h.
55034
55035 2004-10-04  Bruno Haible  <bruno@clisp.org>
55036
55037         * modules/README: New file.
55038         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
55039         not a module.
55040
55041 2004-10-02  Jim Meyering  <jim@meyering.net>
55042
55043         * lib/dirfd.h, getpagesize.h: Add copyright notice.
55044
55045 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55046
55047         * modules/strsep: New file.
55048
55049 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55050
55051         * m4/strsep.m4: New file.
55052
55053 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55054
55055         * lib/strsep.h: New file.
55056         * lib/strsep.c: New file.
55057
55058 2004-10-01  Simon Josefsson  <jas@extundo.com>
55059
55060         * lib/snprintf.c (snprintf): Handle size==0.
55061
55062 2004-10-01  Simon Josefsson  <jas@extundo.com>
55063             Bruno Haible  <bruno@clisp.org>
55064
55065         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
55066         (snprintf): Declare 'args'.
55067
55068 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
55069
55070         * lib/snprintf.c: Remove comments as to why each header is needed.
55071
55072 2004-10-01  Bruno Haible  <bruno@clisp.org>
55073
55074         * MODULES.html.sh: Add strsep.
55075
55076 2004-09-30  Simon Josefsson  <jas@extundo.com>
55077
55078         * modules/snprintf: New file.
55079
55080 2004-09-30  Simon Josefsson  <jas@extundo.com>
55081
55082         * m4/snprintf.m4: New file.
55083
55084 2004-09-30  Simon Josefsson  <jas@extundo.com>
55085
55086         * lib/snprintf.h, lib/snprintf.c: New files.
55087
55088 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
55089
55090         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
55091         (hol_entry_help): Never translate an empty string.
55092         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
55093         * lib/argp.h (OPTION_NO_TRANS): New option.
55094
55095 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
55096
55097         * modules/argp (Maintainer): Replace Simon Josefsson
55098         by Sergey Poznyakoff.
55099
55100 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
55101
55102         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
55103         changes merged back into glibc.
55104
55105 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
55106
55107         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
55108
55109 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
55110
55111         * lib/xvasprintf.c: Include xalloc.h.
55112         (xvasprintf): Use xalloc_die, not xmalloc_die.
55113
55114 2004-09-29  Bruno Haible  <bruno@clisp.org>
55115
55116         * modules/alloca-opt: New file, derived from modules/alloca.
55117         * modules/allocsa: Depend on alloca-opt instead of alloca.
55118         * modules/setenv: Likewise.
55119         * modules/vasnprintf: Likewise.
55120         * MODULES.html.sh: Add alloca-opt.
55121
55122 2004-09-28  Simon Josefsson  <jas@extundo.com>
55123
55124         * gnulib-tool: New parameter --lgpl, to asseert that modules are
55125         LGPL, and to replace license template from GPL to LGPL.
55126
55127 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
55128
55129         * modules/dummy: Change license to LGPL.
55130
55131 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
55132
55133         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
55134
55135 2004-09-24  Simon Josefsson  <jas@extundo.com>
55136
55137         * modules/minmax (License): Change from GPL to LGPL.
55138
55139 2004-09-23  Simon Josefsson  <jas@extundo.com>
55140
55141         * gnulib-tool (--import): Typo.
55142
55143 2004-09-23  Simon Josefsson  <jas@extundo.com>
55144
55145         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
55146
55147 2004-09-22  Bruno Haible  <bruno@clisp.org>
55148
55149         * modules/*: Add 'License' field.
55150         * gnulib-tool: Accept --extract-license option.
55151         (func_get_license): New function.
55152
55153 2004-09-21  Bruno Haible  <bruno@clisp.org>
55154
55155         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
55156         Reported by Simon Josefsson.
55157
55158 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
55159
55160         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
55161         gl_AC_TYPE_LONG_LONG.
55162
55163 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
55164
55165         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
55166
55167 2004-09-18  Simon Josefsson  <jas@extundo.com>
55168         and  Paul Eggert  <eggert@cs.ucla.edu>
55169
55170         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
55171         calls with autoreconf.  Define GL_LIB.
55172
55173 2004-09-14  Karl Berry  <karl@gnu.org>
55174
55175         * config/srclist.txt: unsync setenv.c, sigh.
55176
55177 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
55178
55179         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
55180         Problem reported by Bruno Haible in:
55181         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
55182
55183 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
55184
55185         * config/srclist.txt: Comment out argp-pvh.c.
55186
55187 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
55188
55189         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
55190         in case some system header has #define'd it.  Problem reported by
55191         Soeren D. Schulze in
55192         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
55193
55194 2004-09-09  Karl Berry  <karl@gnu.org>
55195
55196         * regex.[ch]: delete from the root.  These were supposed to be
55197                 synced with emacs cvs, but this has not happened for about
55198                 a year, and anyway nothing else uses emacs regex.[ch].
55199                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
55200                 lib/regex[.ch] is untouched.
55201
55202 2004-09-09  Bruno Haible  <bruno@clisp.org>
55203
55204         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
55205
55206 2004-09-09  Bruno Haible  <bruno@clisp.org>
55207
55208         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
55209         modifications.
55210         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
55211
55212 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
55213
55214         * modules/xvasprintf: New file.
55215         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
55216
55217 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
55218
55219         * lib/xvasprintf.h: New file.
55220         * lib/xvasprintf.c: New file.
55221         * lib/xasprintf.c: New file.
55222
55223 2004-09-08  Bruno Haible  <bruno@clisp.org>
55224
55225         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
55226
55227 2004-09-08  Bruno Haible  <bruno@clisp.org>
55228
55229         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
55230         length is > INT_MAX.
55231         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
55232         more.
55233
55234 2004-09-08  Bruno Haible  <bruno@clisp.org>
55235
55236         * lib/stdint_.h: New file, taken from GNU clisp.
55237
55238 2004-09-08  Bruno Haible  <bruno@clisp.org>
55239             Oskar Liljeblad  <oskar@osk.mine.nu>
55240
55241         * modules/stdint: New file.
55242         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
55243
55244 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55245
55246         Import from coreutils.
55247         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
55248         strings on unbounded length.  alloca's performance benefits aren't
55249         that important here.
55250         (V_STRDUP): Remove.
55251         (parse_with_separator): New function, with most of the internals
55252         of the old parse_user_spec.  Allow user to omit both user and group,
55253         for compatibility with FreeBSD.
55254         Clone only the user name, not the entire spec.
55255         Do not set *uid, *gid unless entirely successful.
55256         Avoid memory leak in some failing cases.
55257         Fix regression for USER.GROUP reported by Dmitry V. Levin in
55258         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
55259         (parse_user_spec): Rewrite to use parse_with_separator.
55260
55261 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55262
55263         * modules/userspec: Don't depend on alloca.
55264
55265 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55266
55267         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
55268
55269 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
55270
55271         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
55272         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
55273         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
55274
55275 2004-08-16  Simon Josefsson  <jas@extundo.com>
55276
55277         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
55278         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
55279         Add --dry-run for --import.
55280         Let user provided command line parameters override configure.ac
55281         settings.
55282
55283 2004-08-12  Simon Josefsson  <jas@extundo.com>
55284
55285         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
55286         as discussed with Paul Eggert in threads rooted at
55287         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
55288         and
55289         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
55290         Before, the test was empty, and relied on ELIDE_CODE in source
55291         code.)
55292         (gl_PREREQ_GETOPT): New macro.
55293         (gl_GETOPT): Use them.
55294
55295 2004-08-12  Simon Josefsson  <jas@extundo.com>
55296
55297         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
55298         * lib/getopt_.h: Renamed from getopt.h.
55299
55300 2004-08-12  Simon Josefsson  <jas@extundo.com>
55301
55302         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
55303         Change default library name from libfoo to libgnu.
55304         Now, if you have a configure.ac that says:
55305                 gl_SOURCE_BASE(gl)
55306                 gl_M4_BASE(gl/m4)
55307                 gl_MODULES(error getopt etcetera)
55308                 gl_INIT
55309         you can import all you need by running:
55310                 ../gnulib/gnulib-tool --import
55311
55312         * modules/getopt (Files): Rename getopt.h to getopt_.h.
55313         (Makefile.am): Rewrite, use logic from argz.
55314         (Include): Use <getopt.h> instead of "getopt.h".
55315
55316 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
55317
55318         * modules/argp (Files): Add m4/unlocked-io.m4.
55319         (Depends-on): Add extensions.
55320
55321 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
55322
55323         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
55324         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
55325         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
55326         Check for program_invocation_name, program_invocation_short_name,
55327         flockfile, funlockfile, features.h, _getopt_long_only_r.
55328
55329 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
55330
55331         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
55332         its complicated substitute.
55333         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
55334         and program_invocation_name.
55335         (__argp_basename) [!_LIBC]: Remove; the only use was
55336         replaced by its body.
55337         (__argp_short_program_name): Change condition from
55338         !defined __argp_short_program_name to
55339         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
55340         to match argp-namefrob.h.
55341         (__argp_failure): Don't assume strerror_r returns char *.
55342         * lib/argp-parse.c (N_): Define unconditionally.
55343         (argp_default_options): Fill out initializers with 0 to avoid
55344         gcc warnings.
55345
55346 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
55347
55348         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
55349         getopt1.c.
55350
55351 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
55352
55353         Merge from coreutils.
55354
55355         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
55356
55357         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
55358         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
55359
55360 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
55361
55362         Merge from coreutils.
55363
55364         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
55365         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
55366         for Reliant Unix 5.43.
55367
55368         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
55369         (union fooround): Use uintmax_t, not long int.
55370         The rest is a merge from libc:
55371         [defined _LIBC]: Include <shlib-compat.h>.
55372         (_obstack) [defined _LIBC]: Remove after 2.3.4.
55373
55374         * lib/settime.c (settime): Recode to avoid warning with
55375         Sun Forte C 6U2.
55376
55377         * lib/strverscmp.c: Convert to UTF-8.
55378
55379 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
55380
55381         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
55382         m4/uintmax_t.m4.
55383
55384 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55385
55386         * modules/xalloc-die: New file.
55387         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
55388
55389         * modules/md5 (Files): Add m4/uint32_t.m4.
55390         * modules/sha1: Renamed from modules/sha.
55391         (Files):
55392         Rename lib/sha.h to lib/sha1.h.
55393         Rename lib/sha.c to lib/sha1.c.
55394         Rename m4/sha.m4 to m4/sha1.m4.
55395         (lib_SOURCES): Likewise.
55396         (configure.ac): Rename gl_SHA to gl_SHA1.
55397         (Include): sha.h -> sha1.h.
55398
55399 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55400
55401         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
55402         * m4/sha1.m4: Renamed from sha.m4.
55403         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
55404
55405 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55406
55407         * lib/obstack.h (obstack_empty_p):
55408         Don't assume that chunk->contents is suitably aligned.
55409         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
55410         Likewise. Problem reported by Benno in
55411         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
55412
55413         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
55414         readable.  This could be improved further but it'd take some work.
55415
55416 2004-08-08  Simon Josefsson  <jas@extundo.com>
55417
55418         * modules/xgethostname (Depends-on): Remove exit and error (not
55419         used).
55420
55421         * modules/getpass-gnu: Add getpass.h.
55422         (Depends-on): Add stdbool.
55423         * modules/getpass: Add getpass.h.
55424
55425 2004-08-08  Simon Josefsson  <jas@extundo.com>
55426
55427         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
55428         Check getpass declaration.
55429
55430 2004-08-08  Simon Josefsson  <jas@extundo.com>
55431
55432         * lib/xgethostname.c: Don't include error.h (not used).
55433
55434         * lib/getpass.h: Add.
55435         * lib/getpass.c: Include getpass.h first.
55436
55437 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
55438
55439         * lib/xalloc-die.c: New file.
55440         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
55441         All uses removed.
55442         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
55443         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
55444         xalloc-die.c.
55445         (_, N_, xalloc_die): Move to xalloc-die.c.
55446         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
55447         so that we needn't mess with xalloc_msg_memory_exhausted.
55448
55449         * lib/sha1.h: Renamed from sha.h.
55450         (SHA1_H): Renamed from _SHA_H.
55451         (sha1_ctx): Renamed from sha_ctx.
55452         (sha1_init_ctx): Renamed from sha_init_ctx.
55453         (sha1_process_block): Renamed from sha_process_block.
55454         (sha1_process_bytes): Renamed from sha_process_bytes.
55455         (sha1_finish_ctx): Renamed from sha_finish_ctx.
55456         (sha1_read_ctx): Renamed from sha_read_ctx.
55457         (sha1_stream): Renamed from sha_stream.
55458         (sha1_buffer): Renamed from sha_buffer.
55459         * lib/sha1.c: Likewise; renamed from sha.c.
55460         Do not include <sys/types.h>.
55461         Include <stddef.h> rather than <stdlib.h>.
55462
55463 2004-08-08  Bruno Haible  <bruno@clisp.org>
55464
55465         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
55466         FILESYSTEM_PREFIX_LEN.
55467         * lib/progreloc.c: Likewise.
55468         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
55469
55470 2004-08-06  Simon Josefsson  <jas@extundo.com>
55471
55472         * modules/progname (Depends-on): Don't depend on stdbool.
55473
55474 2004-08-06  Simon Josefsson  <jas@extundo.com>
55475
55476         * modules/getsubopt: New file.
55477         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55478         getsubopt.
55479
55480 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
55481
55482         More merge from coreutils.
55483
55484         * m4/utimens.m4, m4/utimecmp.m4: New files.
55485         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
55486         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
55487         prereq.m4, sha.m4: Import changes from coreutils.
55488
55489 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
55490
55491         More merge from coreutils.
55492         * modules/raise, modules/readtokens0, modules/utimens:
55493         * modules/utimecmp, module/xnanosleep: New files.
55494         * modules/strftime: Add lib/strftime.h.
55495         Change include from <time.h> to "strftime.h".
55496         * modules/yesno: Add lib/yesno.h.
55497         * modules/backupfile: Remove lib/addext.c.
55498         * modules/euidaccess: Add stat-macros.h.
55499         * modules/canonicalize, modules/euidaccess,
55500         modules/filemode, modules/lchown, modules/makepath,
55501         modules/rmdir, modules/stat: Likewise.
55502
55503 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
55504
55505         Merge from tar.
55506         * lib/argp-help.c (make_hol, hol_append): Don't assume that
55507         SIZE_MAX is a valid preprocessor constant.
55508         (__argp_basename): Change from "#ifndef _LIBC"
55509         to "#ifndef __argp_short_program_name", so that
55510         we don't compile these functions for tar.
55511
55512         More merges from coreutils.
55513         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
55514         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
55515         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
55516         * lib/addext.c: Remove; no longer needed.
55517         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
55518         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
55519         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
55520         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
55521         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
55522         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
55523         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
55524         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
55525         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
55526         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
55527         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
55528         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
55529         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
55530         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
55531         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
55532         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
55533         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
55534         Import changes from coreutils.
55535
55536 2004-08-05  Simon Josefsson  <jas@extundo.com>
55537
55538         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
55539
55540 2004-08-05  Simon Josefsson  <jas@extundo.com>
55541
55542         * m4/getsubopt.m4: New file.
55543
55544 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
55545
55546         Merge from coreutils.
55547
55548         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
55549         * m4/getcwd-path-max.m4: New files.
55550
55551         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
55552         FILESYSTEM_PREFIX_LEN ->
55553         FILE_SYSTEM_PREFIX_LEN.
55554         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
55555         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
55556         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
55557         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
55558
55559         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
55560         prerequisite modules now handle the DOS stuff.
55561         Don't check for unistd.h.
55562
55563 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
55564
55565         Merge from coreutils.
55566
55567         * lib/.gdb-history: Remove; this doesn't belong here.
55568
55569         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
55570         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
55571         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
55572         * lib/getcwd.c: New files.
55573
55574         * lib/dirname.h: Include <stdbool.h>.
55575         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
55576         for consistency with POSIX terminology.  All uses changed.
55577         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
55578         (strip_trailing_slashes): Use bool for booleans.
55579         * lib/stripslash.c (strip_trailing_slashes): Likewise.
55580
55581         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
55582         sometimes returns a positive errno value even when it succeeds.
55583         (print_errno_message) [!LIBC]: Fall back on strerror if
55584         __strerror_r fails.
55585
55586         * lib/path-concat.c (mempcpy): Don't define if a system header defines
55587         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
55588         (longest_relative_suffix): New function.
55589         (path_concat): Use it.  Assume first argument is not NULL.
55590         Port to DOS.  Omit redundant separators.
55591         Report an error instead of returning NULL.
55592         Use mempcpy instead of memcpy.
55593         (xpath_concat): Remove: not declared or used.
55594
55595         * lib/same.h: Include <stdbool.h>
55596         (same_name): Return bool, not int.
55597         * lib/same.c (same_name): Likewise.
55598         (errno): Don't declare; we assume C89 or better now.
55599
55600         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
55601         if not already defined.
55602
55603         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
55604         * lib/dup-safer.c (errno): Likewise.
55605
55606 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
55607
55608         Merge from coreutils.
55609         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
55610         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
55611         * modules/path-concat: Don't depend on strdup.
55612
55613 2004-08-03  Simon Josefsson  <jas@extundo.com>
55614
55615         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
55616         * lib/progname.h: Don't include stdbool.h.
55617
55618 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
55619
55620         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
55621         * MODULES.html.sh (func_all_modules): Remove fatal.
55622
55623 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
55624
55625         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
55626
55627 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
55628
55629         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
55630         working.
55631
55632 2004-08-02  Simon Josefsson  <jas@extundo.com>
55633
55634         * lib/getsubopt.h: New file, with comments from Bruno Haible.
55635         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
55636         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
55637
55638 2004-08-01  Simon Josefsson  <jas@extundo.com>
55639
55640         * lib/xgetdomainname.c: Include stdlib.h, for free().
55641
55642 2004-07-19  Bruno Haible  <bruno@clisp.org>
55643
55644         * MODULES.html.sh (func_all_modules): Add dummy.
55645
55646 2004-07-16  Simon Josefsson  <jas@extundo.com>
55647
55648         * modules/dummy: New file.
55649
55650 2004-07-16  Simon Josefsson  <jas@extundo.com>
55651
55652         * lib/dummy.c: New file.
55653
55654 2004-07-16  Bruno Haible  <bruno@clisp.org>
55655
55656         * lib/backupfile.h: Add extern "C" for C++.
55657         * lib/closeout.h: Likewise.
55658         * lib/copy-file.h: Likewise.
55659         * lib/findprog.h: Likewise.
55660         * lib/full-write.h: Likewise.
55661         * lib/pathname.h: Likewise.
55662         * lib/progname.h: Likewise.
55663         * lib/stpcpy.h: Likewise.
55664         * lib/stpncpy.h: Likewise.
55665         * lib/strcase.h: Likewise.
55666         * lib/strstr.h: Likewise.
55667         * lib/xalloc.h: Likewise.
55668
55669         * lib/mbswidth.h: Add extern "C" for C++.
55670         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
55671
55672 2004-07-13  Robert Millan  <robertmh@gnu.org>
55673
55674         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
55675
55676 2004-07-09  Simon Josefsson  <jas@extundo.com>
55677
55678         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
55679         failed without this.)
55680
55681 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55682
55683         * modules/chown (Files): Add lib/fchown-stub.c, since
55684         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
55685
55686 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55687
55688         * lib/fchown-stub.c: New file.
55689
55690 2004-06-24  Jim Meyering  <jim@meyering.net>
55691
55692         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
55693
55694 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55695
55696         * modules/argz: Omit "#include".
55697
55698         * MODULES.html.sh (func_all_modules): Add calloc, to match
55699         2004-06-01 addition of calloc module.
55700
55701 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55702
55703         * m4/argz.m4: New file, which is autoupdated from libtool.
55704
55705 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55706
55707         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
55708         libtool.
55709
55710 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55711
55712         * config/srclist-update: Don't insist on "USA." before the
55713         close-comment, as libtool omits the period and puts the */ on a
55714         separate line.
55715         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
55716         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
55717
55718 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
55719
55720         * modules/argz: New file.
55721         * MODULES.html.sh (func_all_modules): Add argz.
55722
55723 2004-06-12  Jim Meyering  <jim@meyering.net>
55724         and  Paul Eggert  <eggert@cs.ucla.edu>
55725
55726         * modules/hash (Files): Add lib/xalloc.h.
55727         * modules/pipe (Depends-on): Add wait-process.
55728         * modules/stat (Depends-on): Add xalloc.
55729         * modules/userspec (Files): Add lib/userspec.h.
55730         * modules/xstrto
55731
55732         Upgrade from gettext-0.13.
55733         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
55734         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
55735         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
55736
55737 2004-06-10  Jim Meyering  <jim@meyering.net>
55738
55739         * lib/calloc.c: New file.
55740
55741 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
55742
55743         * lib/getdate.y (yylex): Allow space between sign and number.
55744         Problem reported by Dan Jacobson.
55745
55746 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
55747
55748         Merge from coreutils CVS.
55749
55750         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
55751         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
55752         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
55753         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
55754         xstrtol.m4: Fix copyright date and/or serial number.
55755
55756         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
55757         See if we need an fchown replacement.
55758         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
55759         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
55760         and use the replacement function if we detect either defect.
55761
55762         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
55763         gl_UTIMECMP.
55764
55765 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
55766         and  Jim Meyering  <jim@meyering.net>
55767
55768         Merge from coreutils CVS.
55769
55770         * lib/stat-macros.h: New file, with contents from file-type.h
55771         and coreutils' system.h.
55772         * lib/file-type.c: Include "stat-macros.h".
55773         * lib/file-type.h (file_type): Move all macro definitions to new file,
55774         stat-macros.h.
55775
55776         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
55777         Wrap old code with this conditional.
55778         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
55779         function that does not dereference symlinks.
55780         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
55781
55782         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
55783         dependency problems.
55784         (xreadlink): Accept new arg SIZE, for efficiency.
55785         All decls and uses changed.
55786         * lib/xreadlink.h: Include <stddef.h>, for size_t.
55787
55788         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
55789         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
55790
55791         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
55792         sysexits.h.
55793
55794 2004-06-01  Jim Meyering  <jim@meyering.net>
55795
55796         * m4/calloc.m4: New file.
55797
55798 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
55799
55800         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
55801         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
55802         Also, fix a typo in a diagnostic.
55803
55804 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
55805
55806         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
55807         or AC_FUNC_REALLOC.
55808
55809 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
55810
55811         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
55812         macros to be defined.
55813         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
55814         the allocator returns NULL because the requested size is zero.
55815
55816 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
55817
55818         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
55819         var.  Add comment explaining why libc still defines it.  This
55820         merges the following patch from glibc:
55821         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
55822
55823 2004-05-20  Andreas Schwab  <schwab@suse.de>
55824
55825         * m4/free.m4: Replace free if it not known to work, not the other
55826         way round.
55827
55828 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
55829
55830         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
55831         present in glibc since revision 1.1 of this file.
55832         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
55833         obstack_alignment_mask, obstack_alloc, obstack_base,
55834         obstack_blank, obstack_blank_fast, obstack_chunk_size,
55835         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
55836         obstack_grow0, obstack_init, obstack_int_grow,
55837         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
55838         obstack_next_free, obstack_object_size, obstack_ptr_grow,
55839         obstack_ptr_grow_fast, obstack_room): Remove declarations of
55840         nonexistent functions.
55841
55842 2004-05-18  Karl Berry  <karl@gnu.org>
55843
55844         * config/srclist.txt: break link for vasnprintf.c.
55845
55846 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
55847
55848         Port obstack to the AS/400, where pointers are 16 bytes wide and
55849         you cannot cast an integer to a valid pointer.  This patch is
55850         currently waiting to be integrated into glibc; see
55851         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
55852
55853         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
55854         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
55855         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
55856         (struct obstack): temp member is now a union of a pointer and
55857         an integer, instead of an integer.  All integer uses changed.
55858         This does not affect the physical layout of struct obstack,
55859         except on hosts (like the AS/400) where the size or alignment of
55860         void * is greater than that of ptrdiff_t.
55861         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
55862         __STDC__)]: Store temporary in pointer member of union, not
55863         integer member.
55864         * lib/obstack.c: Include <stddef.h>, for offsetof.
55865         (struct fooalign): Remove; it doesn't need a name.
55866         (union fooround): Change double to long double, and add void *.
55867         (DEFAULT_ALIGNMENT): Use offsetof to compute.
55868         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
55869         not a macro.  Hence the values are always int; so remove all
55870         casts-to-int in uses.
55871
55872 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
55873
55874         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
55875         we can get this patch merged into glibc.
55876
55877 2004-05-17  Derek R. Price  <derek@ximbiot.com>
55878             Paul Eggert  <eggert@cs.ucla.edu>
55879
55880         * m4/argp: Depend on alloca.
55881
55882 2004-05-17  Derek R. Price  <derek@ximbiot.com>
55883             Paul Eggert  <eggert@cs.ucla.edu>
55884
55885         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
55886         freecoding.
55887
55888 2004-05-17  Bruno Haible  <bruno@clisp.org>
55889
55890         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
55891         precision that consists of a '.' followed by an empty digit string.
55892         Patch by Tor Lillqvist <tml@iki.fi>.
55893
55894 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55895
55896         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
55897         for backward compatibility with older code.  We need our own
55898         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
55899         it under some other name, and our alloca.h will define it.
55900
55901 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55902             Derek Price  <derek@ximbiot.com>
55903
55904         * lib/alloca.c: Include <alloca.h>, to get our interface.
55905         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
55906         include <alloca.h> first.  Use C89 prototype for alloca; this
55907         requires including <stddef.h> for size_t.  Use extern "C" if C++.
55908         Use #elif for simplicity, since we can assume C89 now.
55909         Don't try to source the system alloca.h since it will not be found
55910         and to prevent recursively including its replacement.
55911         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
55912         * lib/regex.c: Likewise.
55913
55914 2004-05-16  Derek Price  <derek@ximbiot.com>
55915             Paul Eggert  <eggert@cs.ucla.edu>
55916
55917         getline cleanup.  This changes the getndelim2 API: both order of
55918         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
55919         no delimiter).
55920
55921         * lib/getline.c: Don't include stddef.h or stdio.h, since our
55922         interface does that.
55923         (getline): Always use getdelim, so that we don't have two
55924         copies of this code.
55925         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
55926         if available.
55927         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
55928         (GETNDELIM2_MAXIMUM): New macro.
55929         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
55930         instead of the old practice of delim2==0.  All callers changed.
55931         Return -1 on overflow, instead of returning junk.
55932         Do not set *linesize unless allocation succeeds.
55933         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
55934         that we include sys/types.h.
55935         * lib/getnline.h: Likewise.
55936         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
55937         (getndelim2): Reorder arguments.
55938         * lib/getnline.c (getnline, getndelim):
55939         Don't discard the NMAX argument.
55940         (getnline): Invoke getndelim, to avoid code duplication.
55941         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
55942         of (size_t) -1 by callers of the getnline family.
55943
55944 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55945
55946         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
55947         Check for gettimeofday.
55948         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
55949         Check for settimeofday, stime.
55950
55951 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55952
55953         * lib/nanosleep.c (suspended): Change its type from int to
55954         sig_atomic_t volatile.
55955         (first_call): Make it private to rpl_nanosleep, and have it
55956         be zero initially as that's a bit faster.
55957         (my_usleep): Round up fractional times instead of truncating them,
55958         as this is the usual meaning for 'sleep'.
55959
55960         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
55961         doesn't work.
55962         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
55963         (ENOSYS): Define if not defined.
55964         (settime): Fall back on stime if it exists and settimeofday fails.
55965         But don't bother with fallbacks if a method fails with errno == EPERM.
55966
55967 2004-05-11  Jim Meyering  <jim@meyering.net>
55968
55969         Prior to this change, the save_cwd caller required read access to the
55970         current directory on most systems (ones with the fchdir function).
55971
55972         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
55973         fails, try write-only, and finally, resort to using xgetcwd.
55974
55975 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
55976
55977         * lib/obstack.c, obstack.h: Import changes from libc.
55978
55979 2004-04-28  Bruno Haible  <bruno@clisp.org>
55980
55981         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
55982         also implicitly appends .exe to executables.
55983         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
55984         accepts Windows pathnames.
55985         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
55986         Treat Cygwin like Windows, since it now accepts Windows pathnames.
55987         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
55988         Treat Cygwin like Windows, since it now accepts Windows pathnames.
55989         Reported by Derek Robert Price <derek@ximbiot.com>.
55990
55991 2004-04-21  Karl Berry  <karl@gnu.org>
55992
55993         * config/srclist.txt (localcharset.c): break sync.
55994
55995 2004-04-20  Paul Eggert  <eggert@twinsun.com>
55996
55997         * m4/host-os.m4: Add a copyright notice.
55998
55999 2004-04-20  Jim Meyering  <jim@meyering.net>
56000
56001         Change UTILS_ to gl_ in AC_DEFINE'd names.
56002         Change utils_- and jm_-prefixed variables, too.
56003         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
56004         UTILS_FUNC_MKDIR_TRAILING_SLASH.
56005         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
56006
56007         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
56008         Don't emit trailing blanks.
56009         Also rename jm_-prefixed variables to have gl_ prefix.
56010
56011         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
56012         Also rename jm_-prefixed variables to have gl_ prefix.
56013
56014         * m4/jm-macros.m4: Reflect the renamings.
56015         * m4/prereq.m4: Likewise.
56016
56017 2004-04-20  Jim Meyering  <jim@meyering.net>
56018
56019         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
56020         memory.
56021
56022 2004-04-20  Jim Meyering  <jim@meyering.net>
56023             Bruno Haible  <bruno@clisp.org>
56024
56025         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
56026         memory when realloc fails.
56027
56028 2004-04-19  Jim Meyering  <jim@meyering.net>
56029
56030         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
56031         now that readutmp.c may call `free (0)'.
56032
56033 2004-04-19  Bruno Haible  <bruno@clisp.org>
56034
56035         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
56036         * m4/inttypes_h.m4: Likewise.
56037         * m4/stdint_h.m4: Likewise.
56038         * m4/intmax_t.m4: Likewise.
56039         * m4/uintmax_t.m4: Likewise.
56040
56041 2004-04-18  Jim Meyering  <jim@meyering.net>
56042
56043         * m4/prereq.m4: Don't forbid jm_ prefix.
56044
56045         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
56046         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
56047         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
56048         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
56049         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
56050         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
56051         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
56052         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
56053         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
56054         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
56055         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
56056         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
56057         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
56058         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
56059         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
56060         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
56061         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
56062         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
56063         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
56064
56065 2004-04-18  Jim Meyering  <jim@meyering.net>
56066
56067         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
56068         failure, don't leak memory and do call END_UTMP_ENT.
56069
56070 2004-04-16  Jim Meyering  <jim@meyering.net>
56071
56072         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
56073         coreutils' stat program.
56074         (gl_PREREQ): Don't require jm_PREREQ_STAT.
56075
56076 2004-04-11  Paul Eggert  <eggert@twinsun.com>
56077
56078         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
56079         C89.
56080         (CHAR_BIT): Remove, since we assume C89.
56081         Include <stdint.h> if available, as per current Autoconf CVS advice.
56082
56083 2004-03-31  Jim Meyering  <jim@meyering.net>
56084
56085         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
56086         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
56087         * m4/xalloc.m4: Likewise.
56088
56089 2004-03-30  Paul Eggert  <eggert@twinsun.com>
56090
56091         Merge from coreutils.
56092
56093         * m4/inttostr.m4: New file.
56094         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
56095         Require AM_STDBOOL_H and gl_TIMESPEC instead.
56096         Require gl_CLOCK_TIME.
56097         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
56098
56099 2004-03-30  Paul Eggert  <eggert@twinsun.com>
56100
56101         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
56102         not bool, to be more consistent with Unix conventions.
56103         Suggested by Bruno Haible.
56104
56105         Merge from coreutils.
56106
56107         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
56108         * lib/umaxtostr.c: New files.
56109
56110         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
56111         the usual <time.h> dance.
56112         (get_date): Change signature to support fractional time stamps.
56113         All callers changed.
56114         * lib/getdate.y: Include "getdate.h" first, as we can now
56115         assume C89 and don't need to worry about 'const'.
56116         Similarly, include "unlocked-io.h" near start, not in middle.
56117         Include <limits.h>.
56118         (textint.value): Use long int rather than int.
56119         (textint.digits): Use size_t rather than int.
56120         (BILLION, LOG10_BILLION): New constants.
56121         (parser_control): New member rel_ns.  Members day_ordinal,
56122         time_zone, month, day, hour, minutes, rel_year, rel_month,
56123         rel_day, rel_hour, rel_minutes, rel_seconds
56124         are now long int, not int.  Member seconds is now struct timespec,
56125         not int.  New member timespec_seen.  Members dates_seen, days_seen,
56126         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
56127         not int.
56128         (%union.intval): Now long int, not int.
56129         New member timespec.
56130         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
56131         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
56132         (spec): Now is a timespec or an item list.
56133         (timespec, items): New nonterminals.
56134         (time, rel, relunit, number, get_date):
56135         Add support for fractional seconds.
56136         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
56137         (gmtime, localtime, mktime): Remove decls; not needed with C89.
56138         (to_hour): First arg is now long int, not int.
56139         (to_year): Returns long int, not int.
56140         Don't treat year -70 like 70.
56141         (tm_diff): Returns long int, not int.
56142         (lookup_word): Use bool instead of int when appropriate.
56143         (yylex): Use size_t for count, not int.
56144         Detect overflow when parsing large integer constants.
56145         Add support for fractions.
56146         (get_date): Make pointers 'const' if possible.
56147         Use more-portable code to detect integer overflow.
56148         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
56149         Don't use ctime; it's not reliable if the year has >4 digits.
56150
56151         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
56152         This is for compatibility with BSD.
56153
56154         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
56155         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
56156         From coreutils' system.h.
56157
56158         * lib/userspec.c: Don't include "posixver.h".
56159         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
56160         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
56161         compatible extension.  Simplify code by removing a boolean int
56162         that was always nonzero if a string was nonnull.
56163
56164 2004-03-30  Jim Meyering  <jim@meyering.net>
56165
56166         Merge from coreutils.
56167
56168         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
56169         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
56170         on some systems one must include <grp.h> before it.
56171         Reported by Christian Krackowizer.
56172
56173 2004-03-30  Jim Meyering  <jim@meyering.net>
56174
56175         Merge from coreutils.
56176
56177         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
56178
56179         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
56180         an empty input stream.
56181
56182         * lib/readtokens.c: Include <stdbool.h>.
56183         (readtoken): Use `size_t' rather than int/long.
56184         All callers adjusted.
56185         Use `bool' rather than `int' where appropriate.
56186         Use memset rather than an explicit loop.
56187         Use x2nrealloc rather than xrealloc.
56188         Allow the use of `\0' as a delimiter.
56189         (readtokens): Likewise.
56190         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
56191
56192 2004-03-30  Jim Meyering  <jim@meyering.net>
56193
56194         * m4/realloc.m4: Remove file, since now it does no more than
56195         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
56196         the `configure.ac' section of module/realloc.
56197         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
56198
56199 2004-03-30  Bruno Haible  <bruno@clisp.org>
56200
56201         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
56202         nonnull.
56203
56204 2004-03-29  Paul Eggert  <eggert@twinsun.com>
56205
56206         Merge changes to getloadavg.c from coreutils and Emacs.
56207
56208         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
56209         Define to an expression, not to the empty string.
56210         Include cloexec.h and xalloc.h.
56211         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
56212         Use set_cloexec_flag rather than rolling our own.
56213         * lib/cloexec.c, lib/cloexec.h: New files.
56214
56215 2004-03-29  Paul Eggert  <eggert@twinsun.com>
56216
56217         * m4/cloexec.m4: New file.
56218
56219 2004-03-18  Paul Eggert  <eggert@twinsun.com>
56220
56221         * lib/getopt.h: Sync with libc CVS.
56222
56223 2004-03-18  Paul Eggert  <eggert@twinsun.com>
56224             Bruno Haible  <bruno@clisp.org>
56225
56226         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
56227         mbswidth.
56228
56229 2004-03-18  Paul Eggert  <eggert@twinsun.com>
56230             Bruno Haible  <bruno@clisp.org>
56231
56232         * lib/mbswidth.h: Include <wchar.h> only if
56233         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
56234         <wchar.h>.
56235         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
56236
56237 2004-03-09  Paul Eggert  <eggert@twinsun.com>
56238
56239         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
56240         Sync with libc CVS.
56241         * lib/getopt_int.h: New file, also synced from libc.
56242
56243 2004-03-09  Paul Eggert  <eggert@twinsun.com>
56244
56245         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
56246         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
56247         Bring back getopt.c, getopt.h, getopt1.c.
56248
56249 2004-03-07  Paul Eggert  <eggert@twinsun.com>
56250
56251         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
56252         All uses changed.  Check for sa_sigaction member; this fixes
56253         a bug first reported by Jason Andrade in
56254         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
56255
56256 2004-03-07  Paul Eggert  <eggert@twinsun.com>
56257
56258         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
56259         '#if' expressions.  Unlike the code it replaces, it does not
56260         depend on (defined _SC_PAGESIZE).  However, it does depend on
56261         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
56262         first reported by Jason Andrade in
56263         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
56264
56265 2004-02-25  Simon Josefsson  <jas@extundo.com>
56266
56267         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
56268
56269 2004-02-25  Simon Josefsson  <jas@extundo.com>
56270
56271         * lib/strdup.h: New file.
56272         * lib/strdup.c: Include it.
56273         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
56274         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
56275
56276 2004-02-23  Karl Berry  <karl@gnu.org>
56277
56278         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
56279         (from fencepost.gnu.org:/gd/gnuorg).
56280
56281 2004-02-23  Karl Berry  <karl@gnu.org>
56282
56283         * config/srclistvars.sh (GNUORG) [karl]: redefine.
56284         * config/srclist.txt: add maintain/standards documents.
56285
56286 2004-02-18  Bruno Haible  <bruno@clisp.org>
56287
56288         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
56289         Reported by Derek Robert Price <derek@ximbiot.com>.
56290
56291 2004-02-16  Karl Berry  <karl@gnu.org>
56292
56293         * config/mkinstalldirs, install-sh: update from automake.
56294
56295 2004-02-06  Karl Berry  <karl@gnu.org>
56296
56297         * m4/po.m4: update from gettext 0.14.1.
56298
56299 2004-02-06  Karl Berry  <karl@gnu.org>
56300
56301         * lib/config.charset: update from gettext 0.14.1.
56302
56303 2004-02-05  Paul Eggert  <eggert@twinsun.com>
56304
56305         Add comments and code, prompted by suggestions from Bruno Haible
56306         for sh-quote.
56307         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
56308         describing the enum quoting_style values.
56309         * lib/quotearg.c (quotearg_alloc): New function.
56310         (quotearg_buffer_restyled): Treat lone { and } as special.
56311         Treat = as special.  Work around bug with older shells
56312         that "see" a '\' that is really the 2nd byte of a multibyte char.
56313         Quote empty string with shell_quoting_style.
56314
56315 2004-02-03  Bruno Haible  <bruno@clisp.org>
56316
56317         * m4/pipe.m4: New file, from GNU gettext.
56318
56319 2004-02-03  Bruno Haible  <bruno@clisp.org>
56320
56321         * lib/pipe.h: New file, from GNU gettext.
56322         * lib/pipe.c: New file, from GNU gettext.
56323
56324 2004-01-27  Bruno Haible  <bruno@clisp.org>
56325
56326         * m4/execute.m4: New file, from GNU gettext.
56327
56328 2004-01-27  Bruno Haible  <bruno@clisp.org>
56329
56330         * lib/execute.h: New file, from GNU gettext.
56331         * lib/execute.c: New file, from GNU gettext.
56332         * lib/w32spawn.h: New file, from GNU gettext.
56333
56334 2004-01-24  Paul Eggert  <eggert@twinsun.com>
56335
56336         Merge from diffutils.
56337
56338         * lib/file-type.c (file_type): Add typed memory objects.
56339         * lib/file-type.h (S_TYPEISTMO): New macro.
56340
56341         * lib/c-stack.h (c_stack_action): Remove argv argument.
56342         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
56343         (die): Don't calculate message unless segv_action returns.
56344         (get_stack_location, min_address_from_argv, max_address_from_argv,
56345         volatile stack_base, volatile_stack_size): Remove.
56346         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
56347         that every segmentation violation is a stack overflow.  (Ouch!)
56348         See Debian bug 136249 (still outstanding) for more info about why
56349         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
56350
56351 2004-01-24  Paul Eggert  <eggert@twinsun.com>
56352
56353         Exit-status fix from coreutils.
56354
56355         Use exit_failure consistently in place of EXIT_FAILURE,
56356         so that program exit statuses are consistent on failure.
56357
56358         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
56359         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
56360         * lib/argmatch.h: Comment fix to match the above.
56361         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
56362         Now a macro referring to exit_failure, instead of a separate
56363         variable.  Include "exitfail.h" to get it.
56364         * lib/xstrtol.h: Include "exitfail.h".
56365         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
56366
56367         * lib/long-options.c (parse_long_options): Use prototype
56368         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
56369         for clarity.
56370
56371 2004-01-21  Jim Meyering  <jim@meyering.net>
56372
56373         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
56374         so as not to conflict with a different-sized __mktime_internal
56375         function in GNU libc.
56376         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
56377         Problem building statically-linked `ls' reported by Michael Brunnbauer.
56378
56379 2004-01-20  Karl Berry  <karl@gnu.org>
56380
56381         * config/config.guess: update from config.
56382
56383         * config/srclistvars.sh: GNUWWWLICENSES for karl.
56384
56385 2004-01-20  Bruno Haible  <bruno@clisp.org>
56386
56387         Safer stack allocation.
56388         * lib/setenv.c: Include allocsa.h.
56389         (alloca): Remove fallback definition.
56390         (freea): Remove macro.
56391         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
56392         instead of freea.
56393
56394 2004-01-20  Bruno Haible  <bruno@clisp.org>
56395
56396         * m4/eealloc.m4: New file, from GNU gettext.
56397
56398 2004-01-20  Bruno Haible  <bruno@clisp.org>
56399
56400         * m4/allocsa.m4: New file, from GNU gettext.
56401
56402 2004-01-20  Bruno Haible  <bruno@clisp.org>
56403
56404         * lib/xallocsa.h: New file, from GNU gettext.
56405         * lib/xallocsa.c: New file, from GNU gettext.
56406
56407 2004-01-20  Bruno Haible  <bruno@clisp.org>
56408
56409         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
56410
56411 2004-01-20  Bruno Haible  <bruno@clisp.org>
56412
56413         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
56414         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
56415         specially.
56416
56417 2004-01-20  Bruno Haible  <bruno@clisp.org>
56418
56419         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
56420         patch.
56421
56422 2004-01-20  Bruno Haible  <bruno@clisp.org>
56423
56424         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
56425
56426 2004-01-20  Bruno Haible  <bruno@clisp.org>
56427
56428         * lib/eealloc.h: New file.
56429
56430 2004-01-20  Bruno Haible  <bruno@clisp.org>
56431
56432         * lib/binary-io.h: Avoid warnings on Cygwin.
56433
56434 2004-01-20  Bruno Haible  <bruno@clisp.org>
56435
56436         * lib/allocsa.h: New file, from GNU gettext.
56437         * lib/allocsa.c: New file, from GNU gettext.
56438
56439 2004-01-18  Karl Berry  <karl@gnu.org>
56440
56441         * doc/gpl.texi, doc/lgpl.texi: new files.
56442
56443 2004-01-18  Karl Berry  <karl@gnu.org>
56444
56445         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
56446         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
56447
56448 2004-01-15  Paul Eggert  <eggert@twinsun.com>
56449
56450         Merge from coreutils.
56451
56452         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
56453         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
56454         (gl_DEFAULT_POSIX2_VERSION): Move
56455         the documentation from 'configure' into 'config.hin',
56456         so that 'configure --help' isn't burdened by it and
56457         we don't have to worry about its formatting there.
56458         Reword the documentation so that it's more succinct
56459         and can be run together into a single paragraph.
56460         * m4/same.m4 (gl_SAME): Check for pathconf.
56461
56462 2004-01-15  Paul Eggert  <eggert@twinsun.com>
56463
56464         Merge from coreutils.
56465
56466         * lib/posixver.c: Include posixver.h.
56467
56468         * lib/same.c: Include <stdbool.h>, <limits.h>.
56469         (_POSIX_NAME_MAX): Define if not defined.
56470         (MIN): New macro.
56471         (same_name): If file names are silently truncated, report
56472         that the file names are the same if they are the same after
56473         the silent truncation.
56474
56475         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
56476         conversion function.
56477         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
56478         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
56479         longer needed.
56480
56481 2004-01-15  Jim Meyering  <jim@meyering.net>
56482
56483         Merge from coreutils.
56484
56485         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
56486         if no library is required.
56487         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
56488         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
56489         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
56490         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
56491         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
56492         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
56493         value, $ac_cv_search_crypt, if it's "none required".
56494         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
56495         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
56496         not gl_FUNC_GETLOADAVG.
56497         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
56498         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
56499
56500 2004-01-15  Jim Meyering  <jim@meyering.net>
56501
56502         Merge from coreutils.
56503
56504         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
56505         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
56506         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
56507
56508         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
56509         optional configure-time default.
56510
56511         * lib/version-etc.c (version_etc_copyright): Update copyright date.
56512
56513         * lib/xreadlink.c (xreadlink): Correct outdated comment.
56514
56515 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
56516
56517         Merge from coreutils.
56518
56519         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
56520         value, $ac_cv_search_nanosleep, if it's "none required".
56521
56522 2004-01-14  Paul Eggert  <eggert@twinsun.com>
56523
56524         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
56525         with like-named macro in fnmatch.c.
56526         (EXT): Use an internal constant instead.
56527
56528         Merge fnmatch patches from glibc.
56529         * lib/fnmatch.c (mbsinit): Remove define.
56530         Add libc_hidden_ver (__fnmatch, fnmatch).
56531         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
56532         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
56533
56534 2004-01-14  Karl Berry  <karl@gnu.org>
56535
56536         * config/install-sh: update from automake.
56537
56538 2004-01-13  Karl Berry  <karl@gnu.org>
56539
56540         * config/install-sh: update from automake.
56541
56542 2004-01-09  Karl Berry  <karl@gnu.org>
56543
56544         * config/install-sh: update from automake.
56545
56546 2004-01-05  Karl Berry  <karl@gnu.org>
56547
56548         * config/config.{sub,guess}: update from config.
56549
56550 2003-12-31  Karl Berry  <karl@gnu.org>
56551
56552         * config/depcomp: update from automake.
56553
56554 2003-12-14  Karl Berry  <karl@gnu.org>
56555
56556         * lib/config.charset: update from gettext-runtime.
56557
56558 2003-12-03  Paul Eggert  <eggert@twinsun.com>
56559
56560         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
56561         Bug reported by Alfred M. Szmidt.
56562
56563 2003-12-03  Bruno Haible  <bruno@clisp.org>
56564
56565         * m4/gettext.m4: Upgrade from gettext-0.13.
56566         * m4/po.m4: Upgrade from gettext-0.13.
56567         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
56568         * m4/intmax.m4: New file, from gettext-0.13.
56569         * m4/printf-posix.m4: New file, from gettext-0.13.
56570
56571 2003-11-29  Karl Berry  <karl@gnu.org>
56572
56573         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
56574
56575 2003-11-25  Paul Eggert  <eggert@twinsun.com>
56576             Bruno Haible  <bruno@clisp.org>
56577
56578         * lib/printf-parse.h: Don't include sys/types.h.
56579         (ARG_NONE): New macro.
56580         (char_directive): Change type of *arg_index fields to size_t.
56581         * lib/printf-parse.c: Don't include sys/types.h.
56582         (SSIZE_MAX): Remove macro.
56583         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
56584         Remove unnecessary overflow check.
56585         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
56586         fields.
56587
56588 2003-11-25  Bruno Haible  <bruno@clisp.org>
56589
56590         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
56591
56592 2003-11-25  Bruno Haible  <bruno@clisp.org>
56593
56594         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
56595         gt_TYPE_SSIZE_T.
56596
56597 2003-11-24  Paul Eggert  <eggert@twinsun.com>
56598
56599         * modules/alloca: Remove dependency on xalloc.
56600
56601 2003-11-24  Paul Eggert  <eggert@twinsun.com>
56602
56603         * lib/alloca.c: Remove dependency on xalloc module.
56604         (xalloc_die): Remove.
56605         (memory_full) [!defined emacs]: New macro.
56606         [!defined emacs]: Don't include xalloc.h.
56607         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
56608         address arithmetic overflows.  Change datatypes a bit to avoid
56609         unnecessary casts.
56610
56611 2003-11-22  Jim Meyering  <jim@meyering.net>
56612
56613         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
56614         s/size/size_t/.
56615
56616 2003-11-21  Karl Berry  <karl@gnu.org>
56617
56618         * config/config.{sub,guess}: update from config.
56619
56620 2003-11-18  Karl Berry  <karl@gnu.org>
56621
56622         * config/config.{sub,guess}: update from config.
56623
56624         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
56625
56626 2003-11-17  Paul Eggert  <eggert@twinsun.com>
56627
56628         * README: Mention that S+T cannot overflow if S is the size of
56629         an existing object and T is sufficiently small.
56630
56631 2003-11-17  Jim Meyering  <jim@meyering.net>
56632
56633         On systems without utime and without a utimes function capable of
56634         dealing with a NULL struct utimbuf* argument, this utime replacement
56635         could -- in unusual circumstances -- leak a file descriptor.
56636         * lib/utime.c: Include <unistd.h> and <errno.h>.
56637         (utime_null): Be sure to close `fd' and to preserve errno.
56638         Reported by Geoff Collyer via Arnold Robbins.
56639
56640 2003-11-17  Bruno Haible  <bruno@clisp.org>
56641
56642         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
56643         (Depends-on): Add xsize.
56644
56645 2003-11-17  Bruno Haible  <bruno@clisp.org>
56646
56647         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
56648
56649 2003-11-17  Bruno Haible  <bruno@clisp.org>
56650
56651         * lib/vasnprintf.c (alloca): Remove fallback definition.
56652         (freea): Remove definition.
56653         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
56654         Reported by Paul Eggert.
56655
56656 2003-11-16  Paul Eggert  <eggert@twinsun.com>
56657             Bruno Haible  <bruno@clisp.org>
56658
56659         Protect against address arithmetic overflow.
56660         * lib/printf-args.h: Include stddef.h.
56661         (arguments): Change type of field 'count' to size_t.
56662         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
56663         'unsigned int' where appropriate.
56664         * lib/printf-parse.h: Include sys/types.h.
56665         (char_directive): Change type of *arg_index fields to ssize_t.
56666         (char_directives): Change type of fields 'count', max_*_length to
56667         size_t.
56668         * lib/printf-parse.c: Include sys/types.h and xsize.h.
56669         (SSIZE_MAX): Define fallback value.
56670         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
56671         instead of 'int' where appropriate. Check a_allocated, d_allocated
56672         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
56673         * lib/vasnprintf.c: Include xsize.h.
56674         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
56675         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
56676         overflow. Avoid wraparound when converting a width or precision from
56677         decimal to binary.
56678
56679 2003-11-16  Bruno Haible  <bruno@clisp.org>
56680
56681         Update from GNU gettext.
56682         * lib/printf-parse.c: Generalize to it can be compiled for wide
56683         strings.
56684         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
56685         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
56686         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
56687         SNPRINTF): New macros.
56688         Don't include <alloca.h> if the file is used inside libintl.
56689         (local_wcslen): New function, for Solaris 2.5.1.
56690         (VASNPRINTF): Use it instead of wcslen.
56691
56692 2003-11-16  Bruno Haible  <bruno@clisp.org>
56693
56694         * lib/xsize.h (xmax): New function.
56695         (xsum, xsum3, xsum4): Declare as "pure" functions.
56696
56697 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56698
56699         * modules/xalloc (Files): Undo latest change, since xalloc.h
56700         no longer needs SIZE_MAX or PTRDIFF_MAX.
56701
56702 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56703
56704         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
56705         gl_PTRDIFF_MAX.
56706
56707 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56708
56709         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
56710         "return", to pacify some unknown compiler.  Problem reported
56711         by Joerg Schilling.
56712
56713 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56714
56715         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
56716         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
56717         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
56718         heuristic is just as accurate as far as we know, and it removes a
56719         dependency on size_max.m4 and ptrdiff_max.m4.
56720
56721 2003-11-11  Bruno Haible  <bruno@clisp.org>
56722
56723         * modules/xsize (Files): Add m4/size_max.m4.
56724         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
56725
56726 2003-11-11  Bruno Haible  <bruno@clisp.org>
56727
56728         * m4/size_max.m4: New file.
56729         * m4/ptrdiff_max.m4: New file.
56730         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
56731         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
56732         (gl_XALLOC): Invoke it.
56733
56734 2003-11-11  Bruno Haible  <bruno@clisp.org>
56735
56736         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
56737         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
56738         defined.
56739
56740 2003-11-10  Paul Eggert  <eggert@twinsun.com>
56741
56742         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
56743         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
56744         rejected some allocations of exactly SIZE_MAX - 2 bytes.
56745         From Bruno Haible.
56746         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
56747         not (size_t) -1, since it's defined here.
56748
56749 2003-11-09  Karl Berry  <karl@gnu.org>
56750
56751         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
56752
56753 2003-11-06  Paul Eggert  <eggert@twinsun.com>
56754
56755         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
56756         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
56757         Reject sizes of exactly SIZE_MAX bytes.
56758         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
56759         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
56760
56761 2003-11-05  Bruno Haible  <bruno@clisp.org>
56762
56763         * lib/xsize.h: Include limits.h, to avoid a possible collision with
56764         SIZE_MAX defined in <limits.h> on Solaris.
56765
56766 2003-11-04  Jim Meyering  <jim@meyering.net>
56767
56768         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
56769         variable names, rather than @VAR@.
56770         * modules/poll: Likewise.
56771
56772 2003-11-04  Bruno Haible  <bruno@clisp.org>
56773
56774         * modules/xsize: New file.
56775         * modules/linebreak: Depend on xsize.
56776         * MODULES.html.sh (func_all_modules): Add xsize.
56777
56778 2003-11-04  Bruno Haible  <bruno@clisp.org>
56779
56780         * m4/xsize.m4: New file.
56781
56782 2003-11-04  Bruno Haible  <bruno@clisp.org>
56783
56784         * lib/xsize.h: New file.
56785         * lib/linebreak.c: Include xsize.h.
56786         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
56787         argument for overflow.
56788         Suggested by Paul Eggert.
56789
56790 2003-11-03  Karl Berry  <karl@gnu.org>
56791
56792         * config/config.{guess,sub}: update from config.
56793
56794 2003-11-03  Jim Meyering  <jim@meyering.net>
56795
56796         * modules/userspec (lib_SOURCES): Add userspec.h.
56797         (Include): Add "userspec.h".
56798         Improve description.
56799
56800 2003-11-03  Jim Meyering  <jim@meyering.net>
56801
56802         * lib/userspec.c: Include "userspec.h".
56803         * lib/userspec.h: New file.
56804
56805 2003-11-03  Bruno Haible  <bruno@clisp.org>
56806
56807         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
56808
56809 2003-11-03  Bruno Haible  <bruno@clisp.org>
56810
56811         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
56812         available, to avoid (extremely rare) race condition.
56813         Suggested by Paul Eggert.
56814
56815 2003-11-02  Karl Berry  <karl@gnu.org>
56816
56817         * config/srclist.txt (vasprintf.c): sync broken, sigh.
56818
56819 2003-10-31  Paul Eggert  <eggert@twinsun.com>
56820
56821         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
56822         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
56823         (read_filesystem_list): Set and use me_type_malloced.
56824         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
56825         whatever the type happens to be), for brevity and consistency.
56826         Check for size calculation overflow on Alphas running OSF/1.
56827
56828 2003-10-31  Jim Meyering  <jim@meyering.net>
56829
56830         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
56831
56832         * lib/linebuffer.c: Include <string.h> for declaration of memset.
56833
56834 2003-10-30  Paul Eggert  <eggert@twinsun.com>
56835             Bruno Haible  <bruno@clisp.org>
56836
56837         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
56838         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
56839
56840 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
56841
56842         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
56843         netbsd*-gnu*.  Suggested by Robert Millan.
56844
56845 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56846
56847         * modules/group-member: Depend on stdbool.
56848
56849 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56850
56851         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
56852
56853 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56854
56855         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
56856         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
56857         after the 'gnu' in these cases.  This fixes some bugs in the
56858         previous change, and is based on suggestions by Robert Millan.
56859
56860 2003-10-29  Paul Eggert  <eggert@twinsun.com>
56861
56862         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
56863         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
56864         no longer needed.
56865         * lib/quotearg.c (quotearg_n_options): Use it.
56866         * lib/group-member.c: Include <stdbool.h>.
56867         (free_group_info): Arg is now const *; don't free arg.
56868         (get_group_info): Now returns bool and accepts struct group_info *,
56869         rather than returning a malloc'ed struct group_info *.
56870         All uses changed.  Check for overflow in internal size calculation.
56871
56872         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
56873         rather than xmalloc/xrealloc.
56874         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
56875         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
56876         conformance bug: the old code used a pointer after freeing the
56877         storage that it addressed.
56878         * lib/hash.c (hash_initialize): Simplify the code by using
56879         xalloc_oversized rather than doing it by hand.
56880         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
56881         the buffer preserved.  Use free and xmalloc instead.
56882         * lib/quotearg.c (quotearg_n_options): Likewise.
56883         Use a simpler test for size overflow.  Don't use xalloc_oversized
56884         because unsigned int might be wider than size_t (!); this suggests
56885         that we should switch from unsigned int to size_t for slot numbers.
56886
56887 2003-10-28  Paul Eggert  <eggert@twinsun.com>
56888
56889         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
56890         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
56891         NetBSD kernels.  Requested by Richard Stallman.
56892
56893 2003-10-27  Paul Eggert  <eggert@twinsun.com>
56894
56895         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
56896         to allocate the returned structure.  Do not allocate a subarray,
56897         as x2nrealloc will do that.
56898         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
56899         instead of xnrealloc.
56900         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
56901
56902 2003-10-27  Bruno Haible  <bruno@clisp.org>
56903
56904         * lib/stdbool_.h: Better support for BeOS.
56905
56906 2003-10-26  Paul Eggert  <eggert@twinsun.com>
56907
56908         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
56909         now uses inline.
56910
56911 2003-10-26  Paul Eggert  <eggert@twinsun.com>
56912
56913         * lib/xalloc.h (xalloc_oversized): New static inline function, for
56914         callers that want to do their own size-overflow checking.  Include
56915         <stdbool.h>, since xalloc_oversized returns bool.
56916         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
56917         to use xalloc_oversized.
56918
56919         Add two functions x2realloc, x2nrealloc, for programs that grow
56920         arrays dynamically by doubling their sizes.
56921         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
56922         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
56923         New functions.
56924
56925         Port to C99 semantics for 'inline' of external functions.
56926         Bug reported by Bruno Haible.
56927         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
56928         with the old contents of xnmalloc.
56929         (xnmalloc, xmalloc): Use it.
56930         (xnrealloc_inline): New static inline function,
56931         with the old contents of xnrealloc.
56932         (xnrealloc, xrealloc): Use it.
56933
56934         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
56935         that.
56936
56937 2003-10-26  Karl Berry  <karl@gnu.org>
56938
56939         * config/srclist.txt (COPYING.DOC): no longer available from
56940         /gd/gnuorg; don't know where the ultimate source is.
56941
56942 2003-10-25  Paul Eggert  <eggert@twinsun.com>
56943
56944         Fix several address-calculation bugs in the hash modules,
56945         plus some minor code cleanup.
56946
56947         * lib/hash.h: Include <stdbool.h>, for bool.
56948         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
56949         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
56950         hash_get_n_entries, hash_get_max_bucket_length,
56951         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
56952         hash_rehash): Use size_t rather than unsigned.
56953         * lib/hash.c (struct hash_table, hash_get_n_buckets,
56954         hash_get_n_buckets_used, hash_get_n_entries,
56955         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
56956         hash_get_entries, hash_do_for_each, hash_string, is_prime,
56957         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
56958         Likewise.
56959         (SIZE_MAX): Define if not defined.
56960         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
56961         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
56962         hash_print):
56963         Use const * when possible.
56964         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
56965         (check_tuning): Fix bug: if tuning parameters were very close to
56966         0 or 1, rounding errors could have caused subscript violations.
56967         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
56968         (hash_initialize): Add 'fail:' label
56969         to free table and return NULL, and use it to simplify code.
56970         Use calloc rather than clearing the storage ourself.
56971         (hash_initialize, hash_rehash): Check for arithmetic overflow in
56972         buffer size calculations.
56973         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
56974         Include <stddef.h>, for size_t.
56975         * lib/hash-pjw.c (hash_pjw): Likewise.
56976         Switch to method described by Bruno Haible.
56977         Include <limits.h>, for CHAR_BIT.
56978         (SIZE_BITS): New macro.
56979
56980 2003-10-23  Paul Eggert  <eggert@twinsun.com>
56981
56982         * m4/getline.m4 (AM_FUNC_GETLINE):
56983         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
56984         hosts.  Problem reported by Derek Robert Price in
56985         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
56986         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
56987         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
56988
56989 2003-10-21  Paul Eggert  <eggert@twinsun.com>
56990
56991         * lib/getndelim2.c (getndelim2): When size calculation overflows,
56992         ceiling the allocation at NMAX bytes rather than silently
56993         discarding input bytes before NMAX is reached.  This makes
56994         a difference only if NMAX exceeds SIZE_MAX / 2.
56995
56996         * lib/obstack.c: Merge from glibc.
56997         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
56998         Add libc_hidden_def (_obstack_newchunk).
56999         (_obstack_free) [! defined _LIBC]: Remove.
57000         [defined _LIBC]: Make a strong alias from obstack_free, rather than
57001         a clone of the function body.
57002         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
57003         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
57004
57005         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
57006         glibc.
57007         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
57008         arg to memcpy.
57009
57010         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
57011         (obstack_ptr_grow_fast, obstack_int_grow_fast):
57012         Don't use lvalue casts, as GCC plans to remove support for them
57013         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
57014         was also present in the non-GCC version, indicating that this
57015         code had always been buggy and had never been widely used.
57016         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
57017         Use the fast variant of each macro, rather than copying the
57018         definiens of the fast variant; that way, we'll be more likely to
57019         catch future bugs in the fast variants.
57020
57021 2003-10-20  Bruno Haible  <bruno@clisp.org>
57022
57023         * modules/wait-process: New file.
57024         * MODULES.html.sh (func_all_modules): Add wait-process.
57025
57026 2003-10-20  Bruno Haible  <bruno@clisp.org>
57027
57028         * m4/wait-process.m4: New file.
57029
57030 2003-10-20  Bruno Haible  <bruno@clisp.org>
57031
57032         * lib/wait-process.h: New file, from GNU gettext.
57033         * lib/wait-process.c: New file, from GNU gettext.
57034
57035 2003-10-19  Jim Meyering  <jim@meyering.net>
57036
57037         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
57038         HPUX 10.20.
57039
57040 2003-10-18  Karl Berry  <karl@gnu.org>
57041
57042         * config/config.guess: update from config.
57043
57044 2003-10-16  Paul Eggert  <eggert@twinsun.com>
57045
57046         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
57047         (getgroups): First arg is int, not size_t.
57048         Don't let 'free' mangle errno.
57049
57050 2003-10-16  Paul Eggert  <eggert@twinsun.com>
57051
57052         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
57053
57054 2003-10-16  Karl Berry  <karl@gnu.org>
57055
57056         * config/config.{guess,sub}: update from config.
57057
57058 2003-10-16  Jim Meyering  <jim@meyering.net>
57059
57060         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
57061         memcpy.
57062
57063 2003-10-15  Paul Eggert  <eggert@twinsun.com>
57064
57065         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
57066         (SIZE_MAX): Remove.
57067         (new_exclude, add_exclude_file): Initial size no longer needs to
57068         be a power of 2.
57069         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
57070         our own address arithmetic overflow checking.
57071
57072         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
57073         (fnmatch): Do not alloca more than 2000 wide characters;
57074         instead, use malloc for large buffers.
57075         Check for address arithmetic overflow, and return -1
57076         with errno set to ENOMEM in that case.
57077         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
57078         (NEW_PATTERN): Do not alloca more than 8000 bytes;
57079         instead, return -1.  Check for address arithmetic overflow.
57080
57081 2003-10-14  Paul Eggert  <eggert@twinsun.com>
57082
57083         Handle invalid suffixes and overflow independently, so that
57084         callers can treat them independently as needed.  Fix some bugs in
57085         suffix handling, e.g., "100k@" was not diagnosed as an invalid
57086         suffix for a human-readable blocksize.  The major caller-visible
57087         change is the addition of a new
57088         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
57089         that both overflow and suffix chars were found.
57090
57091         * lib/human.c (humblock): Don't check separately for invalid suffix
57092         char; that is xstrtoumax's job (now that its bug is fixed).
57093         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
57094         INTMAX_MAX]: New macros.
57095         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
57096         TYPE_MAXIMUM): New macros.
57097         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
57098         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
57099         if overflow occurs, as it's what __strtol does and it's more useful
57100         in practice.
57101         (__xstrtol): If __strtol reports some error other than ERANGE,
57102         reflect it to the caller as LONGINT_INVALID.  If it reports
57103         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
57104         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
57105         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
57106         value.
57107         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
57108         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
57109         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
57110         [defined UINTMAX_MAX]: New macros.
57111
57112 2003-10-14  Bruno Haible  <bruno@clisp.org>
57113
57114         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
57115
57116 2003-10-14  Bruno Haible  <bruno@clisp.org>
57117
57118         * m4/sig_atomic_t: New file, from GNU gettext.
57119         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
57120
57121 2003-10-14  Bruno Haible  <bruno@clisp.org>
57122
57123         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
57124         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
57125         Also use volatile where needed.
57126
57127 2003-10-12  Paul Eggert  <eggert@twinsun.com>
57128
57129         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
57130         Change maintainer from Bruno Haible to 'all'.
57131
57132 2003-10-12  Paul Eggert  <eggert@twinsun.com>
57133
57134         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
57135
57136 2003-10-12  Paul Eggert  <eggert@twinsun.com>
57137
57138         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
57139         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
57140         and define in terms of the other primitives.
57141         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
57142         (SIZE_MAX): Define if not already defined.
57143         (array_size_overflow): New function.
57144         (xalloc_die): Abort instead of exiting if 'error' returns.
57145         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
57146         (xmalloc, xrealloc): Use them.
57147         (xcalloc): Check for address arithmetic overflow.
57148         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
57149         a bit faster than strcpy.
57150
57151 2003-10-10  Simon Josefsson  <jas@extundo.com>
57152
57153         * modules/argp (Depends-on): Add restrict and strcase.
57154
57155 2003-10-10  Simon Josefsson  <jas@extundo.com>
57156
57157         * m4/argp.m4: Add AC_C_INLINE.
57158
57159 2003-10-08  Paul Eggert  <eggert@twinsun.com>
57160
57161         Merge getpass from libc, plus a few fixes.
57162
57163         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
57164         Include <stdbool.h>.
57165         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
57166         __fsetlocking to empty.
57167         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
57168         do include <bits/libc-lock.h>.
57169         Do not include <fcntl.h>; not needed.
57170         [_LIBC]: Include <wchar.h>.
57171         (NOTCANCEL_MODE): New macro.
57172         (flockfile, funlockfile) [_LIBC]: New macros.
57173         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
57174         [!_LIBC]: New macros.
57175         (call_fclose): New function.
57176         (getpass): Use it.  Save tty stream separately; this simplifies the
57177         code and makes it more reliable if stdin happens to equal stdout.
57178         Invoke __fsetlocking on tty.
57179         Handle thread cancellation if needed.
57180         Namespace cleanup (use __tcgetattr, __getline).
57181         Use bool for Booleans.
57182         [USE_IN_LIBIO]: Handle wide streams.
57183         [!_LIBC]: Unconditionally do the fseek, since we don't know what
57184         stream might go where.
57185
57186         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
57187         doesn't have to include <stdio.h> before us.
57188         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
57189         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
57190         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
57191         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
57192         if not declared, so that we can use getpass.c code from libc without
57193         rewriting it.
57194         (flockfile, ftrylockfile, funlockfile): New macros.
57195
57196 2003-10-08  Paul Eggert  <eggert@twinsun.com>
57197
57198         * modules/getpass: Depend on stdbool.
57199
57200 2003-10-08  Paul Eggert  <eggert@twinsun.com>
57201
57202         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
57203
57204 2003-10-07  Karl Berry  <karl@gnu.org>
57205
57206         * config/config.{guess,sub}: update from config.
57207
57208 2003-10-06  Jim Meyering  <jim@meyering.net>
57209             Bruno Haible  <bruno@clisp.org>
57210
57211         This lets translators provide better translations for the
57212         "Written by ..." part of --version output.
57213         * lib/version-etc.h: Include stdarg.h.
57214         (version_etc_copyright): Declare as readonly.
57215         (version_etc): Make this function variadic with a NULL-terminated list
57216         of author name strings.
57217         (version_etc_va): New declaration.
57218         * lib/version-etc.c: Include stdarg.h, stdlib.h.
57219         (version_etc_copyright): Declare as readonly.
57220         (version_etc_va): New function. Provide a different translatable string
57221         for each possible number of authors < 10. Abbreviate when there are 10
57222         authors or more.
57223         (version_etc): Make this function variadic. Call version_etc_va.
57224         Suggestion from Gary V. Vaughan.
57225
57226         * lib/long-options.h (parse_long_options): Change prototype: the
57227         authors string is moved to the end and becomes variadic.
57228         * lib/long-options.c: Include stdarg.h.
57229         (parse_long_options): Make this function variadic, too.
57230         Call version_etc_va, not version_etc.
57231
57232 2003-10-06  Bruno Haible  <bruno@clisp.org>
57233
57234         * modules/version-etc-2: Remove file.
57235         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
57236
57237 2003-10-06  Bruno Haible  <bruno@clisp.org>
57238
57239         * modules/fatal-signal: New file.
57240         * MODULES.html.sh (func_all_modules): Add fatal-signal.
57241
57242 2003-10-06  Bruno Haible  <bruno@clisp.org>
57243
57244         * m4/fatal-signal.m4: New file.
57245         * m4/signalblocking.m4: New file, from GNU gettext.
57246
57247 2003-10-06  Bruno Haible  <bruno@clisp.org>
57248
57249         * lib/version-etc-2.h: Remove file.
57250         * lib/version-etc-2.c: Remove file.
57251
57252 2003-10-06  Bruno Haible  <bruno@clisp.org>
57253
57254         * lib/fatal-signal.h: New file, from GNU gettext.
57255         * lib/fatal-signal.c: New file, from GNU gettext.
57256
57257 2003-10-05  Paul Eggert  <eggert@twinsun.com>
57258
57259         * README: Rework advice for preventing empty .o files.
57260         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
57261         not <sys/types.h>.
57262
57263 2003-10-04  Karl Berry  <karl@gnu.org>
57264
57265         * lib/argp*: update from libc.
57266
57267 2003-10-04  Karl Berry  <karl@gnu.org>
57268
57269         * config/config.{guess,sub}: update from config.
57270
57271 2003-10-02  Bruno Haible  <bruno@clisp.org>
57272
57273         * modules/lchown (Include): Add lchown.h.
57274         * modules/time_r (Include): Use "..." syntax.
57275         * modules/xgetdomainname (Include): Add xgetdomainname.h.
57276
57277 2003-10-01  Simon Josefsson  <jas@extundo.com>
57278
57279         * MODULES.html.sh (func_all_modules): Move gethostname from section
57280         'based on' to section 'lacking' POSIX:2001.
57281
57282 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
57283
57284         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
57285         to output mode on the same stream.
57286
57287 2003-09-29  Paul Eggert  <eggert@twinsun.com>
57288
57289         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
57290         Fix arg typo in previous patch.
57291
57292 2003-09-28  Jim Meyering  <jim@meyering.net>
57293
57294         * lib/error.c: Correct cpp indentation.
57295
57296 2003-09-27  Paul Eggert  <eggert@twinsun.com>
57297
57298         * modules/free: New file.
57299
57300 2003-09-27  Paul Eggert  <eggert@twinsun.com>
57301
57302         * m4/free.m4: New file.
57303
57304 2003-09-27  Paul Eggert  <eggert@twinsun.com>
57305
57306         * lib/minmax.h (MIN, MAX)
57307         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
57308         Omit the special code that used __typeof__, since we worry that
57309         it could be more trouble than it's worth.  See:
57310         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
57311         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
57312
57313         * lib/free.c: New file.
57314
57315 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
57316
57317         Trivial fixes to Makefile.am parts of module listings.
57318         * modules/strstr: Append strstr.h to lib_SOURCES.
57319         * modules/strcase: Likewise, for strcase.h.
57320
57321 2003-09-27  Karl Berry  <karl@gnu.org>
57322
57323         * config/mkinstalldirs: update from automake.
57324
57325 2003-09-26  Paul Eggert  <eggert@twinsun.com>
57326
57327         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
57328         (error_tail): Do not loop, reallocating temporary buffer, since
57329         the output cannot contain more wide characters than the input
57330         contains bytes, the size must be big enough already.  This avoids
57331         one potential size overflow calculation.  Check for size overflow
57332         when calculating temporary buffer size.  Free temporary buffer
57333         when done, if it was allocated with malloc; this plugs a memory
57334         leak.  Remove casts from void * to pointers, that are no longer
57335         needed now that we're assuming C89 or better.
57336
57337         Merge error changes from glibc.
57338
57339         * lib/error.c, error.h: Update copyright notice header to match glibc.
57340         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
57341         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
57342         Disable cancellation while printing error.
57343         * lib/error.h: Prepend __ to parameter names.
57344
57345 2003-09-26  Jim Meyering  <jim@meyering.net>
57346
57347         * lib/error.c (error_tail): Move some declarations
57348         into inner scope where the local variables are used.
57349
57350 2003-09-26  Bruno Haible  <bruno@clisp.org>
57351
57352         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
57353         stpncpy().
57354         Don't define stpncpy through config.h; it's now done through stpncpy.h.
57355
57356 2003-09-26  Bruno Haible  <bruno@clisp.org>
57357
57358         * lib/stpncpy.h (gnu_stpncpy): New declaration.
57359         (stpncpy): Define as alias for gnu_stpncpy.
57360         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
57361
57362 2003-09-25  Simon Josefsson  <jas@extundo.com>
57363
57364         * lib/xgetdomainname.h: New file.
57365         * lib/xgetdomainname.c: New file.
57366
57367 2003-09-25  Simon Josefsson  <jas@extundo.com>
57368             Bruno Haible  <bruno@clisp.org>
57369
57370         * modules/getdomainname: New file.
57371         * modules/xgetdomainname: New file.
57372         * MODULES.html.sh (func_all_modules): Add getdomainname,
57373         xgetdomainname.
57374
57375 2003-09-25  Simon Josefsson  <jas@extundo.com>
57376             Bruno Haible  <bruno@clisp.org>
57377
57378         * m4/getdomainname.m4: New file.
57379
57380 2003-09-25  Simon Josefsson  <jas@extundo.com>
57381             Bruno Haible  <bruno@clisp.org>
57382
57383         * lib/getdomainname.h: New file.
57384         * lib/getdomainname.c: New file.
57385
57386 2003-09-25  Karl Berry  <karl@gnu.org>
57387
57388         * lib/argp-fmtstream.c, argp-help.c: update from libc.
57389
57390 2003-09-25  Karl Berry  <karl@gnu.org>
57391
57392         * config/install-sh: update from automake.
57393
57394 2003-09-25  Bruno Haible  <bruno@clisp.org>
57395
57396         * modules/version-etc-2: New file, from modules/version-etc with
57397         modifications.
57398         * MODULES.html.sh (func_all_modules): Add version-etc-2.
57399
57400 2003-09-25  Bruno Haible  <bruno@clisp.org>
57401
57402         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
57403         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
57404
57405 2003-09-24  Simon Josefsson  <jas@extundo.com>
57406
57407         * modules/xgethostname: Add xgethostname.h.
57408
57409 2003-09-24  Paul Eggert  <eggert@twinsun.com>
57410
57411         * lib/linebuffer.c (freebuffer): Don't free the argument, just
57412         the buffer associated with the argument.  Bug reported by
57413         Simon Josefsson.
57414
57415 2003-09-24  Paul Eggert  <eggert@twinsun.com>
57416
57417         * README: Document assumptions that 'int' is at least 32 bits
57418         wide, that integer arithmetic is 2's complement without overflow,
57419         that there are no holes in integer values, that adding sizes of
57420         two nonoverlapping objects can't overflow, and that all-bits-zero
57421         yields scalar zero.  Fix spelling and capitalization typos.
57422
57423 2003-09-19  Karl Berry  <karl@gnu.org>
57424
57425         * lib/argp.h: update from libc.
57426
57427 2003-09-17  Paul Eggert  <eggert@twinsun.com>
57428
57429         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
57430         to avoid spurious warnings like "AC_RUN_IFELSE was called before
57431         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
57432
57433 2003-09-17  Paul Eggert  <eggert@twinsun.com>
57434
57435         * gnulib-tool: Use "test -h", not "test -L", for portability
57436         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
57437         (tags_regexp): Remove, since \| doesn't conform to POSIX.
57438         (sed_extract_prog): Issue s commands one-by-one, rather than
57439         using \| in one s command.
57440
57441 2003-09-16  Paul Eggert  <eggert@twinsun.com>
57442
57443         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
57444         input error, instead of returning NULL the next time we are called
57445         (and therefore losing track of errno).
57446
57447 2003-09-16  Bruno Haible  <bruno@clisp.org>
57448
57449         * gnulib-tool (func_create_testdir): Warn about duplicated
57450         dependencies.
57451
57452 2003-09-15  Paul Eggert  <eggert@twinsun.com>
57453
57454         * modules/argmatch, modules/fatal, modules/obstack,
57455         modules/xalloc, modules/xgethostname: Sort dependencies by
57456         importance, not alphabetically.
57457
57458 2003-09-15  Paul Eggert  <eggert@twinsun.com>
57459
57460         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
57461         fails, so that the caller gets the proper errno.
57462
57463         * lib/readutmp.c (read_utmp): Likewise.
57464         Check for fstat error.  Close stream and free storage
57465         when failing.
57466
57467 2003-09-14  Karl Berry  <karl@gnu.org>
57468
57469         * config/srclist.txt (strdup.c): disable for c89 changes.
57470
57471 2003-09-14  Jim Meyering  <jim@meyering.net>
57472
57473         * lib/getloadavg.c: Correct cpp indentation.
57474         * lib/strdup.c: Likewise.
57475         * lib/vasnprintf.c: Likewise.
57476
57477 2003-09-14  Bruno Haible  <bruno@clisp.org>
57478
57479         * modules/fwriteerror: New file.
57480         * MODULES.html.sh (func_all_modules): Add fwriteerror.
57481
57482 2003-09-14  Bruno Haible  <bruno@clisp.org>
57483
57484         * lib/fwriteerror.h: New file.
57485         * lib/fwriteerror.c: New file.
57486
57487 2003-09-12  Paul Eggert  <eggert@twinsun.com>
57488
57489         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
57490         modules/xgethostname, modules/xalloc: Depend on exit.
57491
57492 2003-09-12  Paul Eggert  <eggert@twinsun.com>
57493
57494         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
57495
57496         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
57497         and AC_MINIX, too, so that their extensions are available.
57498
57499         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
57500         This macro has been superseded by gl_BACKUPFILE.
57501
57502         More patches to assume C89 or better.
57503
57504         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
57505
57506         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
57507         unconditionally.
57508         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
57509         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
57510         Include <string.h>, <stdlib.h> unconditionally.
57511         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
57512         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
57513         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
57514         headers or for string.h.
57515         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
57516         or strtoul.
57517
57518         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
57519         headers.
57520         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
57521         * m4/userspec.m4 (gl_USERSPEC): Likewise.
57522         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
57523         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
57524         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
57525         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
57526         memcpy, memset.
57527         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
57528         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
57529         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
57530         strtol.
57531         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
57532         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
57533         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
57534         strtoul.
57535
57536 2003-09-12  Paul Eggert  <eggert@twinsun.com>
57537
57538         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
57539         * lib/obstack.c [!defined _LIBC]: Likewise.
57540         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
57541         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
57542         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
57543
57544         More changes to assume C89 or better.
57545
57546         * lib/error.c (error_tail): Assume vprintf.
57547
57548         * lib/argmatch.c (getenv): Remove decl.
57549         * lib/progreloc.c (get_full_program_name): Define via prototype.
57550         * lib/setenv.c (clearenv): Likewise.
57551         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
57552         needed.
57553         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
57554         (malloc, memcpy): Remove decls.
57555         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
57556         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
57557         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
57558         (memcpy): Remove macro.
57559         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
57560         (__P): Remove.  All uses removed.
57561         (PTR): Remove.  All uses changed to void *.
57562         (CHAR_BIT, NULL): Remove.
57563         (spaces, zeros, memset_space, memset_zero)
57564         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
57565         Remove.
57566         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
57567         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
57568         Define with prototype.
57569         Remove now-unnecessary prototype decl.
57570         (extra_args_spec): Assume ANSI C.  All uses changed.
57571         (extra_args_spec_iso): Remove.
57572         (my_strftime, emacs_strftimeu): Define via prototype.
57573         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
57574         unconditionally.
57575         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
57576         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
57577         (strtoul, strtol): Remove decls.
57578         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
57579         LONG_MAX): Remove.
57580         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
57581         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
57582         (LOCALE_PARAM_PROTO): New macro.
57583         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
57584         (INTERNAL (strtol), strtol): Define with a prototype.
57585         (PARAMS): Remove.  All uses removed.
57586         * lib/tempname.c: Include <string.h> unconditionally.
57587         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
57588         * lib/xgethostname.c (main): Define with a prototype.
57589         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
57590         Include <stdlib.h> unconditionally.
57591         (calloc, malloc, realloc, free): Remove decls.
57592         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
57593         Include <stdlib.h> unconditionally.  Sort include file names.
57594         (strtod): Remove.
57595         (xstrtod): Define with a prototype.
57596         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
57597         (strtol, strtoul): Remove decls.
57598
57599 2003-09-11  Paul Eggert  <eggert@twinsun.com>
57600
57601         More patches to assume C89 or better.
57602         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
57603         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
57604         string.h, memchr, STDC_HEADERS.
57605
57606 2003-09-11  Paul Eggert  <eggert@twinsun.com>
57607
57608         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
57609         Include <stdlib.h>, <string.h> unconditionally.
57610         Remove now-unnecessary cast to char *.
57611         * lib/strnlen.c: Include <string.h> unconditionally.
57612         * lib/yesno.c (yesno): Define with a prototype.
57613
57614 2003-09-11  Bruno Haible  <bruno@clisp.org>
57615
57616         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
57617
57618 2003-09-10  Jim Meyering  <jim@meyering.net>
57619
57620         * lib/error.c: Correct indentation of cpp directives.
57621
57622 2003-09-10  Bruno Haible  <bruno@clisp.org>
57623
57624         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
57625         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
57626         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
57627         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
57628         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
57629         <stdlib.h> and <string.h> checks.
57630         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
57631         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
57632
57633 2003-09-10  Bruno Haible  <bruno@clisp.org>
57634
57635         * lib/strcspn.c: Include <string.h> unconditionally.
57636         * lib/strpbrk.c: Include <string.h> unconditionally.
57637         * lib/strstr.c: Include <string.h> unconditionally.
57638         * lib/unicodeio.c: Include <string.h> unconditionally.
57639         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
57640         * lib/unsetenv.c: Likewise.
57641         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
57642         * lib/yesno.c: Include <stdlib.h> unconditionally.
57643         (rpmatch): Add prototype.
57644
57645 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57646
57647         More patches to assume C89 or better.
57648         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
57649         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
57650         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
57651         or for string.h.
57652         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
57653         stdlib.h.
57654         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
57655         C headers.
57656         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
57657         string.h.
57658         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
57659         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
57660         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
57661         or for string.h.
57662         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
57663         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
57664         C headers.
57665         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
57666         memcpy.
57667         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
57668         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
57669         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
57670         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
57671         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
57672         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
57673         string.h, free.
57674         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
57675         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
57676         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
57677         C headers, or for string.h.
57678         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
57679         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
57680         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
57681         headers, memory.h, stdlib.h, string.h, strings.h.
57682         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
57683         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
57684         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
57685         strchr.
57686         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
57687         headers, memory.h, string.h.
57688         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
57689         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
57690         free.
57691         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
57692         headers.
57693         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
57694         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
57695         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
57696         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
57697         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
57698
57699 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57700
57701         More K&R removal.
57702
57703         * lib/acosl.c (main): Use a prototype.
57704         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
57705         tanl.c: Likewise.
57706
57707         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
57708
57709         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
57710         (getopt, etopt_long, getopt_long_only, _getopt_internal)
57711         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
57712         with a prototype.
57713         * lib/getopt.c (const): Remove macro.
57714         Include <string.h> unconditionally.
57715         (my_index): Remove; all uses changed to strchr.
57716         (strlen): Remove decl.
57717         (exchange): Remove forward decl; no longer needed.
57718         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
57719         Define with prototype.
57720         * lib/getopt1.c (const): Remove macro.
57721         (getopt_long, getopt_long_only, main): Define with prototype.
57722
57723         * lib/getugroups.c: Include <string.h> unconditionally.
57724
57725         * lib/getusershell.c: Include <stdlib.h> unconditionally.
57726         (getusershell, setusershell, endusershell, readname, main):
57727         Define with prototypes.
57728
57729         * lib/group-member.c: Include group-member.h first.
57730         Include <stdlib.h> unconditionally.
57731
57732         * lib/hard-locale.c: Include hard-locale.h first.
57733         Include <stdlib.h>, <string.h> unconditionally.
57734
57735         * lib/hash.c (free, malloc): Remove decls.
57736         Include <stdlib.h> unconditionally.
57737
57738         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
57739         (getenv): Do not declare.
57740
57741         * lib/idcache.c: Include <string.h> unconditionally.
57742
57743         * lib/long-options.c: Include long-options.h first, to test interface.
57744         Include <stdlib.h> unconditionally.
57745
57746         * lib/makepath.c: Include makepath.h first, to test interface.
57747         Include <stdlib.h> and <string.h> unconditionally.
57748
57749         * lib/linebuffer.c: Include <stdlib.h>.
57750         (free): Remove decl.
57751
57752         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
57753         stddef.h. rpl_malloc returns void *, not char *.
57754         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
57755         prototype.
57756
57757         * lib/md5.h: Include <limits.h> unconditionally.
57758         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
57759         (__P): Remove; all uses removed.
57760         * lib/md5.c: Include "md5.h" first.
57761         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
57762         md5_buffer, md5_process_bytes, md5_process_block):
57763         Define with prototypes.
57764         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
57765         * lib/sha.c: Include "sha.h" first.
57766         Include <stdlib.h>, <string.h> unconditionally.
57767
57768         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
57769         * lib/memcmp.c (__ptr_t): Likewise.
57770         * lib/memrchr.c (__ptr_t): Likewise.
57771         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
57772         Include <string.h> unconditionally.
57773         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
57774         * lib/memchr.c: Include <stdlib.h> unconditionally.
57775         * lib/memchr.c (LONG_MAX): Remove.
57776         * lib/memrchr.c (LONG_MAX): Likewise.
57777         * lib/memchr.c (__memchr): Define via a prototype.
57778         * lib/memrchr.c (__memrchr): Likewise.
57779         * lib/memcmp.c (__P): Remove, and remove all uses.
57780         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
57781         Remove forward decls; no longer needed.
57782         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
57783         Use types required by C89 in prototype.
57784
57785         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
57786         * lib/savedir.c: Likewise.
57787         * lib/mkdir.c (free): Remove decl.
57788         * lib/rmdir.c (rmdir): Define with a prototype.
57789         * lib/savedir.c: Include savedir.h first, to test interface.
57790
57791         * lib/mktime.c (STDC_HEADERS): Remove.
57792         Include <stdlib.h>, <string.h> unconditionally.
57793
57794         * lib/modechange.c: Include <stdlib.h> unconditionally.
57795         (malloc): Remove decl.
57796
57797         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
57798         (free): Remove decl.
57799
57800         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
57801         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
57802         (This type really should be intptr_t, but that's a C99ism.)
57803         (_obstack_memcpy): Remove: all uses changed to memcpy.
57804         Include <string.h> unconditionally.
57805         (struct obstack): Assume __STDC__ for types of members
57806         chunkfun, freefun, extra_arg.
57807         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
57808         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
57809         obstack_begin, obstack_specify_allocation,
57810         obstack_specify_allocation_with_arg, obstack_chunkfun,
57811         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
57812         Remove unprototyped decls and the macros that use them.
57813         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
57814         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
57815         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
57816         (defined __STDC__ && __STDC__)]:
57817         Remove nonprototyped code.
57818         Include <stdlib.h> unconditionally.
57819         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
57820         _obstack_allocated_p, _obstack_free, obstack_free,
57821         _obstack_memory_used, print_and_abort):
57822         Define using prototypes.
57823         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
57824         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
57825         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
57826         obstack_next_free, obstack_object_size, obstack_room) [0]:
57827         Remove unused, unprototyped code.
57828
57829         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
57830
57831         * lib/physmem.c (physmem_total, physmem_available, main): Define
57832         with prototypes.
57833
57834         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
57835         (main): Define with a prototype.
57836
57837         * lib/posixver.c (getenv): Remove decl.
57838
57839         * lib/putenv.c (malloc): Returns void *, not char *.
57840         Include <string.h> unconditionally.
57841         (strchr, memcpy, NULL): Do not define.
57842
57843         * lib/readtokens.c: Include readtokens.h first, to test interface.
57844         Include <stdlib.h>, <string.h> unconditionally.
57845         (init_tokenbuffer): Define with a prototype.
57846
57847         * lib/regex.c (PARAMS): Remove.  All uses removed.
57848         All uses of _RE_ARGS removed, too.
57849         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
57850         unconditionally.
57851         (bzero): Assume memset exists.
57852         (memcmp, memcpy, NULL): Remove.
57853         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
57854         char, or assignments to local vars of type signed char.
57855         (init_syntax_once, PREFIX(extract_number_and_incr),
57856         PREFIX(print_partial_compiled_pattern),
57857         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
57858         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
57859         PREFIX(regex_grow_registers), PREFIX(regex_compile),
57860         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
57861         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
57862         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
57863         wcs_compile_range, byte_compile_range, truncate_wchar,
57864         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
57865         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
57866         count_mbs_length, wcs_re_match_2_internal,
57867         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
57868         PREFIX(alt_match_null_string_p),
57869         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
57870         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
57871         regfree, PREFIX(extract_number)): Define with prototype.  Remove
57872         now-unnecessary declaration, if any.
57873         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
57874         regcomp, regexec):
57875         Remove now-unnecessary casts among pointer types.
57876         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
57877
57878         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
57879         (free): Remove decl.
57880
57881         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
57882
57883         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
57884         (free): Remove decl.
57885
57886         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
57887         * lib/xgetcwd.c: Likewise.
57888
57889         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
57890         (free): Remove decl.
57891
57892         * lib/strchrnul.c (strchrnul): Define with a prototype.
57893         Fix bug: c_in was not converted to char before searching.
57894
57895         The following changes are not K&R related:
57896
57897         * lib/group-member.h: Include <sys/types.h>, so that this file is
57898         self-contained.
57899         * lib/makepath.h: Likewise.
57900
57901         * lib/getusershell.c (readname, default_index, line_size, readname):
57902         Use size_t, not int, for sizes.
57903         (readname): If the size overflows, report an error instead of
57904         looping forever.
57905
57906 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57907
57908         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
57909         libc.
57910
57911 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57912
57913         * README: New section: portability guidelines.
57914
57915 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
57916
57917         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
57918         C89 spec.
57919
57920 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
57921
57922         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
57923
57924 2003-09-08  Paul Eggert  <eggert@twinsun.com>
57925
57926         Assume C89 or better; remove K&R cruft.
57927         A few of these changes were first proposed by Derek Robert Price
57928         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
57929
57930         * lib/addext.c: Include <string.h> unconditionally.
57931         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
57932         Don't declare getenv or malloc.
57933
57934         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
57935         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
57936         (NULL): Remove.
57937         (find_stack_direction, alloca): Use prototypes.
57938
57939         * lib/atexit.c (atexit): Define using a prototype.
57940
57941         * lib/basename.c, dirname.c, stripslash.c:
57942         Include <string.h> unconditionally.
57943
57944         * lib/bcopy.c: Include <stddef.h>.
57945         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
57946
57947         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
57948
57949         * lib/error.h (error, error_at_line, error_print_progname)
57950         [! (defined (__STDC__) && __STDC__)]: Remove decls.
57951         * lib/error.c: Include error.h first, to check interface.
57952         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
57953         (VA_START): Remove; all uses changeed to va_start.
57954         (exit, strerror): Remove decls.
57955         (error_print_progname): Prototype uncondionally.
57956         Don't include <errno.h>; no longer needed.
57957         (private_strerror): Remove.
57958         (error_tail): Always define.
57959         (error, error_at_line): Assume C89 or better; always use prototypes.
57960         * lib/fatal.c: Include "fatal.h" first, to test interface.
57961         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
57962         (VA_START): Remove; all uses changed to va_start.
57963         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
57964         this case.
57965         (exit): Remove decl.
57966         (fatal): Prototype unconditionally.  Assume va_start works.
57967         Abort at end, to pacify gcc.
57968
57969         * lib/euidaccess.c (main): Define with a prototype.
57970
57971         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
57972
57973         * lib/exitfail.c: Include <stdlib.h> unconditionally.
57974
57975         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
57976         prototypes.
57977         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
57978         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
57979         (getenv): Remove decl.
57980         (fnmatch): Define using a prototype.
57981         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
57982         (FCT): Define using a prototype.
57983
57984         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
57985
57986         * lib/gethostname.c: Include <stddef.h>.
57987         (gethostname): Define with prototype.  Length is size_t, not int.
57988
57989 2003-09-08  Paul Eggert  <eggert@twinsun.com>
57990
57991         Assume C89 or better; remove K&R cruft.
57992         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
57993         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
57994         string.h, getenv, malloc.
57995         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
57996         headers.
57997         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
57998         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
57999         do not check for strerror.
58000         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
58001         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
58002         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
58003         do not check for doprnt or vprintf.
58004         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
58005         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
58006
58007 2003-09-08  Paul Eggert  <eggert@twinsun.com>
58008
58009         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
58010         getversion.c should have been removed then, but was accidentally
58011         preserved.
58012
58013         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
58014         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
58015
58016 2003-09-08  Karl Berry  <karl@gnu.org>
58017
58018         * config/config.sub, config.guess, srclistvars.sh: update from savannah
58019                 config, forget about prep.
58020
58021         * config/depcomp, missing: update from automake.
58022
58023 2003-09-07  Paul Eggert  <eggert@twinsun.com>
58024
58025         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
58026         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
58027
58028 2003-09-07  Paul Eggert  <eggert@twinsun.com>
58029
58030         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
58031         copy_tm_result.  Bug reported by Simon Josefsson in
58032         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
58033
58034 2003-09-06  Paul Eggert  <eggert@twinsun.com>
58035
58036         * m4/time_r.m4: New file.
58037         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
58038         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
58039         is. Check for timegm declaration.
58040         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
58041         Do not check for gmtime_r.
58042         Replace mktime if __mktime_internal does not exist and if mktime
58043         hasn't been replaced already.
58044
58045 2003-09-06  Paul Eggert  <eggert@twinsun.com>
58046
58047         * lib/time_r.c, lib/time_r.h: New files.
58048
58049         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
58050         __localtime_r.
58051         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
58052         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
58053
58054         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
58055         __gmtime_r.
58056         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
58057         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
58058         Include <time_r.h>.
58059
58060         * lib/timegm.c: Switch to glibc implementation, with the following
58061         changes:
58062         [defined HAVE_CONFIG_H]: Include <config.h>.
58063         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
58064         (__mktime_internal) [!defined _LIBC]: New decl.
58065         (__gmtime_r) [!defined _LIBC]: New macro and function.
58066         (timegm): Use a prototype, since gnulib assumes C89.
58067         Do not bother declaring tmp to be const, as it's not really usefu.
58068         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
58069         (timegm): Declare only if HAVE_DECL_TIMEGM.
58070
58071 2003-09-06  Paul Eggert  <eggert@twinsun.com>
58072
58073         * MODULES.html.sh (func_all_modules): Add time_r.
58074         * modules/time_r: New file.
58075         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
58076         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
58077
58078 2003-09-03  Paul Eggert  <eggert@twinsun.com>
58079
58080         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
58081         Bug reported by Lute Kamstra in
58082         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
58083
58084         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
58085         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
58086         course with correspondingly smaller numbers for tomorrow and
58087         yesterday.  From Tadayoshi Funaba.  Originally installed into
58088         sh-utils on 1999-08-07, but the patch got lost (I guess during the
58089         coreutils merge?).
58090
58091 2003-08-31  Simon Josefsson  <jas@extundo.com>
58092
58093         * modules/timegm: New file.
58094         * MODULES.html.sh (func_all_modules): Add timegm.
58095
58096 2003-08-31  Simon Josefsson  <jas@extundo.com>
58097
58098         * m4/timegm.m4: New file.
58099
58100 2003-08-31  Simon Josefsson  <jas@extundo.com>
58101
58102         * lib/timegm.h: New file.
58103         * lib/timegm.c: New file.  Based on
58104         wget-1.8.2/src/http.c:mktime_from_utc.
58105
58106 2003-08-31  Karl Berry  <karl@gnu.org>
58107
58108         * lib/argp.h: update from libc.
58109
58110 2003-08-28  Bruno Haible  <bruno@clisp.org>
58111
58112         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
58113         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
58114         followed by '#define fnmatch fnmatch_posix' gives an error.
58115
58116 2003-08-28  Bruno Haible  <bruno@clisp.org>
58117
58118         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
58119         warning on QNX, which defines O_BINARY to 000000.
58120
58121 2003-08-27  Jim Meyering  <jim@meyering.net>
58122
58123         * m4/mkstemp.m4: Require that the system mkstemp be able to create
58124         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
58125         would fail after 32.  Reported by Danny Levinson.  Details here:
58126         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
58127
58128 2003-08-24  Bruno Haible  <bruno@clisp.org>
58129
58130         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
58131         MSVC7 <stdio.h> is included later.
58132
58133 2003-08-22  Simon Josefsson  <jas@extundo.com>
58134
58135         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
58136
58137 2003-08-20  Karl Berry  <karl@gnu.org>
58138
58139         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
58140
58141 2003-08-20  Bruno Haible  <bruno@clisp.org>
58142
58143         * modules/progname: New file.
58144         * MODULES.html.sh (func_all_modules): Add progname.
58145
58146 2003-08-20  Bruno Haible  <bruno@clisp.org>
58147
58148         * lib/progname.h: New file, from GNU gettext.
58149         * lib/progname.c: New file, from GNU gettext.
58150         * lib/progreloc.c: New file, from GNU gettext.
58151
58152 2003-08-19  Jim Meyering  <jim@meyering.net>
58153
58154         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
58155         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
58156
58157 2003-08-19  Bruno Haible  <bruno@clisp.org>
58158
58159         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
58160         more.
58161
58162 2003-08-19  Bruno Haible  <bruno@clisp.org>
58163
58164         * lib/xstrdup.c: Assume <string.h> exists.
58165
58166 2003-08-18  Paul Eggert  <eggert@twinsun.com>
58167
58168         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
58169         in makefile rules.
58170
58171 2003-08-18  Jim Meyering  <jim@meyering.net>
58172
58173         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
58174         * m4/lib-ld.m4: Likewise.
58175
58176 2003-08-18  Jim Meyering  <jim@meyering.net>
58177
58178         * lib/setenv.h: Indent nested cpp directive.
58179         * lib/vasnprintf.c: Remove trailing blanks.
58180
58181 2003-08-17  Simon Josefsson  <jas@extundo.com>
58182
58183         * modules/xstrndup: New file.
58184         * MODULES.html.sh (func_all_modules): Add xstrndup.
58185
58186 2003-08-17  Simon Josefsson  <jas@extundo.com>
58187
58188         * modules/argp: Fix autoconf macro name. Add more dependencies.
58189
58190 2003-08-17  Simon Josefsson  <jas@extundo.com>
58191
58192         * m4/xstrndup.m4: New file.
58193
58194 2003-08-17  Simon Josefsson  <jas@extundo.com>
58195
58196         * m4/argp.m4: New file.
58197
58198 2003-08-17  Simon Josefsson  <jas@extundo.com>
58199             Bruno Haible  <bruno@clisp.org>
58200
58201         * lib/xstrndup.h: New file.
58202         * lib/xstrndup.c: New file.
58203
58204 2003-08-17  Bruno Haible  <bruno@clisp.org>
58205
58206         * modules/strndup (Files, Include): Add lib/strndup.h.
58207
58208 2003-08-17  Bruno Haible  <bruno@clisp.org>
58209
58210         * modules/euidaccess (Files): Add lib/euidaccess.h.
58211
58212 2003-08-17  Bruno Haible  <bruno@clisp.org>
58213
58214         * lib/strndup.h: New file.
58215
58216 2003-08-17  Bruno Haible  <bruno@clisp.org>
58217
58218         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
58219         like AC_GNU_SOURCE.
58220         * modules/extensions (configure.ac): Comment out the invocation of
58221         gl_USE_SYSTEM_EXTENSIONS.
58222
58223 2003-08-16  Paul Eggert  <eggert@twinsun.com>
58224
58225         Merges from coreutils, etc.
58226         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
58227         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
58228         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
58229         fixing a typo.
58230         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
58231         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
58232
58233 2003-08-16  Paul Eggert  <eggert@twinsun.com>
58234
58235         Document merge from coreutils.
58236         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
58237         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
58238         * modules/utime: Add m4/utimes-null.m4.
58239
58240 2003-08-16  Paul Eggert  <eggert@twinsun.com>
58241
58242         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
58243         space, undoing this 2003-08-12 change:
58244         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
58245
58246 2003-08-16  Paul Eggert  <eggert@twinsun.com>
58247
58248         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
58249         strtoul.c from libc, undoing this 2003-08-12 change:
58250         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
58251
58252 2003-08-16  Jim Meyering  <jim@meyering.net>
58253
58254         Merges from coreutils.
58255         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
58256         prefix.  Adjust cache variables similarly.  Create 500 rather than
58257         just 300 files, to exercise bug on Darwin6.5, too.
58258         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
58259         $missing_dir.
58260         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
58261         AM_SYS_POSIX_TERMIOS.
58262         Reported by mkc@mathdogs.com.
58263         Also change use of $am_cv_sys_posix_termios
58264         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
58265         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
58266         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
58267         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
58268         in /proc/mounts until it finds one with matching device number.  This
58269         is unnecessary when the FILE argument *is* a mount point.  No stat call
58270         is necessary in that case.  So, disable the statvfs-testing code on
58271         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
58272         as RedHat bug# 84846.
58273         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
58274         to 1MB, so as not to render systems with no stack size limit (e.g.,
58275         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
58276         Include <unistd.h>.  On some systems,
58277         it is required for the definition of _SC_PAGESIZE.
58278
58279 2003-08-16  Jim Meyering  <jim@meyering.net>
58280
58281         Merge from coreutils.
58282         * lib/xstrtoimax.c: #else #if -> #elif.
58283         * lib/xstrtoumax.c: Likewise.
58284
58285 2003-08-16  Jim Meyering  <jim@meyering.net>
58286
58287         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
58288         * m4/utimes.m4: Removed.
58289         * m4/utimes-null.m4: Renamed from utimes.m4.
58290
58291         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
58292         to 1MB, so as not to render systems with no stack size limit (e.g.,
58293         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
58294         Include <unistd.h>.  On some systems,
58295         it is required for the definition of _SC_PAGESIZE.
58296
58297 2003-08-16  Jim Meyering  <jim@meyering.net>
58298         and Paul Eggert  <eggert@cs.ucla.edu>
58299
58300         Merges from coreutils, etc.
58301
58302         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
58303         using the latest version from cvs.  This avoids problems with #line
58304         directives using a vendor (Sun) compiler.
58305         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
58306         Don't set GETGROUPS_LIB here; now it's
58307         done via getgroups.m4's wrapper function.
58308         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
58309         rather than just in sh-util/configure.in, so that the
58310         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
58311         same.
58312         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
58313         AC_FUNC_GETLOADAVG where to find getloadavg.c.
58314         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
58315         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
58316         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
58317         Remove code that is now done by the newly-required macros.
58318         Append $(EXEEXT) to DF_PROG.
58319         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
58320         Do not invoke or require the following here,
58321         since prereq.m4 or some gnulib .m4 now does this for us:
58322         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
58323         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
58324         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
58325         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
58326         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
58327         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
58328         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
58329         AC_FUNC_OBSTACK.
58330         Do not replace the following functions, as this is now the job
58331         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
58332         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
58333         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
58334         atexit getpass, strdup, getpagesize.
58335         Replace 'raise'.
58336         Do not check for the following functions, as this is now the job
58337         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
58338         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
58339         setregid.
58340         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
58341         Check for sys/sysctl.h.
58342         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
58343         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
58344         of checking for ssize_t ourselves.
58345
58346         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
58347         Require every macro that gnulib/modules/* suggests for us.
58348         (jm_PREREQ_ADDEXT): New macro.
58349         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
58350         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
58351
58352         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
58353         (gl_PHYSMEM): Use it.
58354         Also check for `table' function.
58355         Check for new headers and functions.
58356         Add check for sys/sysmp.h.
58357         With suggestions from Kaveh Ghazi.
58358         Ignore headers that are present but cannot be compiled.  This
58359         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
58360         C 5.4.
58361
58362 2003-08-15  Paul Eggert  <eggert@twinsun.com>
58363
58364         Document merge from coreutils.
58365         * modules/userspec: Depend on posixver.
58366         * modules/strftime: Depend on tzset.
58367
58368 2003-08-15  Paul Eggert  <eggert@twinsun.com>
58369
58370         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
58371         rather than tab, after '#' in shell-script copyright notices.
58372         Suggested by Bruno Haible.
58373
58374 2003-08-15  Paul Eggert  <eggert@twinsun.com>
58375
58376         * config/srclist-update: Use three spaces, rather than tab, after '#'
58377         in shell-script copyright notices.  Suggested by Bruno Haible.
58378         Remove unnecessary parenthesization in regular expression.
58379
58380 2003-08-15  Jim Meyering  <jim@meyering.net>
58381
58382         Merge from coreutils.
58383         * lib/xgethostname.c: Include <stdlib.h>.
58384         (xghostname): Don't exit for anything other than memory-related
58385         failure; just return NULL.
58386         * lib/userspec.c: Include "posixver.h".
58387         (parse_user_spec): Accept `.' as a separator only
58388         in pre-POSIX-200112 mode.
58389         * lib/strtoimax.c: Use #elif rather than #else #if.
58390         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
58391         Remove function, now that we can rely on a working tzset function.
58392         [!_LIBC]: Ensure that the required autoconf test has been run.
58393         [!defined _NL_CURRENT && HAVE_STRFTIME]:
58394         Use underlying_strftime for %r.
58395         * lib/sha.c: Merge in some clean-up and optimization changes from
58396         glibc.
58397         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
58398         Ensure that it is a multiple of 64.
58399         Rearrange loop exit tests so as to avoid performing an
58400         additional fread after encountering an error or EOF.
58401         * lib/realloc.c: Update copyright date.
58402
58403 2003-08-15  Jim Meyering  <jim@meyering.net>
58404         and Paul Eggert  <eggert@twinsun.com>
58405
58406         Merge from coreutils.
58407         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
58408         member but strut utmpx does not.  Needed for AIX 4.3.3.
58409         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
58410
58411 2003-08-15  Jim Meyering  <jim@meyering.net>
58412         and Paul Eggert  <eggert@cs.ucla.edu>
58413
58414         Merges from coreutils, etc.
58415         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
58416         Require gl_FUNC_TZSET_CLOBBER.
58417         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
58418         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
58419         members.
58420
58421 2003-08-14  Paul Eggert  <eggert@twinsun.com>
58422
58423         Help the merge from coreutils.
58424         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
58425         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
58426         * m4/tzset.m4: Use it too.
58427
58428 2003-08-14  Paul Eggert  <eggert@twinsun.com>
58429
58430         * modules/tzset: New file.
58431
58432 2003-08-14  Jim Meyering  <jim@meyering.net>
58433
58434         Merges from coreutils.
58435         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
58436         variable names, rather than @FNMATCH_H@.
58437         * modules/alloca: Likewise for $(ALLOCA_H).
58438
58439         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
58440         the three copies of the literal target, `fnmatch.h'.
58441         * modules/alloca (alloca.h): Likewise.
58442
58443 2003-08-14  Jim Meyering  <jim@meyering.net>
58444
58445         Merge from coreutils.
58446         * m4/tzset.m4: New file.
58447         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
58448         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
58449         otherwise, AIX 5.1 systems would end up using the latter.
58450         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
58451         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
58452         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
58453         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
58454
58455 2003-08-14  Jim Meyering  <jim@meyering.net>
58456
58457         Merge from coreutils.
58458         * lib/obstack.h: Whitespace changes.
58459         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
58460         and xcalloc return values.
58461         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
58462         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
58463         hang on OSF/1 5.1 for DIR on both local and remote file systems.
58464         Reported by (and fix confirmed by) Nelson H. F. Beebe.
58465         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
58466         error from mntctl.
58467         Use mntctl's return value to drive the entry-processing loop, since
58468         we can't rely on the value of the vmt_length member in the last
58469         entry.  On some systems doing so could result in exhausting
58470         virtual memory.  Based in part on a patch from Mike Jetzer.
58471
58472 2003-08-14  Jim Meyering  <jim@meyering.net>
58473         and Paul Eggert  <eggert@twinsun.com>
58474
58475         Merges from coreutils, plus other fixes.
58476         * lib/physmem.c: Merge in portability changes from gcc/libiberty
58477         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
58478         for credits and details.  Thanks to Kaveh Ghazi for helping
58479         to keep these files in sync.
58480         (ARRAY_SIZE): Define it.
58481         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
58482         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
58483         (memcasecmp): Don't assume size_t fits in unsigned int.
58484         Remove casts and duplicate code.
58485         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
58486         (memcpy): Remove definition.
58487         Merge in some clean-up and optimization changes from glibc.
58488         [BLOCKSIZE]: Move definition to top of file.
58489         Ensure that it is a multiple of 64.
58490         Rearrange loop exit tests so as to avoid performing an
58491         additional fread after encountering an error or EOF.
58492         * lib/md5.h (md5_uintptr): Define.
58493         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
58494         return to the initial working directory.  Preserve errno
58495         for caller.
58496         * lib/idcache.c: Include "xalloc.h".
58497         (xmalloc, xrealloc): Remove decls.
58498         (getuser): Remove casts no longer required in C89.
58499         * lib/human.c: Include stdio.h, for sprintf.
58500         * lib/group-member.c: Include "xalloc.h".
58501         (xmalloc, xrealloc): Remove decls.
58502         (get_group_info): Remove casts no longer required in C89.
58503         * lib/getusershell.c (readname): Remove casts no longer required in
58504         C89.
58505         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
58506         * lib/getline.c: Whitespace fix, from coreutils.
58507
58508 2003-08-13  Paul Eggert  <eggert@twinsun.com>
58509
58510         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
58511         Check for isascii.
58512
58513         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
58514         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
58515         Undo previous (whitespace-only) change.
58516
58517 2003-08-13  Paul Eggert  <eggert@twinsun.com>
58518
58519         * lib/exclude.c: Include <ctype.h>
58520         (IN_CTYPE_DOMAIN): New macro.
58521         (is_space): New fn.
58522         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
58523         and empty lines.
58524
58525         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
58526         Undo previous (whitespace-only) change.
58527
58528 2003-08-13  Paul Eggert  <eggert@twinsun.com>
58529
58530         * config/srclist-update: Change update back to the old behavior,
58531         leaving whitespace alone.  Use one 'sed' command rather than a
58532         pipeline.
58533         (fixlicense): Now a variable, not a function.
58534         (remove_trailing_blanks): Remove.
58535         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
58536         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
58537         Undo previous (whitespace-only) change.
58538
58539 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58540
58541         Merge from coreutils.
58542         * modules/euidaccess: Add lib_SOURCES, include for new
58543         file euidaccess.h
58544
58545 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58546
58547         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
58548         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
58549         Normalize leading white space and remove trailing white space.
58550
58551         Merge from coreutils
58552         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
58553
58554         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
58555         0.12.1.  These files are now being upgraded automatically by
58556         ../config/srclist-update.
58557
58558 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58559
58560         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
58561         Normalize leading white space and remove trailing white space.
58562         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
58563         notice, as per ../config/srclist-update.
58564
58565         Merge from coreutils.
58566         * lib/euidaccess.h: New file.
58567         * lib/euidaccess.c: Include it.
58568         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
58569         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
58570         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
58571
58572 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58573
58574         * config/srclist-update: Add copyright notice.
58575         (remove_id_lines, remove_trailing_blanks): New constants.
58576         (fixfile): Use them to normalize spacing a bit in copied files.
58577         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
58578         Normalize leading white space and remove trailing white space.
58579
58580         * config/texinfo.tex: Sync with texinfo.
58581
58582         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
58583         strtoul.c from libc, to merge coreutils whitespace changes.
58584
58585         * config/srclist.txt: Get the following m4 files from gettext:
58586         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
58587         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
58588         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
58589         wint_t.m4.
58590
58591 2003-08-12  Karl Berry  <karl@gnu.org>
58592
58593         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
58594         been made.
58595
58596 2003-08-11  Paul Eggert  <eggert@twinsun.com>
58597
58598         * modules/gnu-source, m4/gnu-source.m4:
58599         Remove; we're assuming Autoconf 2.54 or later now.
58600         Suggested by Bruno Haible.
58601         * MODULES.html.sh (func_all_modules): Remove gnu-source.
58602
58603 2003-08-11  Bruno Haible  <bruno@clisp.org>
58604
58605         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
58606
58607 2003-08-11  Bruno Haible  <bruno@clisp.org>
58608
58609         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
58610         (vasnprintf): Use it instead of wcslen.
58611
58612 2003-08-11  Bruno Haible  <bruno@clisp.org>
58613
58614         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
58615         value to ensure that _Bool promotes to int. Use #define for _Bool when
58616         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
58617
58618 2003-08-10  Karl Berry  <karl@gnu.org>
58619
58620         * lib/regex.h: update from libc (whitespace fix).
58621
58622 2003-08-09  Paul Eggert  <eggert@twinsun.com>
58623
58624         Merge some files from coreutils.  These changes were
58625         originally made by Jim Meyering.
58626         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
58627         many older Unixes require this.
58628         * lib/alloca.c (alloca): Remove cast to argument of free;
58629         no longer needed in C89.
58630         * lib/alloca_.h, regex.h: Fix white space to match
58631         what GNU indent does.
58632
58633 2003-08-09  Paul Eggert  <eggert@twinsun.com>
58634
58635         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
58636         apparently Emacs's Unicode mode got confused before my 2003-08-05
58637         checkin.
58638
58639 2003-08-08  Paul Eggert  <eggert@twinsun.com>
58640
58641         * m4/extensions.m4: New file.
58642         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
58643         Require gl_USE_SYSTEM_EXTENSIONS.
58644         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
58645         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
58646
58647 2003-08-08  Paul Eggert  <eggert@twinsun.com>
58648
58649         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
58650         * modules/extensions, modules/gnu-source: New files.
58651         * modules/timespec, modules/unlocked-io: Depend on extensions.
58652
58653 2003-08-07  Paul Eggert  <eggert@twinsun.com>
58654
58655         * modules/restrict: New file.
58656         * MODULES.html.sh (func_all_modules): Add restrict.
58657         * modules/regex: Depend on restrict.
58658
58659 2003-08-07  Paul Eggert  <eggert@twinsun.com>
58660
58661         * m4/restrict.m4: New file.
58662         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
58663
58664 2003-08-07  Bruno Haible  <bruno@clisp.org>
58665
58666         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
58667         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
58668
58669 2003-08-07  Bruno Haible  <bruno@clisp.org>
58670
58671         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
58672         makes the module 'getndelim2' compatible with the module 'getline'.
58673
58674 2003-08-05  Paul Eggert  <eggert@twinsun.com>
58675
58676         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
58677         byte with "\201" to avoid glitches when editing that source file
58678         with multi-gnome-terminal.
58679
58680 2003-08-05  Paul Eggert  <eggert@twinsun.com>
58681
58682         * lib/bumpalloc.h: Remove.
58683
58684 2003-08-05  Paul Eggert  <eggert@twinsun.com>
58685
58686         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
58687         * modules/bumpalloc: Remove.
58688
58689 2003-08-04  Paul Eggert  <eggert@twinsun.com>
58690
58691         * lib/getloadavg.c: Change copyright notice and spacing to conform to
58692         GNU coding style.
58693
58694         Merge from coreutils.
58695         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
58696         1. From glibc.
58697         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
58698         from Karl Berry, implemented by Jim Meyering.
58699         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
58700         from Dmitry V. Levin.
58701         Remove anachronistic cast of xrealloc.
58702         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
58703         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
58704         type. Otherwise, it wouldn't compile with at least /bin/cc on
58705         ymp-cray-unicos9.0.2.X.
58706         Combine two mostly-identical uses of alloca into one.
58707         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
58708
58709 2003-08-04  Dave Love  <d.love@dl.ac.uk>
58710
58711         [From Emacs.]
58712
58713         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
58714         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
58715         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
58716         obsolete NLIST_NAME_UNION.
58717         [__GNU__]: Undef BSD and FSCALE.
58718         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
58719
58720 2003-08-03  Paul Eggert  <eggert@twinsun.com>
58721
58722         * lib/stdbool_.h (_Bool): Make it signed char, instead of
58723         an enum type, so that it's guaranteed to promote to int.  See:
58724         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
58725
58726 2003-08-03  Karl Berry  <karl@gnu.org>
58727
58728         * config/depcomp: update from automake.
58729
58730 2003-07-31  Paul Eggert  <eggert@twinsun.com>
58731
58732         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
58733         (strerror): Don't assume that a printable int fits in 14 bytes.
58734
58735 2003-07-31  Bruno Haible  <bruno@clisp.org>
58736
58737         * modules/getpass-gnu: New file.
58738         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
58739
58740 2003-07-31  Bruno Haible  <bruno@clisp.org>
58741
58742         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
58743
58744 2003-07-24  Karl Berry  <karl@gnu.org>
58745
58746         * config/missing: update from automake.
58747
58748 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
58749             Bruno Haible  <bruno@clisp.org>
58750
58751         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
58752         * lib/getline.c (getline, getdelim): Likewise.
58753         Remove _GNU_SOURCE define; now it's defined in config.h through
58754         m4/getline.m4.
58755
58756 2003-07-23  Karl Berry  <karl@gnu.org>
58757
58758         * config/config.sub: update from prep.
58759
58760 2003-07-22  Paul Eggert  <eggert@twinsun.com>
58761
58762         * modules/xalloc (Depends-on): Add exitfail.
58763         * modules/xmemcoll: Likewise.
58764
58765 2003-07-22  Paul Eggert  <eggert@twinsun.com>
58766
58767         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
58768         over-parenthesization in macros.
58769
58770         Sync with coreutils.
58771
58772         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
58773         required by C99.
58774
58775         Use `exit_failure' for xalloc and xmemcoll instead of their own
58776         private exit-failure variables.
58777         * lib/xalloc.h (xalloc_exit_failure): Remove.
58778         * lib/xmalloc.c: Likewise.  Include exitfail.h.
58779         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
58780         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
58781         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
58782         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
58783
58784 2003-07-20  Jim Meyering  <jim@meyering.net>
58785
58786         * modules/closeout (Depends-on): Add exitfail.
58787         Suggestion from Bruno Haible.
58788
58789 2003-07-19  Karl Berry  <karl@gnu.org>
58790
58791         * config/config.sub: update from prep.
58792
58793 2003-07-18  Paul Eggert  <eggert@twinsun.com>
58794
58795         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
58796         Remove.
58797         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
58798         to test that it can stand by itself.  Include "exitfail.h".
58799         Clients should set exit_failure instead.
58800         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
58801
58802 2003-07-18  Bruno Haible  <bruno@clisp.org>
58803
58804         * modules/getndelim2: New file.
58805         * modules/getline: Share files with module getndelim2.
58806         * modules/getnline: Depend on getndelim2 instead of sharing files with
58807         it. Add getnline.c to lib_SOURCES.
58808         * MODULES.html.sh (func_all_modules): Add getndelim2.
58809
58810 2003-07-18  Bruno Haible  <bruno@clisp.org>
58811
58812         * m4/getndelim2.m4: New file.
58813         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
58814         invoke gl_PREREQ_GETNDELIM2.
58815         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
58816         gl_PREREQ_GETNDELIM2.
58817         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
58818         gl_GETNDELIM2.
58819
58820 2003-07-18  Bruno Haible  <bruno@clisp.org>
58821
58822         * lib/getndelim2.h: New file.
58823         * lib/getndelim2.c: Make into a module of its own. Include config.h,
58824         getndelim2.h.
58825         (getndelim2): Make non-static. Change return type to ssize_t.
58826         * lib/getline.h: Change argument names.
58827         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
58828         * lib/getnline.c: Include getndelim2.h.
58829
58830 2003-07-18  Andreas Schwab  <schwab@suse.de>
58831
58832         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
58833
58834 2003-07-17  Karl Berry  <karl@gnu.org>
58835
58836         * config/config.sub: update from prep.
58837
58838 2003-07-17  Bruno Haible  <bruno@clisp.org>
58839
58840         * modules/getnline: New file.
58841         * modules/getline: Add lib/getndelim2.c to source file list.
58842         * MODULES.html.sh (func_all_modules): Add getnline.
58843
58844 2003-07-17  Bruno Haible  <bruno@clisp.org>
58845
58846         * m4/getnline.m4: New file.
58847
58848 2003-07-17  Bruno Haible  <bruno@clisp.org>
58849
58850         * m4/Makefile.am.in: Remove file.
58851         * m4/Makefile.am: Remove file.
58852         * m4/Makefile.in: Remove file.
58853
58854 2003-07-17  Bruno Haible  <bruno@clisp.org>
58855
58856         * lib/getnline.h: New file.
58857         * lib/getnline.c: New file.
58858         * lib/getndelim2.c: New file, extracted from getline.c.
58859         (getndelim2): Renamed from getdelim2, with added nmax argument.
58860         * lib/getline.c: Include getndelim2.c.
58861         (getdelim2): Moved out to getndelim2.c.
58862         (getline, getdelim): Update.
58863
58864 2003-07-17  Bruno Haible  <bruno@clisp.org>
58865
58866         * lib/Makefile.am: Remove file.
58867         * lib/Makefile.in: Remove file.
58868
58869 2003-07-17  Bruno Haible  <bruno@clisp.org>
58870
58871         * configure.in: Remove file.
58872         * Makefile.in: Remove file.
58873
58874 2003-07-17  Bruno Haible  <bruno@clisp.org>
58875
58876         * MODULES.html.sh: Put the </BODY> right before </HTML>.
58877
58878 2003-07-16  Karl Berry  <karl@gnu.org>
58879
58880         * config/srclist-update: was running fixlicense twice, which caused
58881                 texinfo.tex to be nullified for some reason.  Simplify,
58882                 $gplsrc is no longer needed as far as I can see?
58883
58884 2003-07-16  Jim Meyering  <jim@meyering.net>
58885
58886         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
58887
58888 2003-07-15  Paul Eggert  <eggert@twinsun.com>
58889
58890         * config/srclist.txt: Get the following files from gettext-runtime/intl
58891         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
58892         ref-del.sin.  From Bruno Haible.
58893         * config/srclist-update (fixfile): Change grep pattern again, since the
58894         previous fix didn't work (there was another trailing $).  Use
58895         '[$]' to escape the $s.
58896
58897 2003-07-15  Karl Berry  <karl@gnu.org>
58898
58899         * lib/vasnprintf.c: update from gettext.
58900
58901 2003-07-15  Karl Berry  <karl@gnu.org>
58902
58903         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
58904         gets expanded when surrounded by '$'.
58905
58906 2003-07-15  Jim Meyering  <jim@meyering.net>
58907
58908         * modules/save-cwd: Don't depend on error.  From Derek Price.
58909
58910 2003-07-15  Jim Meyering  <jim@meyering.net>
58911
58912         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
58913
58914 2003-07-14  Simon Josefsson  <jas@extundo.com>
58915
58916         * modules/mempcpy: New file.
58917         * MODULES.html.sh (func_all_modules): Add mempcpy.
58918
58919 2003-07-14  Simon Josefsson  <jas@extundo.com>
58920
58921         * m4/mempcpy.m4: New file.
58922
58923 2003-07-14  Simon Josefsson  <jas@extundo.com>
58924
58925         * lib/mempcpy.h: New file.
58926         * lib/mempcpy.c: New file.
58927
58928 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58929
58930         * modules/getdate, modules/posixtm: Depend on mktime.
58931
58932 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58933
58934         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
58935         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
58936         unicodeio.c, unicodeio.h, unlocked-io.h:
58937         Switch from LGPL to GPL.
58938
58939 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58940
58941         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
58942         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
58943         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
58944         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
58945         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
58946         updated automatically by ../config/srclist-update.  This changes
58947         their license from LPGL to GPL.
58948
58949 2003-07-14  Paul Eggert  <eggert@twinsun.com>
58950
58951         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
58952         assumed to refer to the root of the most recent stable gettext version.
58953         * config/srclistvars.sh: Add defaults for eggert.
58954         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
58955         Match "This program" as well as "The program".  This is needed
58956         for gettext.
58957
58958 2003-07-14  Jim Meyering  <jim@meyering.net>
58959
58960         Don't emit diagnostics.  Let callers do that.
58961         * lib/save-cwd.c: Don't include "error.h".
58962         (save_cwd): Don't call error.  Ensure that errno is valid
58963         when returning nonzero.
58964
58965         * lib/save-cwd.h (restore_cwd): Update prototype.
58966         * lib/save-cwd.c (restore_cwd): Remove two parameters.
58967         Simplify.  Don't call error upon failure.  Let callers do that.
58968         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
58969         when auditing is enabled.  But don't bother updating the #if.
58970
58971 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
58972
58973         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
58974         it breaks C++ compilation.
58975         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
58976
58977 2003-07-10  Simon Josefsson  <jas@extundo.com>
58978
58979         * modules/strchrnul (Makefile.am): Add strchrnul.h.
58980
58981 2003-07-10  Jim Meyering  <jim@meyering.net>
58982
58983         * m4/clock_time.m4: Remove trailing blank.
58984         * m4/intmax_t.m4: Likewise.
58985
58986 2003-07-10  Jim Meyering  <jim@meyering.net>
58987
58988         * lib/vasnprintf.c: Remove trailing blanks.
58989         Make cpp indentation consistent.
58990
58991 2003-07-09  Paul Eggert  <eggert@twinsun.com>
58992
58993         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
58994         posixver.c, strftime.c, strnlen.c, strverscmp.c:
58995         Switch from LGPL to GPL.
58996
58997 2003-07-09  Paul Eggert  <eggert@twinsun.com>
58998
58999         * config/srclist.txt: Sort sublists.  Add
59000         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
59001         that differ from gnulib for one reason or another; we'd like this list
59002         to be smaller but for now let's document what we have.
59003
59004 2003-07-08  Paul Eggert  <eggert@twinsun.com>
59005
59006         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
59007         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
59008         and sweeter "eval x=$x".
59009         * config/srclist.txt: Get lib/argp* from glibc.
59010
59011 2003-07-07  Paul Eggert  <eggert@twinsun.com>
59012
59013         * lib/mktime.c: Fix some boundary cases and remove need for floating
59014         point.
59015
59016         Issue a compile-time diagnostic if time_t is floating point, or if
59017         two's complement arithmetic is not in effect, or if arithmetic
59018         right shift does not propagate the sign.  These assumptions were
59019         all in the original code but they weren't checked.
59020
59021         (TIME_T_MIDPOINT, verify): New macros.
59022         (__isleap): Remove; it has integer overflow problems.
59023         (leapyear): New function, without those problems.
59024         (ydhms_tm_diff): Remove; splitting into two parts.
59025         (ydhms_diff): New function, containing the arithmetic part of
59026         the old ydhms_tm_diff function.  Issue a compile-time
59027         diagnostic if we are not using C99 integer division.
59028         Avoid casts when possible.
59029         (guess_time_tm): New function, containing the checking part of
59030         the old ydhms_tm_diff function.  Return the new value, rather than
59031         the difference between it and the old.  Accept a new argument T
59032         so that *T specifies the old value.  Check for overflow in the result.
59033
59034         (__mktime_internal): Use a time_t offset, not a long int offset.
59035         This undoes the 2003-06-04 change, which is no longer needed now
59036         that we have better overflow checking.
59037         (localtime_offset): Likewise.
59038
59039         (__mktime_internal): Avoid harmful overflow on hosts where time_t
59040         and long are 64-bit but int is only 32-bit.
59041         (ydhms_diff): Use long int to store year1 and yday1.
59042         Issue a compile-time diagnostic if long int is not wide enough.
59043
59044         (__mktime_internal): Use long int to store adjusted year and yday.
59045         Use plain C rather than preprocessor commands, if that doesn't
59046         affect efficiency.
59047         Check for overflow (and try to repair) after each probe
59048         rather than checking only at the very end.  This avoids some bugs
59049         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
59050         does not equal GMT offset at maximum time).
59051         Use integer to check for overflow rather than floating point; this
59052         is more portable to non-IEEE hosts, and is a tad faster.
59053         When we detect that we are oscillating between two values,
59054         don't check whether tm_isdst has the requested value, since
59055         we already know the answer.  When tm_isdst has the wrong value,
59056         use a different heuristic to find the right one, based on the
59057         extreme values actually observed in practice in tz2003a,
59058         rather than the (overly optimistic) "previous 3 calendar quarters".
59059
59060         (not_equal_tm, print_tm, check_result): Use "const T" rather than
59061         "T const" to accommodate glibc style.
59062         (check_result): Use less-confusing report format.  "long" -> "long int.
59063         (main): Likewise.
59064         Don't loop if the iteration overflows time_t.
59065         Allow a negative step in the iteration.
59066
59067 2003-07-06  Karl Berry  <karl@gnu.org>
59068
59069         * config/depcomp: update from automake.
59070         * config/config.sub: update from prep.
59071
59072 2003-07-03  Karl Berry  <karl@gnu.org>
59073
59074         * config/config.guess: update from prep.
59075
59076 2003-07-01  Paul Eggert  <eggert@twinsun.com>
59077
59078         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
59079         xreadlink.c now includes it unconditionally.
59080
59081 2003-07-01  Paul Eggert  <eggert@twinsun.com>
59082
59083         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
59084         having it depend on HAVE_SYS_TYPES_H.
59085
59086 2003-07-01  Bruno Haible  <bruno@clisp.org>
59087
59088         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
59089         <sys/types.h> should be sufficient.
59090         Reported by Paul Eggert.
59091
59092 2003-06-26  Karl Berry  <karl@gnu.org>
59093
59094         * config/depcomp: update from automake.
59095
59096 2003-06-26  Bruno Haible  <bruno@clisp.org>
59097
59098         * modules/human: Depend on module stdbool.
59099
59100 2003-06-25  Bruno Haible  <bruno@clisp.org>
59101
59102         * modules/readlink: New file.
59103         * modules/xreadlink: Depend on it.
59104         * MODULES.html.sh (func_all_modules): Add readlink.
59105
59106 2003-06-25  Bruno Haible  <bruno@clisp.org>
59107
59108         * m4/readlink.m4: New file.
59109
59110 2003-06-25  Bruno Haible  <bruno@clisp.org>
59111
59112         * lib/readlink.c: New file.
59113
59114 2003-06-22  Karl Berry  <karl@gnu.org>
59115
59116         * config/srclist.txt: update mkinstalldirs from automake.
59117         * config/mkinstalldirs: update.
59118
59119 2003-06-22  Bruno Haible  <bruno@clisp.org>
59120
59121         Portability to mingw32.
59122         * m4/ssize_t.m4: New file, from GNU gettext.
59123         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
59124         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
59125
59126 2003-06-22  Bruno Haible  <bruno@clisp.org>
59127
59128         * modules/safe-read: Add m4/ssize_t.m4.
59129         * modules/xreadlink: Add m4/ssize_t.m4.
59130
59131 2003-06-20  Bruno Haible  <bruno@clisp.org>
59132
59133         Assume C89, so PARAMS isn't needed.
59134         * lib/unicodeio.h (PARAMS): Remove.
59135         * lib/unicodeio.c: Don't use PARAMS.
59136
59137 2003-06-18  Karl Berry  <karl@gnu.org>
59138
59139         * config/config.{guess,sub}: update from prep.
59140
59141 2003-06-18  Jim Meyering  <jim@meyering.net>
59142
59143         Merge changes from coreutils.
59144         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
59145         Remove explicit declarations of xmalloc and realloc.
59146         Include xalloc.h.
59147         (read_utmp): Remove anachronistic cast of xmalloc.
59148
59149 2003-06-17  Paul Eggert  <eggert@twinsun.com>
59150
59151         Assume C89, so PARAMS isn't needed.
59152         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
59153         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
59154         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
59155         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
59156         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
59157         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
59158         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
59159         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
59160         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
59161         lib/xstrtod.h, lib/xstrtol.h: Likewise.
59162         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
59163         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
59164         no longer needed. Anyway, config.h should always be included before any
59165         other file.
59166
59167 2003-06-11  Simon Josefsson  <jas@extundo.com>
59168
59169         * modules/sysexits: New file.
59170         * MODULES.html.sh (func_all_modules): Add sysexits.
59171
59172 2003-06-11  Simon Josefsson  <jas@extundo.com>
59173
59174         * lib/sysexit_.h: New file.
59175
59176 2003-06-11  Derek Price  <derek@ximbiot.com>
59177
59178         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
59179         necessary.
59180
59181 2003-06-11  Bruno Haible  <bruno@clisp.org>
59182
59183         * m4/sysexits.m4: New file.
59184
59185 2003-06-10  Simon Josefsson  <jas@extundo.com>
59186
59187         * lib/argp.h: New file, from glibc.
59188         * lib/argp-ba.c: New file, from glibc.
59189         * lib/argp-eexst.c: New file, from glibc.
59190         * lib/argp-fmtstream.c: New file, from glibc.
59191         * lib/argp-fmtstream.h: New file, from glibc.
59192         * lib/argp-fs-xinl.c: New file, from glibc.
59193         * lib/argp-help.c: New file, from glibc.
59194         * lib/argp-namefrob.h: New file, from glibc.
59195         * lib/argp-parse.c: New file, from glibc.
59196         * lib/argp-pv.c: New file, from glibc.
59197         * lib/argp-pvh.c: New file, from glibc.
59198         * lib/argp-xinl.c: New file, from glibc.
59199
59200 2003-06-10  Simon Josefsson  <jas@extundo.com>
59201
59202         * modules/strchrnul: New file.
59203
59204 2003-06-10  Simon Josefsson  <jas@extundo.com>
59205
59206         * modules/argp: New file.
59207
59208 2003-06-10  Simon Josefsson  <jas@extundo.com>
59209
59210         * m4/strchrnul.m4: New file.
59211
59212 2003-06-10  Simon Josefsson  <jas@extundo.com>
59213
59214         * lib/strchrnul.h: New file.
59215         * lib/strchrnul.c: New file.
59216
59217 2003-06-10  Bruno Haible  <bruno@clisp.org>
59218
59219         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
59220
59221 2003-06-07  Karl Berry  <karl@gnu.org>
59222
59223         * config/config.{guess,sub}: update from prep.
59224
59225 2003-06-07  Jim Meyering  <jim@meyering.net>
59226
59227         * modules/strtod: Use $(...) notation, not @...@ for
59228         AC_REPLACE'd variables.
59229         * modules/localcharset: Likewise.
59230
59231 2003-06-07  Jim Meyering  <jim@meyering.net>
59232
59233         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
59234         in place of my name in the copyright comment.
59235         Remove definition and uses of __P.
59236
59237         From coreutils.
59238         * lib/stat.c: Don't declare xmalloc explicitly.
59239         Instead, include "xalloc.h".
59240         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
59241         xrealloc, and xcalloc return values.
59242         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
59243         Improve comment.
59244         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
59245
59246 2003-06-07  Bruno Haible  <bruno@clisp.org>
59247
59248         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
59249         avoid AC_CONFIG_LINKS.
59250         * modules/fnmatch (Makefile.am): Use explicit creation rule for
59251         fnmatch.h, to avoid AC_CONFIG_LINKS.
59252         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
59253
59254 2003-06-07  Bruno Haible  <bruno@clisp.org>
59255
59256         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
59257         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
59258         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
59259         directory.
59260         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
59261         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
59262         directory.
59263
59264 2003-06-06  Jim Meyering  <jim@meyering.net>
59265
59266         Merge from coreutils.
59267         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
59268         Consolidate declarations and initializations of *_base* locals.
59269
59270         Merge from coreutils.
59271         This avoids a core dump on systems without GNU putenv,
59272         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
59273         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
59274         (unsetenv): New static function, from GNU libc.
59275         (rpl_putenv): Use it.
59276
59277         * lib/modechange.c: Remove trailing blanks.
59278
59279         Merge from coreutils.
59280         * lib/fsusage.c: Remove declaration of statfs.
59281         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
59282
59283         * lib/posixtm.c: Include <stdbool.h> unconditionally.
59284
59285 2003-06-06  Jim Meyering  <jim@meyering.net>
59286
59287         * lib/stdbool_.h: Renamed from stdbool.h.in.
59288
59289 2003-06-06  Jim Meyering  <jim@meyering.net>
59290             Bruno Haible  <bruno@clisp.org>
59291
59292         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
59293         Adjust Makefile.am snippet not to redirect directly to target.
59294         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
59295
59296 2003-06-05  Paul Eggert  <eggert@twinsun.com>
59297
59298         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
59299         mismatch, look in future quarters as well as past.  This fixes a
59300         bug when processing fall-backwards gaps immediately after a long
59301         period of daylight-saving time.
59302
59303         * lib/mktime.c: Assume freestanding C89 or better.
59304         (HAVE_LIMITS_H): Remove.  Assume it's 1.
59305         (__P): Remove; not used.
59306         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
59307         (mktime, not_equal_tm, print_tm, check_result,
59308         main): Use prototypes.  Use const * where appropriate.
59309         (main): Fix typo in testing code that uncovered by above changes.
59310         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
59311
59312 2003-06-04  Paul Eggert  <eggert@twinsun.com>
59313
59314         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
59315         locale.h, localeconv.  This merges changes from coreutils.
59316
59317         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
59318         It can be removed after the next Autoconf is released.
59319         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
59320         needed.
59321
59322 2003-06-04  Paul Eggert  <eggert@twinsun.com>
59323
59324         * lib/mktime.c: Fix Debian bug 177940
59325         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
59326         (localtime_offset): Now long int, not time_t, because we want it
59327         to be guaranteed to be signed.  All uses changed.
59328         (__mktime_internal): If overflow would occur when adding offset,
59329         don't add it.
59330
59331         Merge 'human' changes from coreutils.  Rewrite to support
59332         locale-specific notations like thousands separators.
59333         * lib/human.c: Simplify authorship notice.
59334         Include human.h immediately after config.h.
59335         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
59336         <limits.h>: Do not include, since human.h does.
59337         (SIZE_MAX, UINTMAX_MAX): New macros.
59338         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
59339         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
59340         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
59341         (power_letter): Renamed from suffixes.
59342         (generate_suffix_backwards): Remove.
59343         (adjust_value): Now takes int style (because of human.h changes)
59344         and long double value (for greater precision on some platforms).
59345         (group_number): New function.
59346         (human_readable): Use it.  Use integer options, not enum.
59347         Put the options before the sizes in the arg list.
59348         Support all the new options.
59349         The old human_readable function has been removed;
59350         use inttostr.h instead.
59351         (human_readable, default_block_size, humblock):
59352         Use uintmax_t, not int, for block sizes.
59353         (human_readable_inexact, block_size_types): Remove.
59354         (block_size_opts): New constant.
59355         (human_options): Renamed from human_block_size, with new signature
59356         that allows block sizes up to UINTMAX_MAX.  All callers changed.
59357         * lib/human.h: Add copyright and authorship notice.
59358         Include <limits.h> and <stdbool.h> unconditionally.
59359         (PARAMS): Remove.  All uses removed.
59360         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
59361         (enum human_inexact_style): Remove tag; now a nameless enum.
59362         (human_floor, human_ceiling, human_round_to_even): Now have
59363         values 2, 0, 1 rather than -1, 1, 0.
59364         (human_group_digits, human_suppress_point_zero, human_autoscale,
59365         human_base_1024, human_SI, human_B): New constants.
59366         (human_readable_inexact, human_block_size): Remove.
59367         (human_readable): Size args are now uintmax_t, not int.
59368         (human_options): New decl.
59369
59370         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
59371         unnecessary now that we assume C89 or better.  This change
59372         imported from coreutils.
59373
59374         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
59375         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
59376         in the 2003-05-30 sync from glibc.
59377
59378         .h files should stand alone, but we shouldn't include <sys/types.h>
59379         if we can get away with just <stddef.h>.
59380
59381         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
59382         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
59383         rather than <sys/types.h>, as we merely need size_t.
59384         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
59385         to get size_t.
59386         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
59387         Include <stdio.h>, to get FILE.
59388         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
59389         memcasecmp.h has included <stddef.h> and all we need is size_t.
59390         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
59391         our interface, instead of including <sys/types.h>
59392
59393 2003-06-04  Paul Eggert  <eggert@twinsun.com>
59394
59395         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
59396         now, as glibc mktime is buggy on non-glibc systems.
59397
59398 2003-06-03  Karl Berry  <karl@gnu.org>
59399
59400         * config/config.sub: update from prep.
59401
59402 2003-06-02  Paul Eggert  <eggert@twinsun.com>
59403
59404         [from coreutils]
59405         Fix some minor time-related bugs with POSIX time arguments.
59406         Some valid time stamps were being rejected (notably -1, and
59407         time stamps before 1900 on 64-bit hosts).  And some invalid
59408         time stamps were being accepted, e.g. September 31.
59409
59410         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
59411         that we can return (time_t) -1 successfully.
59412         * lib/posixtm.c: Likewise.
59413         [HAVE_STDBOOL_H]: Include <stdbool.h>.
59414         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
59415         (t): Remove static var.
59416         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
59417         of static var.  All uses changed.
59418         (year): Do not reject years before 1900; they can occur with
59419         64-bit time_t.
59420         (posix_time_parse): Do not check for out-of-range components;
59421         that is now the caller's responsibility, since our checks were
59422         only approximations.
59423         (posixtime): Use mktime to check for out-of-range components,
59424         since it knows them exactly.
59425         If mktime returns (time_t) -1, check whether an error actually occurred
59426         by invoking localtime on -1.
59427         (main) [TEST_POSIXTIME]: Check for input data errors, and report
59428         posixtime failures better.
59429         Improve the test data (in comments only).
59430
59431 2003-06-02  Karl Berry  <karl@gnu.org>
59432
59433         * config/mkinstalldirs (version): new variable.
59434         (--version): new option.
59435         (usage): improve message.
59436
59437 2003-05-30  Karl Berry  <karl@gnu.org>
59438
59439         * lib/mktime.c: update from libc.
59440
59441 2003-05-30  Bruno Haible  <bruno@clisp.org>
59442
59443         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
59444         * config/config.rpath: Upgrade to gettext-0.12.1.
59445
59446 2003-05-30  Bruno Haible  <bruno@clisp.org>
59447
59448         * m4/gettext.m4: Upgrade to gettext-0.12.1.
59449         * m4/nls.m4: New file, from gettext-0.12.1.
59450         * m4/po.m4: New file, from gettext-0.12.1.
59451         * m4/progtest.m4: Upgrade to gettext-0.12.1.
59452
59453 2003-05-30  Bruno Haible  <bruno@clisp.org>
59454
59455         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
59456         * lib/localcharset.h: Likewise.
59457         * lib/localcharset.c: Likewise.
59458
59459 2003-05-29  Karl Berry  <karl@gnu.org>
59460
59461         * config/config.rpath: update from gettext.
59462
59463 2003-05-28  Paul Eggert  <eggert@twinsun.com>
59464
59465         Assume the headers required for C89 freestanding compilers.
59466         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
59467         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
59468         * m4/human.m4 (gl_HUMAN): Likewise.
59469         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
59470         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
59471         * m4/userspec.m4 (gl_USERSPEC): Likewise.
59472         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
59473         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
59474         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
59475
59476 2003-05-28  Paul Eggert  <eggert@twinsun.com>
59477
59478         Assume the headers required for C89 freestanding compilers.
59479         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
59480         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
59481         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
59482         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
59483         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
59484         define, since <limits.h> is guaranteed to do that.
59485         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
59486         * lib/exclude.c: Include <stdbool.h> unconditionally.
59487         * lib/tempname.c: Include <stddef.h> unconditionally.
59488         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
59489         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
59490         <stddef.h> does that.
59491         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
59492         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
59493         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
59494         needed.
59495         * lib/xstrtol.c: Likewise.
59496         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
59497         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
59498
59499         * lib/addext.c (addext): Use assignment rather than cast, to avoid
59500         warnings on some platforms.
59501
59502         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
59503         arbitrarily.
59504
59505 2003-05-26  Jim Meyering  <jim@meyering.net>
59506
59507         Merge in a change from coreutils:
59508         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
59509         that is guaranteed to be `no'.  Use `no_such_member' to indicate
59510         that condition, rather than `-1' which is slightly misleading.
59511         Change the name of the cache variable to have the gl_ prefix.
59512         Prompted by a patch from Richard Dawe for DJGPP.
59513
59514 2003-05-24  Karl Berry  <karl@gnu.org>
59515
59516         * config/config.guess: update from prep.
59517
59518 2003-05-22  Karl Berry  <karl@gnu.org>
59519
59520         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
59521
59522 2003-05-20  Karl Berry  <karl@gnu.org>
59523
59524         * config/config.guess: update from prep.
59525
59526 2003-05-18  Karl Berry  <karl@gnu.org>
59527
59528         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
59529         might actually be set by the user.
59530
59531         * config/depcomp, install-sh, mdate-sh: update from automake.
59532
59533 2003-05-17  Bruno Haible  <bruno@clisp.org>
59534
59535         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
59536         invalid expansion for AC_EGREP_CPP.
59537         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
59538         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
59539         Suggested by Akim Demaille <akim@epita.fr> in
59540         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
59541
59542 2003-05-12  Jim Meyering  <jim@meyering.net>
59543
59544         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
59545         the space-padded-by-default conversion specifiers, %e, %k, %l.
59546
59547 2003-05-12  Bruno Haible  <bruno@clisp.org>
59548
59549         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
59550         the string is longer than 4 KB.
59551
59552 2003-05-11  Karl Berry  <karl@gnu.org>
59553
59554         * config/config.{guess,sub}: update from prep.
59555
59556 2003-05-09  Bruno Haible  <bruno@clisp.org>
59557
59558         * modules/error: Add m4/strerror_r.m4 to file list.
59559
59560 2003-05-03  Bruno Haible  <bruno@clisp.org>
59561
59562         Upgrade to Unicode-4.0.
59563         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
59564         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
59565         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
59566         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
59567         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
59568         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
59569         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
59570         Change width of U+E0100..U+E01EF from 1 to 0.
59571
59572 2003-04-25  Jim Meyering  <jim@meyering.net>
59573
59574         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
59575         of type size_t, not int.
59576
59577 2003-04-25  Bruno Haible  <bruno@clisp.org>
59578
59579         * lib/copy-file.c: Include <stddef.h>, for size_t.
59580
59581 2003-04-21  Paul Eggert  <eggert@twinsun.com>
59582
59583         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
59584         code which expansion is under static control.  Patch imported from
59585         Akim Demaille's patch to Bison; see
59586         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
59587
59588 2003-04-14  Bruno Haible  <bruno@clisp.org>
59589
59590         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
59591
59592 2003-04-11  Jim Meyering  <jim@meyering.net>
59593
59594         Merge changes from Coreutils.
59595
59596         2003-03-22  Jim Meyering  <jim@meyering.net>
59597
59598         * lib/strftime.c (widen): Cast alloca return value to proper type.
59599
59600         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
59601
59602         From GNU libc.
59603         * lib/strftime.c (my_strftime): Handle very large width
59604         specifications for numeric values correctly.  Improve checks for
59605         overflow.
59606
59607         2003-01-19  Jim Meyering  <jim@meyering.net>
59608
59609         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
59610         definitions.
59611         (nl_get_alt_digit) [! defined my_strftime]: Define.
59612         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
59613         _nl_get_alt_digit and _nl_get_walt_digit.
59614
59615         * lib/strftime.c (my_strftime): Merge in locale-related changes from
59616         libc. These changes have no effect outside of _LIBC.
59617
59618 2003-04-10  Bruno Haible  <bruno@clisp.org>
59619
59620         * modules/findprog: New file.
59621         * MODULES.html.sh (func_all_modules): Add it.
59622
59623 2003-04-10  Bruno Haible  <bruno@clisp.org>
59624
59625         * m4/findprog.m4: New file.
59626         * m4/eaccess.m4: New file.
59627
59628 2003-04-10  Bruno Haible  <bruno@clisp.org>
59629
59630         * lib/findprog.h: New file, from GNU gettext.
59631         * lib/findprog.c: New file, from GNU gettext.
59632
59633 2003-04-05  Jim Meyering  <jim@meyering.net>
59634
59635         Merge changes from Coreutils.
59636
59637         * lib/exclude.h (PARAMS): Remove definition and uses.
59638         * lib/exclude.c: Remove uses of `PARAMS'.
59639
59640         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
59641         Add test-cases for DOS filenames. Declare program_name.
59642         (main): Set up program_name.  Patch by Rich Dawe.
59643
59644         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
59645         error from mntctl.
59646         Use mntctl's return value to drive the entry-processing loop, since
59647         we can't rely on the value of the vmt_length member in the last
59648         entry.  On some systems doing so could result in exhausting
59649         virtual memory.  Based in part on a patch from Mike Jetzer.
59650
59651 2003-04-04  Bruno Haible  <bruno@clisp.org>
59652
59653         * modules/linebreak: New file.
59654         * MODULES.html.sh (func_all_modules): Add it.
59655
59656 2003-04-04  Bruno Haible  <bruno@clisp.org>
59657
59658         * m4/linebreak.m4: New file.
59659
59660 2003-04-04  Bruno Haible  <bruno@clisp.org>
59661
59662         * lib/linebreak.h: New file, from GNU gettext.
59663         * lib/linebreak.c: New file, from GNU gettext with slight
59664         modifications.
59665         * lib/lbrkprop.h: New file, from GNU gettext.
59666
59667 2003-04-03  Bruno Haible  <bruno@clisp.org>
59668
59669         * modules/utf8-ucs4: New file.
59670         * modules/utf16-ucs4: New file.
59671         * modules/ucs4-utf8: New file.
59672         * modules/ucs4-utf16: New file.
59673         * MODULES.html.sh (func_all_modules): Add them.
59674
59675 2003-04-03  Bruno Haible  <bruno@clisp.org>
59676
59677         * m4/utf-ucs4.m4: New file.
59678         * m4/ucs4-utf.m4: New file.
59679
59680 2003-04-03  Bruno Haible  <bruno@clisp.org>
59681
59682         * lib/utf8-ucs4.h: New file, from GNU gettext.
59683         * lib/utf16-ucs4.h: New file, from GNU gettext.
59684         * lib/ucs4-utf8.h: New file, from GNU gettext.
59685         * lib/ucs4-utf16.h: New file, from GNU gettext.
59686
59687 2003-04-02  Bruno Haible  <bruno@clisp.org>
59688
59689         * modules/binary-io: New file.
59690         * MODULES.html.sh (func_all_modules): Add it.
59691
59692 2003-04-02  Bruno Haible  <bruno@clisp.org>
59693
59694         * lib/binary-io.h: New file, from GNU gettext.
59695
59696 2003-04-01  Bruno Haible  <bruno@clisp.org>
59697
59698         * modules/pathname: New file.
59699         * MODULES.html.sh (func_all_modules): Add it.
59700
59701 2003-04-01  Bruno Haible  <bruno@clisp.org>
59702
59703         * lib/pathname.h: New file, from GNU gettext.
59704         * lib/concatpath.c: New file, from GNU gettext.
59705
59706 2003-03-30  Bruno Haible  <bruno@clisp.org>
59707
59708         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
59709
59710 2003-03-30  Bruno Haible  <bruno@clisp.org>
59711
59712         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
59713         function chown() doesn't exist.
59714
59715 2003-03-28  Bruno Haible  <bruno@clisp.org>
59716
59717         * modules/copy-file: New file.
59718         * MODULES.html.sh (func_all_modules): Add it.
59719
59720 2003-03-28  Bruno Haible  <bruno@clisp.org>
59721
59722         * m4/copy-file.m4: New file.
59723
59724 2003-03-28  Bruno Haible  <bruno@clisp.org>
59725
59726         * lib/copy-file.h: New file, from GNU gettext.
59727         * lib/copy-file.c: New file, from GNU gettext.
59728
59729 2003-03-18  Jim Meyering  <jim@meyering.net>
59730
59731         * lib/quote.c (quote_n): Fix typo in comment.
59732
59733 2003-03-18  Bruno Haible  <bruno@clisp.org>
59734
59735         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
59736         checking.
59737         * m4/onceonly_2_57.m4: Likewise.
59738
59739 2003-03-17  Bruno Haible  <bruno@clisp.org>
59740
59741         * m4/onceonly.m4: Require autoconf 2.54 or newer.
59742         (m4_quote): Remove macro.
59743         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
59744
59745 2003-03-14  Jim Meyering  <jim@meyering.net>
59746
59747         Merge changes from Coreutils.
59748         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
59749         to be const, in order to avoid warnings.
59750         (obstack_room): Likewise.
59751         (obstack_empty_p): Likewise.
59752
59753 2003-03-14  Bruno Haible  <bruno@clisp.org>
59754
59755         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
59756         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
59757
59758 2003-03-13  Paul Eggert  <eggert@twinsun.com>
59759
59760         Merge changes from Bison.
59761         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
59762         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
59763         when compiling Bison 1.875's `bitset bset = obstack_alloc
59764         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
59765         * lib/hash.c: Include <stdbool.h> unconditionally.
59766
59767 2003-03-13  Paul Eggert  <eggert@twinsun.com>
59768
59769         * m4/onceonly.m4 (m4_quote): New macro.
59770         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
59771         Quote AC_FOREACH variable-expansions properly.
59772
59773 2003-03-13  Paul Eggert  <eggert@twinsun.com>
59774
59775         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
59776
59777 2003-03-09  Paul Eggert  <eggert@twinsun.com>
59778
59779         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
59780         Reported by Bruce Becker; see:
59781         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
59782
59783 2003-03-03  Paul Eggert  <eggert@twinsun.com>
59784             Bruno Haible  <bruno@clisp.org>
59785
59786         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
59787         Reported by John Hughes, see
59788         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
59789
59790 2003-02-20  Bruno Haible  <bruno@clisp.org>
59791
59792         * MODULES.html.sh (func_all_modules): Add poll.
59793
59794 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
59795
59796         * modules/poll: New file.
59797
59798 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
59799
59800         * lib/poll_.h: New file.
59801         * lib/poll.c: New file.
59802
59803 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
59804
59805         * m4/poll.m4: New file.
59806
59807 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
59808
59809         * modules/mathl: New file.
59810
59811 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
59812
59813         * lib/mathl.h: New file.
59814         * lib/acosl.c: New file.
59815         * lib/asinl.c: New file.
59816         * lib/atanl.c: New file.
59817         * lib/ceill.c: New file.
59818         * lib/cosl.c: New file.
59819         * lib/expl.c: New file.
59820         * lib/floorl.c: New file.
59821         * lib/frexpl.c: New file.
59822         * lib/ldexpl.c: New file.
59823         * lib/logl.c: New file.
59824         * lib/sincosl.c: New file.
59825         * lib/sinl.c: New file.
59826         * lib/sqrtl.c: New file.
59827         * lib/tanl.c: New file.
59828         * lib/trigl.c: New file.
59829         * lib/trigl.h: New file.
59830
59831 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
59832
59833         * m4/mathl.m4: New file.
59834
59835 2003-02-18  Bruno Haible  <bruno@clisp.org>
59836
59837         * MODULES.html.sh (func_all_modules): Add mathl.
59838
59839 2003-02-17  Bruno Haible  <bruno@clisp.org>
59840
59841         * modules/mkdtemp: New module.
59842         * MODULES.html.sh (func_all_modules): Add it.
59843
59844 2003-02-17  Bruno Haible  <bruno@clisp.org>
59845
59846         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
59847
59848 2003-02-17  Bruno Haible  <bruno@clisp.org>
59849
59850         * lib/mkdtemp.h: New file, from GNU gettext.
59851         * lib/mkdtemp.c: New file, from GNU gettext.
59852
59853 2003-02-02  Jim Meyering  <jim@meyering.net>
59854
59855         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
59856         e.g. glibc-2.2.93.
59857
59858 2003-01-31  Bruno Haible  <bruno@clisp.org>
59859
59860         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
59861         'rpl_rename'.
59862         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
59863         'rpl_strnlen'.
59864         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
59865         'rpl_strtod'.
59866         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
59867         'rpl_utime'.
59868
59869 2003-01-31  Bruno Haible  <bruno@clisp.org>
59870
59871         * lib/rename.c: #undef rename before defining rpl_rename.
59872         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
59873
59874 2003-01-30  Bruno Haible  <bruno@clisp.org>
59875
59876         * modules/vasnprintf, modules/vasprintf: New modules.
59877         * MODULES.html.sh (func_all_modules): Add them.
59878
59879 2003-01-30  Bruno Haible  <bruno@clisp.org>
59880
59881         * m4/signed.m4: New file, from GNU gettext.
59882         * m4/longdouble.m4: New file, from GNU gettext.
59883         * m4/wchar_t.m4: New file, from GNU gettext.
59884         * m4/wint_t.m4: New file, from GNU gettext.
59885         * m4/vasnprintf.m4: New file.
59886         * m4/vasprintf.m4: New file.
59887
59888 2003-01-30  Bruno Haible  <bruno@clisp.org>
59889
59890         * lib/printf-args.h: New file, from GNU gettext.
59891         * lib/printf-args.c: New file, from GNU gettext.
59892         * lib/printf-parse.h: New file, from GNU gettext.
59893         * lib/printf-parse.c: New file, from GNU gettext.
59894         * lib/vasnprintf.h: New file, from GNU gettext.
59895         * lib/vasnprintf.c: New file, from GNU gettext.
59896         * lib/asnprintf.c: New file, from GNU gettext.
59897         * lib/vasprintf.h: New file, from GNU gettext with modifications.
59898         * lib/vasprintf.c: New file, from GNU gettext.
59899         * lib/asprintf.c: New file, from GNU gettext.
59900
59901 2003-01-29  Bruno Haible  <bruno@clisp.org>
59902
59903         * modules/stpncpy: New module.
59904         * MODULES.html.sh (func_all_modules): Add it.
59905
59906 2003-01-29  Bruno Haible  <bruno@clisp.org>
59907
59908         * m4/stpncpy.m4: New file.
59909
59910 2003-01-29  Bruno Haible  <bruno@clisp.org>
59911
59912         * lib/stpncpy.h: New file, from GNU gettext with modifications.
59913         * lib/stpncpy.c: New file, from GNU gettext with modifications.
59914
59915 2003-01-28  Bruno Haible  <bruno@clisp.org>
59916
59917         * modules/c-ctype: New module.
59918         * MODULES.html.sh (func_all_modules): Add it.
59919
59920 2003-01-28  Bruno Haible  <bruno@clisp.org>
59921
59922         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
59923         Paul Eggert.
59924         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
59925         Paul Eggert.
59926
59927 2003-01-27  Bruno Haible  <bruno@clisp.org>
59928
59929         * modules/xsetenv: New module.
59930         * MODULES.html.sh (func_all_modules): Add it.
59931
59932 2003-01-27  Bruno Haible  <bruno@clisp.org>
59933
59934         * lib/xsetenv.h: New file, from GNU gettext.
59935         * lib/xsetenv.c: New file, from GNU gettext.
59936
59937 2003-01-23  Jim Meyering  <jim@meyering.net>
59938
59939         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
59940         from working on systems without dirfd (at least Irix and OSF1/Tru64).
59941
59942 2003-01-23  Bruno Haible  <bruno@clisp.org>
59943
59944         * modules/minmax: New module.
59945         * MODULES.html.sh (func_all_modules): Add it.
59946
59947 2003-01-23  Bruno Haible  <bruno@clisp.org>
59948
59949         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
59950         Eggert.
59951
59952 2003-01-22  Bruno Haible  <bruno@clisp.org>
59953
59954         * modules/exit: New module.
59955         * MODULES.html.sh (func_all_modules): Add it.
59956
59957 2003-01-22  Bruno Haible  <bruno@clisp.org>
59958
59959         * lib/exit.h: New file, from GNU gettext.
59960
59961 2003-01-19  Bruno Haible  <bruno@clisp.org>
59962
59963         * gnulib-tool: Recognize option --extract-maintainer.
59964         (func_get_maintainer): New function.
59965         * modules/*: Add Maintainer entry.
59966
59967 2003-01-16  Jim Meyering  <jim@meyering.net>
59968
59969         * m4/regex.m4: The `regex' struct is both input and output.
59970         Initialize it before each use.  Patch by Tim Waugh.
59971
59972 2003-01-16  Bruno Haible  <bruno@clisp.org>
59973
59974         * MODULES.html.sh: Add a table of contents. Add the module name as
59975         leftmost column. Add hyperlinks.
59976
59977 2003-01-15  Bruno Haible  <bruno@clisp.org>
59978
59979         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
59980
59981 2003-01-15  Bruno Haible  <bruno@clisp.org>
59982
59983         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
59984         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
59985         suffix.
59986
59987 2003-01-15  Bruno Haible  <bruno@clisp.org>
59988
59989         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
59990
59991 2003-01-15  Bruno Haible  <bruno@clisp.org>
59992
59993         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
59994         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
59995
59996 2003-01-14  Jim Meyering  <jim@meyering.net>
59997
59998         * lib/same.c (same_name): Tweak a comment.
59999
60000 2003-01-14  Bruno Haible  <bruno@clisp.org>
60001
60002         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
60003         when a string comparison is sufficient.
60004
60005 2003-01-14  Bruno Haible  <bruno@clisp.org>
60006
60007         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
60008         'unsigned int'.
60009
60010 2003-01-14  Bruno Haible  <bruno@clisp.org>
60011
60012         * lib/hash-pjw.c: Add comment about low quality of this function.
60013
60014 2003-01-13  Bruno Haible  <bruno@clisp.org>
60015
60016         * modules/stpcpy: Distribute lib/stpcpy.h.
60017         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
60018
60019 2003-01-13  Bruno Haible  <bruno@clisp.org>
60020
60021         * modules/*: Add a description.
60022         * modules/strpbrk: Fix Makefile.am snippet.
60023         * modules/strtoimax: Fix dependencies.
60024         * modules/strtoumax: Likewise.
60025
60026 2003-01-13  Bruno Haible  <bruno@clisp.org>
60027
60028         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
60029         * modules/alloca (Makefile.am): All object files depend on alloca.h.
60030         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
60031
60032 2003-01-13  Bruno Haible  <bruno@clisp.org>
60033
60034         * gnulib-tool (func_create_testdir): Store config/* files in the main
60035         directory.
60036         * config.rpath: Move to ...
60037         * config/config.rpath: ... here.
60038         * modules/gettext: Contains config/config.rpath, not config.rpath.
60039         * modules/iconv: Likewise.
60040
60041 2003-01-12  Paul Eggert  <eggert@twinsun.com>
60042
60043         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
60044         to avoid collisions with libcurses and libreadline.
60045
60046         * m4/getstr.m4: Remove.
60047         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
60048
60049 2003-01-12  Paul Eggert  <eggert@twinsun.com>
60050
60051         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
60052         to avoid collisions with libcurses and libreadline.
60053
60054         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
60055         * lib/getstr.h, getstr.c: Remove.
60056         * lib/getline.c: Include "getline.h", to check interface.
60057         Move body of old getstr.c here: this defines MIN_CHUNK and
60058         declares getdelim2, which is renamed from getstr.
60059         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
60060
60061         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
60062         All uses changed.
60063         * lib/linebuffer.h: Likewise.
60064         (readline): Remove backward-compatibility macro.
60065
60066 2003-01-12  Paul Eggert  <eggert@twinsun.com>
60067
60068         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
60069         to avoid collisions with libcurses and libreadline.
60070         * getstr: Remove.
60071         * MODULES.html.sh: Remove getstr.
60072         * modules/getline: Depend on unlocked-io, not getstr.
60073
60074 2003-01-12  Jim Meyering  <jim@meyering.net>
60075
60076         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
60077
60078 2003-01-10  Bruno Haible  <bruno@clisp.org>
60079
60080         * modules/alloca: Change Makefile.am requirements. Simplify Include
60081         requirements. Add lib/alloca_.h to file list.
60082
60083 2003-01-10  Bruno Haible  <bruno@clisp.org>
60084
60085         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
60086
60087 2003-01-10  Bruno Haible  <bruno@clisp.org>
60088
60089         * lib/alloca_.h: New file.
60090         * lib/getdate.y: Unconditionally include alloca.h.
60091         * lib/makepath.c: Likewise.
60092         * lib/setenv.c: Likewise.
60093         * lib/userspec.c: Likewise.
60094
60095 2003-01-09  Karl Berry  <karl@gnu.org>
60096
60097         * MODULES.html.sh: include `dirname $0` in PATH, to find
60098         gnulib-tool.
60099
60100 2003-01-09  Bruno Haible  <bruno@clisp.org>
60101
60102         * modules/stdbool: Change configure.ac, Makefile.am requirements.
60103         Simplify Include requirements. Add lib/stdbool.h.in to file list.
60104
60105 2003-01-09  Bruno Haible  <bruno@clisp.org>
60106
60107         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
60108
60109 2003-01-09  Bruno Haible  <bruno@clisp.org>
60110
60111         * lib/stdbool.h.in: New file.
60112
60113 2003-01-09  Bruno Haible  <bruno@clisp.org>
60114
60115         * gnulib-tool (func_all_modules): Ignore files ending in ~.
60116         * MODULES.html.sh: Likewise.
60117
60118 2003-01-08  Jim Meyering  <jim@meyering.net>
60119
60120         * lib/full-write.c: Undefine and define-away `const' after inclusion
60121         of errno.h, not before.  Suggestion from Bruno Haible.
60122
60123 2003-01-08  Bruno Haible  <bruno@clisp.org>
60124
60125         * modules/full-read: Depend on full-write.
60126
60127 2003-01-08  Bruno Haible  <bruno@clisp.org>
60128
60129         * lib/safe-read.c: Include specification header first, to ensure its
60130         selfcontainedness.
60131         * lib/full-write.c: Likewise.
60132
60133 2003-01-07  Jim Meyering  <jim@meyering.net>
60134
60135         * lib/full-write.c: Rework so that it may serve to define full_read,
60136         too.
60137         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
60138
60139 2003-01-07  Bruno Haible  <bruno@clisp.org>
60140
60141         * lib/strtoimax.c: Include <stdint.h> as an alternative to
60142         <inttypes.h>.
60143         * lib/xstrtol.h: Likewise.
60144         * lib/xstrtoimax.c: Likewise.
60145         * lib/xstrtoumax.c: Likewise.
60146         * lib/human.h: Likewise.
60147
60148         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
60149         on systems that have <inttypes.h> but not <stdint.h>.
60150
60151 2003-01-07  Bruno Haible  <bruno@clisp.org>
60152
60153         * MODULES.html.sh: Add copyright notice.
60154         (missed_files): Omit CVS directory entries.
60155         (func_module): Make it work with sed-3.02.
60156         * MODULES.txt: Remove file.
60157
60158 2003-01-06  Jim Meyering  <jim@meyering.net>
60159
60160         * lib/version-etc.c: Update year in translatable copyright string.
60161
60162 2003-01-03  Karl Berry  <karl@gnu.org>
60163
60164         * config/config.{guess,sub}: update from prep.
60165
60166 2003-01-02  Karl Berry  <karl@gnu.org>
60167
60168         * doc/COPYING.DOC: belatedly updated to 1.2.
60169
60170 2003-01-01  Karl Berry  <karl@gnu.org>
60171
60172         * gnulib-tool (func_verify_module): report module name $module in
60173         error message, not $1.
60174         * gnulib-tool (create-testdir): don't complain if destdir couldn't
60175         be created, only if it doesn't exist.
60176         * gnulib-tool (last_checkin_date): don't expand the $Date here.
60177
60178 2002-12-31  Paul Eggert  <eggert@twinsun.com>
60179
60180         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
60181
60182 2002-12-31  Paul Eggert  <eggert@twinsun.com>
60183
60184         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
60185         memcmp if strcoll doesn't work.
60186
60187 2002-12-31  Bruno Haible  <bruno@clisp.org>
60188
60189         * lib/utime.c (utime_null): No need to call ftruncate if the file was
60190         nonempty.
60191
60192 2002-12-31  Bruno Haible  <bruno@clisp.org>
60193
60194         * lib/memcoll.c (STRCOLL): New macro.
60195         (memcoll): Use it.
60196
60197 2002-12-31  Bruno Haible  <bruno@clisp.org>
60198
60199         * lib/localcharset.h: New file.
60200         * lib/localcharset.c: Include it.
60201         * lib/unicodeio.c: Likewise.
60202
60203 2002-12-31  Bruno Haible  <bruno@clisp.org>
60204
60205         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
60206         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
60207
60208 2002-12-31  Bruno Haible  <bruno@clisp.org>
60209
60210         * lib/getline.h: Include <stddef.h>, for size_t.
60211
60212         * lib/unicodeio.h: Include <stddef.h>, for size_t.
60213         * lib/unicodeio.c: Don't include <stddef.h>.
60214
60215 2002-12-31  Bruno Haible  <bruno@clisp.org>
60216
60217         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
60218         HAVE_TM_ZONE.
60219
60220 2002-12-24  Karl Berry  <karl@gnu.org>
60221
60222         * config/config.guess: update from prep.
60223
60224 2002-12-24  Bruno Haible  <bruno@clisp.org>
60225
60226         General infrasructure.
60227         * m4/README: Rewritten.
60228         * m4/onceonly.m4: New file.
60229         * m4/onceonly_2_57.m4: New file.
60230
60231         Module atexit.
60232         * m4/atexit.m4: New file.
60233
60234         Module strtod.
60235         * m4/strtod.m4: New file.
60236
60237         Module strtol.
60238         * m4/strtol.m4: New file.
60239
60240         Module strtoul.
60241         * m4/strtoul.m4: New file.
60242
60243         Module memchr.
60244         * m4/memchr.m4: New file.
60245
60246         Module memcmp.
60247         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
60248         (jm_FUNC_MEMCMP): Invoke it.
60249
60250         Module memcpy.
60251         * m4/memcpy.m4: New file.
60252
60253         Module memmove.
60254         * m4/memmove.m4: New file.
60255
60256         Module memset.
60257         * m4/memset.m4: New file.
60258
60259         Module strcspn.
60260         * m4/strcspn.m4: New file.
60261
60262         Module strpbrk.
60263         * m4/strpbrk.m4: New file.
60264
60265         Module strstr.
60266         * m4/strstr.m4: New file.
60267
60268         Module strerror.
60269         * m4/strerror.m4: New file.
60270
60271         Module mktime.
60272         * m4/mktime.m4: Renamed from jm-mktime.m4.
60273         (gl_PREREQ_MKTIME): New macro.
60274         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
60275
60276         Module malloc.
60277         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
60278         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
60279         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
60280
60281         Module realloc.
60282         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
60283         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
60284         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
60285
60286         Module strftime.
60287         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
60288         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
60289         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
60290         gl_TM_GMTOFF.
60291         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
60292
60293         Module xalloc.
60294         * m4/xalloc.m4: New file.
60295
60296         Module alloca.
60297         * m4/alloca.m4: New file.
60298
60299         Module putenv.
60300         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
60301         (jm_FUNC_PUTENV): Invoke it.
60302
60303         Module setenv.
60304         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
60305         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
60306         when invoked twice.
60307         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
60308         gt_FUNC_SETENV.
60309
60310         Module memrchr.
60311         * m4/memrchr.m4: New file.
60312
60313         Module stpcpy.
60314         * m4/stpcpy.m4: New file.
60315
60316         Module strcase.
60317         * m4/strcase.m4: New file.
60318
60319         Module strdup.
60320         * m4/strdup.m4: New file.
60321
60322         Module strnlen.
60323         * m4/strnlen.m4: New file.
60324
60325         Module strndup.
60326         * m4/strndup.m4: New file.
60327
60328         Module xstrtod.
60329         * m4/xstrtod.m4: New file.
60330
60331         Module xstrtol.
60332         * m4/xstrtol.m4: New file.
60333
60334         Module getdate.
60335         * m4/getdate.m4: New file.
60336
60337         Module unlocked-io.
60338         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
60339         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
60340         * m4/jm-glibc-io.m4n: Remove file.
60341
60342         Module long-options.
60343         * m4/long-options.m4: New file.
60344
60345         Module md5.
60346         * m4/md5.m4: New file.
60347
60348         Module sha.
60349         * m4/sha.m4: New file.
60350
60351         Module getstr.
60352         * m4/getstr.m4: New file.
60353
60354         Module getline.
60355         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
60356         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
60357         <sys/types.h>, for size_t. Use the function name gnu_getline, not
60358         simply getline. Infoke gl_PREREQ_GETLINE.
60359
60360         Module obstack.
60361         * m4/obstack.m4: New file.
60362
60363         Module hash.
60364         * m4/hash.m4: New file.
60365
60366         Module readtokens.
60367         * m4/readtokens.m4: New file.
60368
60369         Module strverscmp.
60370         * m4/strverscmp.m4: New file.
60371
60372         Module stdbool.
60373         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
60374         OSF/1.
60375
60376         Module strtoll.
60377         * m4/strtoll.m4: New file.
60378
60379         Module strtoull.
60380         * m4/strtoull.m4: New file.
60381
60382         Module strtoimax.
60383         * m4/strtoimax.m4: New file.
60384
60385         Module strtoumax.
60386         * m4/strtoumax.m4: New file.
60387
60388         Module xstrtoimax.
60389         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
60390         jm_AC_PREREQ_XSTRTOIMAX.
60391         Moved the strtol prerequisites to strtol.m4.
60392         Moved the strtoll prerequisites to strtoll.m4.
60393         Moved the strtoimax prerequisites to strtoimax.m4.
60394
60395         Module xstrtoumax.
60396         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
60397         jm_AC_PREREQ_XSTRTOUMAX.
60398         Moved the strtoul prerequisites to strtoul.m4.
60399         Moved the strtoull prerequisites to strtoull.m4.
60400         Moved the strtoumax prerequisites to strtoumax.m4.
60401
60402         Module chown.
60403         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
60404         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
60405
60406         Module dup2.
60407         * m4/dup2.m4: New file.
60408
60409         Module ftruncate.
60410         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
60411         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
60412
60413         Module getgroups.
60414         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
60415         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
60416
60417         Module gettimeofday.
60418         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
60419         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
60420         gl_PREREQ_GETTIMEOFDAY.
60421
60422         Module mkdir.
60423         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
60424         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
60425
60426         Module mkstemp.
60427         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
60428         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
60429         jm_AC_TYPE_UINTMAX_T.
60430         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
60431
60432         Module stat.
60433         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
60434         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
60435
60436         Module lstat.
60437         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
60438         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
60439
60440         Module timespec.
60441         * m4/timespec.m4 (gl_TIMESPEC): New macro.
60442         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
60443         * m4/st_mtim.m4: Indentation.
60444
60445         Module nanosleep.
60446         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
60447         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
60448         gl_PREREQ_NANOSLEEP.
60449
60450         Module regex.
60451         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
60452         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
60453         (gl_REGEX): New macro.
60454
60455         Module rename.
60456         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
60457         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
60458
60459         Module rmdir.
60460         * m4/rmdir.m4: New file.
60461
60462         Module utime.
60463         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
60464         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
60465         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
60466
60467         Module dirname.
60468         * m4/dirname.m4: New file.
60469
60470         Module getopt.
60471         * m4/getopt.m4: New file.
60472
60473         Module unistd-safer.
60474         * m4/unistd-safer.m4: New file.
60475
60476         Module fnmatch.
60477         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
60478         declaration.
60479         (gl_PREREQ_FNMATCH_EXTRA): New macro.
60480         (gl_FUNC_FNMATCH_POSIX): New macro.
60481         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
60482         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
60483         simply fnmatch.
60484
60485         Module exclude.
60486         * m4/exclude.m4: New file.
60487
60488         Module human.
60489         * m4/human.m4: New file.
60490
60491         Module acl.
60492         * m4/acl.m4: Nop.
60493
60494         Module backupfile.
60495         * m4/backupfile.m4: New file.
60496         * m4/d-ino.m4: Indentation.
60497
60498         Module fsusage.
60499         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
60500         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
60501         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
60502
60503         Module dirfd.
60504         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
60505         requirements.
60506
60507         Module euidaccess.
60508         * m4/euidaccess.m4: New file.
60509
60510         Module file-type.
60511         * m4/file-type.m4: New file.
60512
60513         Module fileblocks.
60514         * m4/fileblocks.m4: New file.
60515
60516         Module filemode.
60517         * m4/filemode.m4: New file.
60518
60519         Module isdir.
60520         * m4/isdir.m4: New file.
60521
60522         Module lchown.
60523         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
60524         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
60525
60526         Module makepath.
60527         * m4/makepath.m4: New file.
60528
60529         Module modechange.
60530         * m4/modechange.m4: New file.
60531
60532         Module mountlist.
60533         * m4/mountlist.m4: New file.
60534         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
60535         Indentation.
60536
60537         Module path-concat.
60538         * m4/path-concat.m4: New file.
60539
60540         Module pathmax.
60541         * m4/pathmax.m4: New file.
60542
60543         Module same.
60544         * m4/same.m4: New file.
60545
60546         Module save-cwd.
60547         * m4/save-cwd.m4: New file.
60548
60549         Module savedir.
60550         * m4/savedir.m4: New file.
60551
60552         Module xgetcwd.
60553         * m4/xgetcwd.m4: New file.
60554         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
60555
60556         Module xreadlink.
60557         * m4/xreadlink.m4: New file.
60558
60559         Module safe-read.
60560         * m4/safe-read.m4: New file.
60561
60562         Module safe-write.
60563         * m4/safe-write.m4: New file.
60564
60565         Module closeout.
60566         * m4/closeout.m4: New file.
60567
60568         Module stdio-safer.
60569         * m4/stdio-safer.m4: New file.
60570
60571         Module getpass.
60572         * m4/getpass.m4: New file.
60573
60574         Module getugroups.
60575         * m4/getugroups.m4: New file.
60576
60577         Module group-member.
60578         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
60579         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
60580
60581         Module idcache.
60582         * m4/idcache.m4: New file.
60583
60584         Module userspec.
60585         * m4/userspec.m4: New file.
60586
60587         Module gettime.
60588         * m4/clock_time.m4: New file.
60589         * m4/gettime.m4: New file.
60590
60591         Module settime.
60592         * m4/settime.m4: New file.
60593
60594         Module posixtm.
60595         * m4/posixtm.m4: New file.
60596
60597         Module gethostname.
60598         * m4/gethostname.m4: New file.
60599
60600         Module canon-host.
60601         * m4/canon-host.m4: New file.
60602
60603         Module gettext.
60604         * m4/codeset.m4: New file, from gettext-0.11.5.
60605         * m4/gettext.m4: New file, from gettext-0.11.5.
60606         * m4/glibc21.m4: New file, from gettext-0.11.5.
60607         * m4/iconv.m4: New file, from gettext-0.11.5.
60608         * m4/intdiv0.m4: New file, from gettext-0.11.5.
60609         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
60610         * m4/inttypes.m4: New file, from gettext-0.11.5.
60611         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
60612         * m4/isc-posix.m4: New file, from gettext-0.11.5.
60613         * m4/lcmessage.m4: New file, from gettext-0.11.5.
60614         * m4/lib-ld.m4: New file, from gettext-0.11.5.
60615         * m4/lib-link.m4: New file, from gettext-0.11.5.
60616         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
60617         * m4/progtest.m4: New file, from gettext-0.11.5.
60618         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
60619         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
60620         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
60621
60622         Module localcharset.
60623         * m4/localcharset.m4: New file.
60624
60625         Module hard-locale.
60626         * m4/hard-locale.m4: New file.
60627
60628         Module mbswidth.
60629         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
60630         onceonly macros.
60631         * m4/mbrtowc.m4: Add comment.
60632
60633         Module memcasecmp.
60634         * m4/memcasecmp.m4: New file.
60635
60636         Module memcoll.
60637         * m4/memcoll.m4: New file.
60638
60639         Module unicodeio.
60640         * m4/unicodeio.m4: New file.
60641
60642         Module rpmatch.
60643         * m4/rpmatch.m4: New file.
60644
60645         Module yesno.
60646         * m4/yesno.m4: New file.
60647
60648         Module exitfail.
60649         * m4/exitfail.m4: New file.
60650
60651         Module c-stack.
60652         * m4/c-stack.m4 (gl_C_STACK): New macro.
60653         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
60654
60655         Module error.
60656         * m4/error.m4 (gl_ERROR): New macro.
60657         (jm_PREREQ_ERROR): Use onceonly macros.
60658
60659         Module fatal.
60660         * m4/fatal.m4: New file.
60661
60662         Module getloadavg.
60663         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
60664         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
60665
60666         Module getpagesize.
60667         * m4/getpagesize.m4: New file.
60668
60669         Module getusershell.
60670         * m4/getusershell.m4: New file.
60671
60672         Module physmem.
60673         * m4/physmem.m4: New file.
60674
60675         Module posixver.
60676         * m4/posixver.m4: New file.
60677
60678         Module quotearg.
60679         * m4/quotearg.m4: New file.
60680
60681         Module quote.
60682         * m4/quote.m4: New file.
60683
60684         Module readutmp.
60685         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
60686
60687         Module sig2str.
60688         * m4/sig2str.m4: New file.
60689
60690         Other.
60691         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
60692         ulonglong.m4.
60693         * m4/intmax_t.m4: New file.
60694         * m4/d-type.m4: Indentation.
60695         * m4/jm-macros.m4: Update.
60696         * m4/prereq.m4 (jm_PREREQ): Update.
60697         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
60698         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
60699         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
60700         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
60701         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
60702         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
60703         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
60704         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
60705         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
60706         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
60707         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
60708         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
60709         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
60710         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
60711         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
60712         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
60713         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
60714         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
60715         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
60716
60717 2002-12-24  Bruno Haible  <bruno@clisp.org>
60718
60719         * MODULES.txt: Update according to m4/ changes.
60720
60721         Module gettext.
60722         * config.rpath: New file, from gettext-0.11.5.
60723
60724         * modules/*: New module descriptions.
60725         * gnulib-tool: New file.
60726         * MODULES.html.sh: New file.
60727
60728 2002-12-21  Karl Berry  <karl@gnu.org>
60729
60730         * doc/fdl.texi: update to version 1.2.
60731
60732 2002-12-19  Karl Berry  <karl@gnu.org>
60733
60734         * config/config.guess: update from prep.
60735
60736 2002-12-18  Bruno Haible  <bruno@clisp.org>
60737
60738         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
60739         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
60740
60741 2002-12-17  Bruno Haible  <bruno@clisp.org>
60742
60743         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
60744         stdlib.h, string.h.
60745
60746 2002-12-17  Bruno Haible  <bruno@clisp.org>
60747
60748         * lib/canon-host.c (strdup): Remove unused declaration.
60749
60750         * lib/fsusage.c: Include full_read.h.
60751         (get_fs_usage): Use full_read instead of safe_read.
60752
60753         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
60754
60755 2002-12-12  Karl Berry  <karl@gnu.org>
60756
60757         * config/config.guess: update from prep.
60758
60759 2002-12-11  Bruno Haible  <bruno@clisp.org>
60760
60761         * m4/setenv.m4: New file, from gettext-0.11.5.
60762
60763 2002-12-11  Bruno Haible  <bruno@clisp.org>
60764
60765         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
60766         not unsetenv().
60767         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
60768         modifications:
60769
60770         2002-12-11  Bruno Haible  <bruno@clisp.org>
60771
60772                 * setenv.c (alloca): Fall back to malloc.
60773                 (freea): New macro.
60774                 (setenv): Use freea() to free memory allocated with alloca().
60775
60776         2002-11-13  Bruno Haible  <bruno@clisp.org>
60777
60778                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
60779                 function declarations.
60780                 * unsetenv.c (unsetenv): Likewise.
60781
60782         2002-03-04  Bruno Haible  <bruno@clisp.org>
60783
60784                 Portability to AIX 4.3.3.
60785                 * unsetenv.c: New file, extracted from setenv.c.
60786                 * setenv.c: Move the unsetenv() function to unsetenv.c.
60787
60788         2001-12-20  Bruno Haible  <bruno@clisp.org>
60789
60790                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
60791                 use malloc instead. For SunOS 4.
60792
60793         2001-12-11  Bruno Haible  <bruno@clisp.org>
60794
60795                 * setenv.c: Declare alloca.
60796                 (compar_fn_t): New typedef.
60797                 (KNOWN_VALUE, STORE_VALUE): Use it.
60798
60799         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
60800         setenv.h.
60801
60802 2002-12-10  Paul Eggert  <eggert@twinsun.com>
60803
60804         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
60805         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
60806         Choose values that are less likely to collide with system fnmatch
60807         options.
60808         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
60809         defined (e.g., a pure POSIX system).
60810         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
60811         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
60812
60813 2002-12-06  Paul Eggert  <eggert@twinsun.com>
60814
60815         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
60816         a pain in practice to deal with generated m4 files.  This change
60817         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
60818
60819         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
60820         and jm-glibc-io.m4, as they are no longer a special case.
60821         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
60822         kludge and the auto-generation stuff.  Check only whether the
60823         functions are declared, not whether they exist, since older hosts
60824         that don't declare the functions can't use the optimization anyway.
60825
60826 2002-12-06  Jim Meyering  <jim@meyering.net>
60827
60828         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
60829
60830         Merge in changes from libc's misc/error.c, in preparation
60831         for the merge of gnulib's changes back into libc.
60832
60833         * lib/error.c (_): Define only if not already defined.
60834         Move definition to follow all #include directives.
60835         Include unlocked-io.h only if !_LIBC.
60836         [_LIBC]: Include <libio/libioP.h>.
60837         [USE_IN_LIBIO]: Include <libio/iolibio.h>
60838         (fflush): Tweak definition to use INTUSE.
60839         (putc): Define.
60840
60841 2002-12-05  Paul Eggert  <eggert@twinsun.com>
60842
60843         * lib/alloca.c [defined emacs]: Include "lisp.h".
60844         (xalloc_die) [defined emacs]: New macro.
60845         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
60846         [! defined emacs]: Include <xalloc.h>.
60847         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
60848         (pointer): Typedef to POINTER_TYPE *.
60849         (malloc): Remove decl; we now always use xmalloc.
60850         (alloca): Use old-style definition, since Emacs needs this.
60851         Check for arithmetic overflow when computing combined size.
60852
60853 2002-12-04  Paul Eggert  <eggert@twinsun.com>
60854
60855         Do not generate unlocked-io.h automatically, since it's easier to
60856         maintain it by hand.
60857
60858         * lib/unlocked-io.h: New file, from GNU diffutils,
60859         but with proper copyright notice and attribution.
60860         * lib/gen-uio: Remove.
60861         * lib/Makefile.am: Add copyright notice.
60862         (libfetish_a_SOURCES): Add unlocked-io.h.
60863         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
60864         (DISTCLEANFILES, io_functions): Remove macros.
60865         (EXTRA_DIST): Remove gen_uio.
60866         (unlocked-io.h): Remove rule.
60867
60868 2002-12-04  Jim Meyering  <jim@meyering.net>
60869
60870         Reflect the fact that stat.c and lstat.c are no longer generated.
60871         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
60872         (DISTCLEANFILES): Likewise.
60873         (EXTRA_DIST): Likewise.
60874         (all_local): Don't depend on stat.c or lstat.c.
60875         (stat.c, lstat.c): Remove rules.
60876         (EXTRA_DIST): Remove xstat.in.
60877
60878         * lib/xstat.in: Remove file.  Contents moved into stat.c.
60879         * lib/stat.c: New file.  Contents mostly from xstat.in.
60880         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
60881         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
60882
60883         * lib/safe-read.c: Rework so that it may serve to define safe_write,
60884         too.
60885         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
60886
60887 2002-12-03  Jim Meyering  <jim@meyering.net>
60888
60889         * lib/safe-read.c, safe-write.c: Change variable names and comments,
60890         but not semantics, to minimize the differences between these two files.
60891         (safe_read): Change comment to mention SAFE_READ_ERROR.
60892
60893         * lib/safe-read.c (IS_EINTR): Define.
60894         (safe_read): Use IS_EINTR in place of in-function cpp directives.
60895
60896 2002-12-02  Jim Meyering  <jim@meyering.net>
60897
60898         * lib/safe-read.c (EINTR): Define.
60899         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
60900         (INT_MAX): Provide fallback.
60901         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
60902
60903         * lib/safe-read.h (SAFE_READ_ERROR): Define.
60904
60905 2002-12-02  Bruno Haible  <bruno@clisp.org>
60906
60907         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
60908         Define, taken from safe-read.c.
60909         (INT_MAX): Provide fallback.
60910         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
60911         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
60912
60913         * lib/safe-read.c (EINTR): Remove definition.
60914         (safe_read): Don't use EINTR if it is absent.
60915
60916 2002-12-01  Jim Meyering  <jim@meyering.net>
60917
60918         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
60919         zero.
60920         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
60921
60922 2002-11-27  Paul Eggert  <eggert@twinsun.com>
60923
60924         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
60925         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
60926         with `if (! (value < limit)) abort ();', for readability.
60927
60928 2002-11-26  Karl Berry  <karl@gnu.org>
60929
60930         * lib/strdup.c: copy from libc again, with jim's ok.
60931         * lib/.cppi-disable: re-add strdup.c
60932
60933 2002-11-25  Karl Berry  <karl@gnu.org>
60934
60935         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
60936         instead of "strtol.c".
60937
60938 2002-11-25  Karl Berry  <karl@gnu.org>
60939
60940         * config/install-sh: update from automake for variable quoting, $0 in
60941         error msgs, etc.
60942
60943         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
60944         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
60945         entry.
60946
60947 2002-11-25  Jim Meyering  <jim@meyering.net>
60948
60949         * lib/mktime.c: Sync from libc, now that it has the latest fix.
60950
60951 2002-11-24  Karl Berry  <karl@gnu.org>
60952
60953         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
60954         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
60955
60956 2002-11-24  Jim Meyering  <jim@meyering.net>
60957
60958         Update from coreutils:
60959
60960         * lib/mktime.c: Merge in changes from libc.
60961
60962         Avoid a link-time failure on some Linux systems.
60963         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
60964         (otherwise).
60965         (__mon_yday): Declare with the STATIC attribute.
60966         (__mktime_internal): Likewise.
60967         Based on a report from Greg Schafer.
60968
60969 2002-11-23  Jim Meyering  <jim@meyering.net>
60970
60971         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
60972         Use `unsigned', not `int', as type of index.
60973
60974         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
60975
60976         * lib/fsusage.c: Remove unneeded parentheses around operands of
60977         `defined'.
60978
60979 2002-11-22  Paul Eggert  <eggert@twinsun.com>
60980
60981         * lib/quotearg.h: Allow multiple inclusion by surrounding with
60982         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
60983         so that we can be included first.
60984         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
60985         * lib/quotearg.c: Include quotearg.h immediately after config.h.
60986         No need to include stddef.h or sys/types.h any more.
60987         Surround local include files with "", not "<>".
60988         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
60989         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
60990         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
60991         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
60992         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
60993         (ISPRINT): Remove; no longer needed now that we assume C89.
60994
60995         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
60996         Preserve errno.
60997
60998         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
60999         quotearg_char): Use SIZE_MAX rather than
61000         (size_t) -1 when we are talking about "infinity".
61001
61002         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
61003
61004 2002-11-22  Paul Eggert  <eggert@twinsun.com>
61005
61006         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
61007         hint that one should use `if (! x) abort ();' rather than `assert
61008         (x);', and anyway it's one less thing to worry about configuring.
61009         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
61010         hash_rehash, hash_insert): Use abort rather than assert.
61011
61012 2002-11-22  Bruno Haible  <bruno@clisp.org>
61013
61014         * lib/safe-read.h: Assume C89. Add comments.
61015         (safe_read): Change return type to size_t.
61016         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
61017         byte counts > SSIZE_MAX correctly.
61018         * lib/safe-write.h: New file.
61019         * lib/safe-write.c: New file.
61020         * lib/full-read.h: New file.
61021         * lib/full-read.c: New file.
61022         * lib/full-write.h: Assume C89. Add comments.
61023         * lib/full-write.c: Include safe-write.h.
61024         (full_write): Rewritten to use safe_write.
61025         Suggested by Jim Meyering and Paul Eggert.
61026
61027 2002-11-21  Jim Meyering  <jim@meyering.net>
61028
61029         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
61030
61031         Merge in changes from the coreutils.
61032
61033         2002-09-25  Paul Eggert  <eggert@twinsun.com>
61034         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
61035         <stdint.h>.
61036         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
61037         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
61038         int.  Work more efficiently if X is the same width as uintmax_t.
61039         Do not compare X to -1, to avoid bogus compiler warning.
61040         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
61041         Don't assume that f_frsize and f_bsize are the same type.
61042
61043         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
61044         warning on FreeBSD.
61045
61046         * lib/makepath.c (make_path): Restore umask *before* creating the final
61047         component.
61048         (make_path): Minor reformatting.
61049
61050         * lib/xmalloc.c: Adjust to work with new autoconf macros,
61051         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
61052         HAVE_MALLOC/HAVE_REALLOC.
61053
61054         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
61055         dummy ones.  At least on GNU/Linux systems, `auto' means something
61056         else.
61057         From Michael Stone.
61058
61059 2002-11-21  Bruno Haible  <bruno@clisp.org>
61060
61061         Remove case insensitive option matching.
61062         * lib/argmatch.h (argcasematch): Remove declaration.
61063         (ARGCASEMATCH): Remove macro.
61064         (__xargmatch_internal): Remove case_sensitive argument.
61065         (XARGMATCH): Update.
61066         (XARGCASEMATCH): Remove macro.
61067         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
61068         case_sensitive argument.
61069         (argcasematch): Remove function.
61070         (__xargmatch_internal): Remove case_sensitive argument.
61071         (main): Use XARGMATCH instead of XARGCASEMATCH.
61072
61073         * lib/xmalloc.c: Change compile-time error message. Add comment about
61074         required autoconf version.
61075
61076 2002-11-20  Paul Eggert  <eggert@twinsun.com>
61077
61078         Merge argmatch cleanups from Bison.  Assume C89.
61079
61080         * lib/argmatch.c: Include config.h here, not in argmatch.h.
61081         Include stdlib.h, for EXIT_FAILURE.
61082         Always include <string.h>, since we assume C89.
61083         (EXIT_FAILURE): Remove pre-C89 bug workaround.
61084         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
61085         Include <stddef.h> instead, since it's all we need for size_t.
61086         (PARAMS): Remove.  All uses removed.
61087         (ARRAY_CARDINALITY): Do not bother to #undef.
61088         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
61089         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
61090         Remove unnecessary parentheses.
61091         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
61092         Insert necessary parentheses.
61093         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
61094         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
61095
61096 2002-11-19  Bruno Haible  <bruno@clisp.org>
61097
61098         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
61099         * lib/mbswidth.h: Include <stddef.h>, for size_t.
61100
61101         * lib/mbswidth.h (PARAMS): Remove macro.
61102         (mbswidth, mbsnwidth): Use ANSI C function declarations.
61103         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
61104
61105         * lib/gcd.h (PARAMS): Remove macro.
61106         (gcd): Use ANSI C function declarations.
61107         * lib/gcd.c (gcd): Likewise.
61108
61109 2002-11-15  Bruno Haible  <bruno@clisp.org>
61110
61111         * lib/strcspn.c: Include <stddef.h>.
61112         (strcspn): Use ANSI C function declaration. Change return type to
61113         size_t. Use NULL.
61114         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
61115         (strpbrk): Use NULL.
61116         * lib/strpbrk.h (PARAMS): Remove macro.
61117         (strpbrk): Use ANSI C function declaration.
61118         * lib/strstr.c: Don't include <sys/types.h>.
61119         * lib/strstr.h (PARAMS): Remove macro.
61120         (strstr): Use ANSI C function declarations.
61121
61122 2002-11-14  Karl Berry  <karl@gnu.org>
61123
61124         * config/mkinstalldirs: `do' on separate line, instead of
61125         `for var; do'.
61126
61127 2002-11-06  Bruno Haible  <bruno@clisp.org>
61128
61129         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
61130         * lib/gcd.c (gcd): Likewise.
61131
61132 2002-11-05  Bruno Haible  <bruno@clisp.org>
61133
61134         * lib/gcd.h: New file, from gettext-0.11.5.
61135         * lib/gcd.c: New file, from gettext-0.11.5.
61136
61137 2002-11-05  Bruno Haible  <bruno@clisp.org>
61138
61139         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
61140         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
61141         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
61142         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
61143
61144         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
61145         <libintl.h>.
61146         * lib/makepath.c: Include gettext.h instead of <locale.h> and
61147         <libintl.h>.
61148
61149         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
61150         * lib/human.c: Include gettext.h instead of <libintl.h>.
61151         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
61152         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
61153         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
61154         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
61155         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
61156         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
61157         (textdomain): Remove definition.
61158         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
61159
61160         * lib/long-options.c: Remove include of <libintl.h> and definition of
61161         _.
61162         * lib/same.c: Remove include of <libintl.h> and definition of _.
61163
61164 2002-11-04  Owen Taylor  <otaylor@redhat.com>
61165
61166         * lib/config.charset: A few additions for Solaris.
61167
61168 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
61169
61170         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
61171         * lib/localcharset.c (locale_charset): Declare as extern "C".
61172
61173 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
61174
61175         * lib/config.charset: msdos in uk_UA uses CP1125.
61176
61177 2002-11-04  Bruno Haible  <bruno@clisp.org>
61178
61179         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
61180         * lib/strcase.h: New file, from GNU gettext-0.11.5.
61181         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
61182         * lib/strstr.h: New file, from GNU gettext-0.11.5.
61183         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
61184
61185 2002-11-04  Bruno Haible  <bruno@clisp.org>
61186
61187         * lib/localcharset.c (locale_charset): Don't return an empty string.
61188
61189 2002-11-04  Bruno Haible  <bruno@clisp.org>
61190
61191         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
61192         aliases.
61193
61194 2002-11-04  Bruno Haible  <bruno@clisp.org>
61195
61196         * lib/config.charset: Update for newest glibc. Add canonical names
61197         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
61198
61199 2002-11-04  Bruno Haible  <bruno@clisp.org>
61200
61201         * lib/config.charset: Add support for NetBSD.
61202
61203 2002-11-04  Bruno Haible  <bruno@clisp.org>
61204
61205         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
61206
61207 2002-11-01  Bruno Haible  <bruno@clisp.org>
61208
61209         * configure.in: Add AC_CONFIG_AUX_DIR call.
61210         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
61211         test/Makefile.
61212         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
61213
61214 2002-09-28  Karl Berry  <karl@gnu.org>
61215
61216         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
61217         installed automake until the next release, since changes have been
61218         made.
61219
61220 2002-09-25  Karl Berry  <karl@gnu.org>
61221
61222         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
61223         * lib/getopt*: copy from libc/posix.
61224         * lib/gettext.h: copy from gettext.
61225         * lib/.cppi-disable: add strdup.c, gettext.h.
61226
61227 2002-09-25  Karl Berry  <karl@gnu.org>
61228
61229         * config/srclist.txt: enable gettext.h check.
61230         * config/config.{guess,sub}: update from prep.
61231         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
61232                 from automake 1.6.3.
61233         See srclist*.
61234
61235 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
61236
61237         * regex.c (PATFETCH): Remove the translating fetch.
61238         (PATFETCH_RAW): Rename to PATFETCH.
61239         (set_image_of_range): New fun.
61240         (SET_RANGE_TABLE_WORK_AREA): Use it.
61241         (regex_compile): Don't translate the pattern chars so eagerly.
61242         Only do it when inserting an `exactn' bytecode or when handling
61243         a char-range.
61244         (mutually_exclusive_p): Avoid empty statement.
61245
61246 2002-07-06  Jim Meyering  <meyering@lucent.com>
61247
61248         * m4/README: Don't mention Makefile.am.in.
61249         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
61250
61251 2002-07-01  Jim Meyering  <meyering@lucent.com>
61252
61253         * lib/c-stack.c: Include sys/time.h.
61254         From Volker Borchert.
61255
61256 2002-06-26  Paul Eggert  <eggert@twinsun.com>
61257
61258         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
61259
61260 2002-06-26  Paul Eggert  <eggert@twinsun.com>
61261
61262         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
61263         New macro.  Use it uniformly instead of
61264         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
61265         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
61266         reported by Vin Shelton.
61267
61268 2002-06-22  Paul Eggert  <eggert@twinsun.com>
61269
61270         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
61271         Do not assume SA_SIGINFO behavior.
61272         Bug reported by Jim Meyering on NetBSD 1.5.2.
61273
61274 2002-06-22  Jim Meyering  <meyering@lucent.com>
61275
61276         * m4/c-stack.m4: New file, from diffutils-2.8.2.
61277         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
61278
61279         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
61280         now that configure.ac uses AC_GNU_SOURCE.
61281         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
61282         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
61283
61284         Update to latest tools.  Suggestions from Paul Eggert.
61285         * m4/stdbool.m4: New file, from diffutils-2.8.2.
61286         * m4/gnu-source.m4: Update from diffutils-2.8.2.
61287         * m4/fnmatch.m4: Likewise.
61288         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
61289         to AC_HEADER_STDBOOL
61290
61291 2002-06-22  Jim Meyering  <meyering@lucent.com>
61292
61293         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
61294         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
61295
61296 2002-06-22  Jim Meyering  <meyering@lucent.com>
61297
61298         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
61299
61300         * lib/exitfail.c, exitfail.h: Likewise.
61301         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
61302
61303         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
61304         of fnmatch.h.
61305         (EXTRA_DIST): Add fnmatch_loop.c.
61306         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
61307
61308         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
61309         * lib/fnmatch.c: Update from diffutils-2.8.2.
61310         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
61311         * lib/fnmatch.h: Remove file.
61312
61313 2002-06-21  Jim Meyering  <meyering@lucent.com>
61314
61315         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
61316         * m4/mbrtowc.m4: Likewise.
61317
61318         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
61319         * m4/mbswidth.m4: Reflect name change:
61320         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
61321         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
61322
61323         * m4/lib-link.m4: Update from gettext-0.11.2.
61324         * m4/gettext.m4: Likewise.
61325
61326         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
61327         From Alfred M. Szmidt.
61328
61329 2002-06-18  Paul Eggert  <eggert@twinsun.com>
61330
61331         * lib/file-type.h: Report an error if neither S_ISREG nor
61332         S_IFREG is defined, instead of using a test specific to glibc
61333         2.2.  This should be safe, since POSIX requires S_ISREG and
61334         Unix Version 7 had S_IFREG.  We don't need to check for
61335         <sys/types.h> since we don't use any symbols that it defines.
61336
61337 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
61338
61339         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
61340         $@-t, so that each temporary file name is unique and valid in the first
61341         8 characters, for operation under DOS.
61342
61343 2002-06-15  Paul Eggert  <eggert@twinsun.com>
61344
61345         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
61346
61347 2002-06-15  Jim Meyering  <meyering@lucent.com>
61348
61349         Work even with DJGPP 2.03, which lacks support for symlinks.
61350         From Richard Dawe.
61351         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
61352         is defined.
61353         * lib/lchown.c (S_ISLNK): Likewise.
61354
61355 2002-06-15  Jim Meyering  <meyering@lucent.com>
61356
61357         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
61358         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
61359         have been included before this file.
61360
61361 2002-06-14  Jim Meyering  <meyering@lucent.com>
61362
61363         * lib/file-type.h: Use the version from diffutils-2.8.2.
61364         * lib/file-type.c: Likewise.
61365
61366 2002-06-07  Jim Meyering  <meyering@lucent.com>
61367
61368         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
61369         They're needed at least for NetBSD 1.5.2.
61370         ($statxfs_includes): Include those same headers.
61371         ($statxfs_includes): Include sys/vfs.h if available.
61372         ($statxfs_includes): Likewise for sys/statvfs.h.
61373         Check for the following members in both structs statfs and statvfs:
61374         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
61375
61376 2002-06-01  Jim Meyering  <meyering@lucent.com>
61377
61378         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
61379         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
61380
61381 2002-05-28  Jim Meyering  <meyering@lucent.com>
61382
61383         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
61384         Reported by Volker Borchert.
61385
61386 2002-05-27  Jim Meyering  <meyering@lucent.com>
61387
61388         Fix a problem seen only on nonconforming systems whereby ls.c's
61389         use of localtime, and then of gettimeofday would cause trouble:
61390         the localtime call used to initialize rpl_gettimeofday's save
61391         mechanism would clobber ls's current local time information so
61392         that in any long listing the first file would always be listed
61393         with date 1970-01-01.  Analysis by Volker Borchert.
61394
61395         * lib/gettimeofday.c (localtime): Undefine.
61396         (rpl_localtime): New function.
61397
61398 2002-05-27  Jim Meyering  <meyering@lucent.com>
61399
61400         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
61401         localtime.
61402
61403         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
61404         use the replacement function; it wouldn't resolve at link time.
61405         Reported by Volker Borchert.
61406
61407 2002-05-22  Jim Meyering  <meyering@lucent.com>
61408
61409         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
61410         file-type.h.
61411         * lib/file-type.h: New file.
61412         * lib/file-type.c (file_type): New file/function.  Extracted from
61413         diffutils.
61414
61415 2002-04-30  Jim Meyering  <meyering@lucent.com>
61416
61417         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
61418
61419 2002-04-29  Paul Eggert  <eggert@twinsun.com>
61420
61421         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
61422
61423 2002-04-29  Paul Eggert  <eggert@twinsun.com>
61424
61425         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
61426         Do not check for alloca.h (no longer used) or stdbool.h (was never
61427         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
61428
61429 2002-04-29  Paul Eggert  <eggert@twinsun.com>
61430
61431         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
61432
61433 2002-04-29  Jim Meyering  <meyering@lucent.com>
61434
61435         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
61436         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
61437         Use AC_FUNC_STRNLEN here instead.
61438
61439         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
61440         With autoconf-2.53a, it's part of AC_PROG_CC.
61441
61442 2002-04-28  Paul Eggert  <eggert@twinsun.com>
61443
61444         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
61445         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
61446
61447 2002-04-28  Paul Eggert  <eggert@twinsun.com>
61448
61449         * lib/sig2str.h, lib/sig2str.c: New files.
61450         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
61451
61452 2002-04-28  Paul Eggert  <eggert@twinsun.com>
61453
61454         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
61455         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
61456         of 127, since 64 is the largest conceivable number for ancient
61457         nonstandard hosts.
61458         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
61459
61460 2002-04-28  Jim Meyering  <meyering@lucent.com>
61461
61462         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
61463
61464 2002-04-24  Jim Meyering  <meyering@lucent.com>
61465
61466         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
61467         (jm_PREREQ): Use it.
61468
61469         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
61470         mach/mach.h fcntl.h.
61471         Check for this function: setlocale.
61472
61473 2002-04-24  Jim Meyering  <meyering@lucent.com>
61474
61475         * lib/gettext.h: New file, from Gettext.
61476         * lib/Makefile.am (INCLUDES): Remove -I../intl.
61477         (libfetish_a_SOURCES): Add gettext.h.
61478
61479 2002-04-16  Jim Meyering  <meyering@lucent.com>
61480
61481         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
61482         ut_pid, ut_id, ut_exit.
61483
61484 2002-04-16  Jim Meyering  <meyering@lucent.com>
61485
61486         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
61487         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
61488         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
61489
61490 2002-04-12  Jim Meyering  <meyering@lucent.com>
61491
61492         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
61493         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
61494         existence of the getmntinfo function.  Needed for Darwin 5.3.
61495
61496         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
61497         This is necessary at least on Darwin 5.3.
61498
61499         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
61500         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
61501         strnlen.o in the library, and that makes some versions of ranlib
61502         object.
61503
61504 2002-04-12  Jim Meyering  <meyering@lucent.com>
61505
61506         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
61507
61508 2002-04-09  Jim Meyering  <meyering@lucent.com>
61509
61510         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
61511         to be more precise.  Rather than saying we're checking whether the
61512         function `works', say what we're testing.
61513         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
61514         Reported by Bruno Haible.
61515
61516 2002-03-10  Jim Meyering  <meyering@lucent.com>
61517
61518         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
61519         Suggestion from Santiago Vila.
61520
61521 2002-03-08  Jim Meyering  <meyering@lucent.com>
61522
61523         * lib/rename.c: Mention that this wrapper is needed also on
61524         mips-dec-ultrix4.4 systems.
61525
61526 2002-03-02  Jim Meyering  <meyering@lucent.com>
61527
61528         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
61529         not HAVE_CLOCK_SETTIME.
61530
61531 2002-02-27  Paul Eggert  <eggert@twinsun.com>
61532
61533         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
61534         Check for clock_settime.
61535
61536 2002-02-27  Paul Eggert  <eggert@twinsun.com>
61537
61538         * lib/nanosleep.h: Rename to....
61539         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
61540
61541         * lib/gettime.c: New file.
61542         * lib/settime.c: New file.
61543         * lib/stime.c: Remove.
61544
61545         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
61546         timespec.h.  Remove nanosleep.h.
61547
61548 2002-02-25  Paul Eggert  <eggert@twinsun.com>
61549
61550         * m4/acl.m4: New file.
61551         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
61552         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
61553
61554 2002-02-25  Paul Eggert  <eggert@twinsun.com>
61555
61556         * lib/acl.c, lib/acl.h: New files.
61557         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
61558
61559 2002-02-24  Jim Meyering  <meyering@lucent.com>
61560
61561         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
61562         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
61563         cause trouble.  Reported by Nelson Beebe.
61564
61565 2002-02-23  Paul Eggert  <eggert@twinsun.com>
61566
61567         * lib/path-concat.c (xpath_concat): Reorder code to pacify
61568         compilers that don't know that xalloc_die never returns.
61569
61570 2002-02-20  Jim Meyering  <meyering@lucent.com>
61571
61572         * lib/getdate.c: Regenerate using bison-1.33.
61573
61574 2002-02-17  Jim Meyering  <meyering@lucent.com>
61575
61576         * config/config.guess (main): Don't use `head -1'; it's no longer
61577         portable. Use `sed 1q' instead.
61578
61579 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
61580
61581         * m4/codeset.m4: Upgrade to gettext-0.11.
61582         * m4/gettext.m4: Upgrade to gettext-0.11.
61583         * m4/glibc21.m4: Upgrade to gettext-0.11.
61584         * m4/iconv.m4: Upgrade to gettext-0.11.
61585         * m4/isc-posix.m4: Upgrade to gettext-0.11.
61586         * m4/lcmessage.m4: Upgrade to gettext-0.11.
61587         * m4/lib-ld.m4: New file, from gettext-0.11.
61588         * m4/lib-link.m4: New file, from gettext-0.11.
61589         * m4/lib-prefix.m4: New file, from gettext-0.11.
61590         * m4/progtest.m4: Upgrade to gettext-0.11.
61591
61592 2002-02-15  Paul Eggert  <eggert@twinsun.com>
61593
61594         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
61595         (jm_PREREQ): Use it.
61596
61597 2002-02-15  Paul Eggert  <eggert@twinsun.com>
61598
61599         * lib/posixver.c, lib/posixver.h: New files.
61600         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
61601
61602 2002-02-02  Paul Eggert  <eggert@twinsun.com>
61603             Bruno Haible  <bruno@clisp.org>
61604
61605         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
61606         (fwrite_success_callback): New declaration.
61607         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
61608         print_unicode_char. Call failure callback instead of error.
61609         (fwrite_success_callback): New function.
61610         (exit_failure_callback): New function.
61611         (fallback_failure_callback): New function.
61612         (print_unicode_char): Call unicode_to_mb.
61613
61614 2002-01-26  Jim Meyering  <meyering@lucent.com>
61615
61616         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
61617         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
61618
61619 2002-01-26  Jim Meyering  <meyering@lucent.com>
61620
61621         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
61622
61623 2002-01-22  Paul Eggert  <eggert@twinsun.com>
61624
61625         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
61626
61627 2002-01-22  Jim Meyering  <meyering@lucent.com>
61628
61629         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
61630         Otherwise, some versions of automake would omit the rule that makes
61631         Makefile from Makefile.in.
61632
61633 2002-01-21  Paul Eggert  <eggert@twinsun.com>
61634
61635         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
61636         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
61637         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
61638         (memcoll): Set errno to zero if there is no error.
61639
61640         * lib/quotearg.c (quotearg_buffer_restyled):
61641         Fix bug with quoting buffers containing NUL when backslashing escapes.
61642         This bug was exposed by the other changes in this patch.
61643         (quotearg_n_options): New arg ARGSIZE.
61644         All callers changed.
61645         (quoting_options_from_style): New function.
61646         (quotearg_n_style): Use it.
61647         (quotearg_n_style_mem): New function.
61648
61649         * lib/quotearg.h (quotearg_n_style_mem): New function.
61650
61651 2002-01-19  Jim Meyering  <meyering@lucent.com>
61652
61653         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
61654         Remove useless quotes: DF_PROG="df".
61655         * m4/strnlen.m4: New file.
61656
61657 2002-01-16  Paul Eggert  <eggert@twinsun.com>
61658
61659         * lib/backupfile.c (ISDIGIT): Comment fix.
61660         * lib/getdate.y (ISDIGIT): Likewise.
61661         * lib/posixtm.c (ISDIGIT, year): Likewise.
61662         * lib/strverscmp.c (ISDIGIT): Likewise.
61663         * lib/userspec.c (ISDIGIT): Likewise.
61664
61665 2002-01-16  Jim Meyering  <meyering@lucent.com>
61666
61667         * lib/getdate.y: Add three semicolons, each just before a closing
61668         brace. Bison (as of version 1.31) no longer papers over that mistake.
61669
61670 2002-01-05  Jim Meyering  <meyering@lucent.com>
61671
61672         * lib/version-etc.c (version_etc_copyright): Update copyright year.
61673
61674 2001-12-19  Paul Eggert  <eggert@twinsun.com>
61675
61676         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
61677         not silently exit merely because the output buffer happens to
61678         have nothing pending.
61679
61680 2001-12-18  Paul Eggert  <eggert@twinsun.com>
61681
61682         See the big note in ../ChangeLog.
61683         * lib/human.c (suffixes): Prefer K to k for 1024.
61684         (generate_suffix_backwards): New function.
61685         (human_readable_inexact): Use it.
61686         * lib/xstrtol.c (__xstrtol): If there is no number but there
61687         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
61688         Accept 'K' as well as 'k'.
61689
61690 2001-12-15  Jim Meyering  <meyering@lucent.com>
61691
61692         * lib/regex.h (__restrict_arr): Update from libc.
61693
61694         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
61695         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
61696         (STREQ): Define.
61697
61698 2001-12-14  Jim Meyering  <meyering@lucent.com>
61699
61700         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
61701         Suggestion from Bruno Haible.
61702
61703 2001-12-10  Jim Meyering  <meyering@lucent.com>
61704
61705         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
61706         xrealloc, Instead, include "xalloc.h".
61707         (initbuffer): Don't cast xmalloc return value to char*.
61708         (readline): Reword comment.
61709         Don't cast xrealloc return value to char*
61710         Return NULL, not 0.
61711
61712 2001-12-09  Jim Meyering  <meyering@lucent.com>
61713
61714         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
61715         about `signed and unsigned type in conditional expression'.
61716         * lib/posixtm.c (posix_time_parse): Likewise.
61717
61718         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
61719
61720         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
61721         to avoid a pedantic warning.
61722
61723         * lib/getstr.c: Don't include assert.h.
61724         (getstr): Remove warning-evoking assertions.
61725         Return -1 if offset parameter is out of bounds.
61726         Change the type of a local from int to size_t.
61727
61728         * lib/strftime.c (my_strftime_localtime_r): Include this function
61729         definition in the `#if ! HAVE_TM_GMTOFF' block.
61730
61731         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
61732         Include xalloc.h instead.
61733
61734 2001-12-02  Jim Meyering  <meyering@lucent.com>
61735
61736         * lib/tempname.c: Don't declare getenv, thus reverting the change of
61737         2001-11-18.  It's no longer necessary, now that stdlib.h is always
61738         included.
61739
61740         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
61741         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
61742
61743 2001-11-30  Akim Demaille  <akim@epita.fr>
61744
61745         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
61746         before being defined.
61747
61748 2001-11-27  Paul Eggert  <eggert@twinsun.com>
61749
61750         * lib/quotearg.h (quotearg_n, quotearg_n_style):
61751         First arg is int, not unsigned.
61752         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
61753         (SIZE_MAX, UINT_MAX): New macros.
61754         (quotearg_n_options): Abort if N is negative.
61755         Avoid overflow check on hosts where size_t is 64 bits and int
61756         is 32 bits, as overflow is impossible there.
61757         Fix off-by-one typo that caused unnecessary reallocation.
61758
61759 2001-11-27  Jim Meyering  <meyering@lucent.com>
61760
61761         * lib/tempname.c: Merge with version from libc.
61762         * lib/regex.c: Likewise.
61763
61764         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
61765         systems for which STDC_HEADERS is 0, it was not included, resulting in
61766         a warning about an integer-to-pointer conversion problem with getenv.
61767         Reported by Volker Borchert.
61768
61769 2001-11-26  Jim Meyering  <meyering@lucent.com>
61770
61771         * lib/gtod.h: Remove file.
61772         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
61773         * lib/gettimeofday.c: Don't include gtod.h.
61774         (GTOD_init): Remove function.
61775         (rpl_gettimeofday): Do its job here instead, rather than aborting.
61776         Suggestion from Volker Borchert.
61777
61778 2001-11-23  Jim Meyering  <meyering@lucent.com>
61779
61780         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
61781         it.
61782         * lib/hash.c (struct hash_table): Define it here instead.
61783
61784 2001-11-22  Jim Meyering  <meyering@lucent.com>
61785
61786         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
61787
61788 2001-11-20  Jim Meyering  <meyering@lucent.com>
61789
61790         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
61791         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
61792
61793 2001-11-19  Jim Meyering  <meyering@lucent.com>
61794
61795         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
61796         directory.  Use "conftestXXXXXX" as the template.
61797         Suggestion from Paul Eggert.
61798
61799         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
61800         immediately, so the test doesn't mistakenly hit the max-open-files
61801         limit.
61802
61803 2001-11-18  Paul Eggert  <eggert@twinsun.com>
61804
61805         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
61806         (TEMPORARIES): New macro.
61807         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
61808         removes an artificial limitation (e.g. HP-UX 10.20, where
61809         TMP_MAX is 17576).
61810
61811 2001-11-18  Jim Meyering  <meyering@lucent.com>
61812
61813         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
61814
61815 2001-11-18  Jim Meyering  <meyering@lucent.com>
61816
61817         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
61818         on SunOS 4.
61819
61820         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
61821         files will be created before anything else.
61822
61823 2001-11-17  Paul Eggert  <eggert@twinsun.com>
61824
61825         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
61826         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
61827
61828 2001-11-17  Jim Meyering  <meyering@lucent.com>
61829
61830         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
61831         Prompted by a report from Bob Proulx.
61832
61833         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
61834         Instead, require UTILS_FUNC_MKSTEMP.
61835
61836 2001-11-17  Jim Meyering  <meyering@lucent.com>
61837
61838         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
61839         Now, that's done as part of AC_FUNC_STRTOD.
61840
61841 2001-11-17  Jim Meyering  <meyering@lucent.com>
61842
61843         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
61844         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
61845         rather than group writable.  Patch by Juan F. Codagnone.
61846
61847         * lib/readtokens.c: Remove explicit declarations of xmalloc and
61848         xrealloc, Instead, include "xalloc.h".
61849
61850         * lib/mountlist.c: Include unlocked-io.h after all system headers.
61851         Remove explicit declarations of xmalloc, xrealloc,
61852         and xstrdup.  Instead, include "xalloc.h".
61853
61854         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
61855         unlocked-io.h.
61856         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
61857         Likewise.
61858         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
61859
61860         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
61861         Reported by Padraig Brady.
61862
61863         * lib/mkstemp.c: #undef mkstemp.
61864         Include config.h.
61865         (rpl_mkstemp): Rename from mkstemp.
61866         Protoize.
61867
61868 2001-11-16  Jim Meyering  <meyering@lucent.com>
61869
61870         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
61871         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
61872         determine the amount of total physical memory, use pstat_getstatic.
61873         HPUX-11 doesn't define _SC_PHYS_PAGES.
61874         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
61875         If sysconf couldn't be used to determine the amount of available
61876         physical memory, use both pstat_getstatic and pstat_getdynamic.
61877         Based on a patch from Bob Proulx.
61878
61879 2001-11-10  Jim Meyering  <meyering@lucent.com>
61880
61881         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
61882         (jm_PREREQ): Use it.
61883
61884 2001-11-09  Jim Meyering  <meyering@lucent.com>
61885
61886         * m4/jm-macros.m4: Require autoconf-2.52f.
61887         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
61888         Use these AC_-prefixed names, not the AM_-prefixed ones.
61889
61890         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
61891
61892 2001-11-05  Jim Meyering  <meyering@lucent.com>
61893
61894         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
61895
61896 2001-11-04  Jim Meyering  <meyering@lucent.com>
61897
61898         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
61899         $DEFS.
61900
61901 2001-11-03  Jim Meyering  <meyering@lucent.com>
61902
61903         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
61904         of AC_DEFUN.
61905
61906         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
61907         know the name of the variable in the macro definition.
61908
61909 2001-11-03  Jim Meyering  <meyering@lucent.com>
61910
61911         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
61912         in argmatch_to_argument call.
61913
61914         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
61915         argument.
61916
61917         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
61918         e.g., a fault due to an attempt to free a NULL pointer.
61919
61920 2001-11-01  Jim Meyering  <meyering@lucent.com>
61921
61922         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
61923         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
61924
61925 2001-11-01  Jim Meyering  <meyering@lucent.com>
61926
61927         * lib/dirfd.c, lib/dirfd.h: New files.
61928         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
61929
61930         * lib/hash.c (hash_print) [TESTING]: Clean up.
61931
61932 2001-10-22  Paul Eggert  <eggert@twinsun.com>
61933
61934         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
61935         to avoid a warning if -Wall.
61936
61937 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
61938
61939         * README: New file
61940         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
61941         (per RMS's instructions, this is now the canonical source)
61942         * lgpl/, gpl/: New directories.
61943
61944 2001-10-21  Paul Eggert  <eggert@twinsun.com>
61945
61946         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
61947
61948 2001-10-21  Jim Meyering  <meyering@lucent.com>
61949
61950         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
61951         this code would end up calling gettext even in packages built
61952         with --disable-nls.
61953         * lib/getopt.c (_): Likewise.
61954         * lib/regex.c (_): Likewise.
61955
61956 2001-10-20  Paul Eggert  <eggert@twinsun.com>
61957
61958         * m4/error.m4 (jm_PREREQ_ERROR):
61959         Do not invoke AC_CHECK_FUNCS with strerror_r, as
61960         AC_FUNC_STRERROR_R does that.
61961         Check for strerror declaration.
61962
61963         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
61964         are supposed to have them these days.
61965         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
61966         Merge changes from latest Autoconf CVS.
61967         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
61968         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
61969         POSIX decided to standardize on the int flavor of strerror_r.
61970
61971 2001-10-20  Paul Eggert  <eggert@twinsun.com>
61972
61973         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
61974         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
61975         Use strerror_r that is only a macro, even if it is not a function.
61976         (strerror): Check for HAVE_DECL_STRERROR before declaring.
61977         (private_strerror): Use prototypes, not old-style function definition.
61978         (print_errno_message): New function.
61979         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
61980         char*-flavored one.
61981         (error_tail, error, error_at_line): Use it.
61982
61983 2001-10-11  Jim Meyering  <meyering@lucent.com>
61984
61985         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
61986         and quote_n (1, ... to avoid clobbering a buffer.
61987
61988 2001-10-05  Jim Meyering  <meyering@lucent.com>
61989
61990         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
61991         hash-pjw.h.
61992         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
61993         * lib/hash-pjw.h: New file.
61994
61995 2001-09-30  Jim Meyering  <meyering@lucent.com>
61996
61997         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
61998         `struct fsstat' has the `f_fstypename' member.
61999         Use that to define FS_TYPE, which is now used to make
62000         the getfsstat link test tighter.
62001
62002 2001-09-30  Jim Meyering  <meyering@lucent.com>
62003
62004         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
62005         Include <sys/ucred.h>, for Apple Darwin.
62006         Include sys/mount.h and sys/fs_types.h only if available.
62007         (FS_TYPE): Define.
62008         (read_filesystem_list): Use FS_TYPE.
62009
62010 2001-09-29  Paul Eggert  <eggert@twinsun.com>
62011
62012         * lib/exclude.c (excluded_filename): 0 -> false, since it's
62013         a boolean context.
62014
62015 2001-09-29  Jim Meyering  <meyering@lucent.com>
62016
62017         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
62018         [one-argument getmntent function]): Include stdio.h before mntent.h.
62019         SunOS 4.1.x needs it for the declaration of `FILE'.
62020         Patch by Volker Borchert.
62021
62022         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
62023         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
62024         sys/fs_types.h, and make the link-test for getfsstat guard #include
62025         directives with appropriate #if HAVE_*_H tests so that we can
62026         detect getfsstat on Apple Darwin1.3.7 systems.
62027         Reported by Nelson Beebe.
62028         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
62029
62030 2001-09-28  Paul Eggert  <eggert@twinsun.com>
62031
62032         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
62033         #defines strtoimax.  Also treat the other strto* functions
62034         like strtoimax.
62035
62036         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
62037         Check for strtoul and strtoumax,
62038         as those declarations are made even in the signed case.
62039         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
62040         Likewise, for strtol and strtoimax.
62041
62042 2001-09-28  Paul Eggert  <eggert@twinsun.com>
62043
62044         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
62045         #defines strtoimax.  Also treat the other strto* functions
62046         like strtoimax.
62047
62048         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
62049         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
62050         (strtoimax, strtoumax): Do not declare if already defined as a macro.
62051
62052 2001-09-26  Jim Meyering  <meyering@lucent.com>
62053
62054         Most macros in unlocked-io.h had the wrong number of arguments.
62055         * lib/gen-uio: New script.
62056         (USE_UNLOCKED_IO): Define to 1 if not already defined.
62057         * lib/unlocked-io.hin: Remove file.
62058         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
62059         rather than trying to embed it here.
62060         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
62061         Reported by Padraig Brady.
62062
62063 2001-09-25  Volker Borchert  <bt@teknon.de>
62064
62065         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
62066         `result'.
62067
62068 2001-09-24  Jim Meyering  <meyering@lucent.com>
62069
62070         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
62071
62072 2001-09-23  Jim Meyering  <meyering@lucent.com>
62073
62074         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
62075         instead of the mere test for existence of mntent.h.  The latter
62076         would get a false-positive on AIX 3.4 systems.
62077         In the outer getmntent if-block, don't die if neither of the getmntent
62078         tests succeeds.  Instead, just fall through and continue with the
62079         remaining tests.
62080
62081 2001-09-23  Jim Meyering  <meyering@lucent.com>
62082
62083         * lib/mountlist.c: Remove useless parentheses in #if directives.
62084         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
62085         the deprecated MOUNTED symbol is no longer defined in mntent.h.
62086
62087 2001-09-22  Jim Meyering  <meyering@lucent.com>
62088
62089         * m4/gettext.m4: New file.  From gettext.
62090         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
62091         * m4/progtest.m4: Likewise
62092         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
62093         * m4/glibc21.m4: Likewise.
62094
62095         * m4/libintl.m4: Remove.  No longer used.
62096
62097 2001-09-22  Jim Meyering  <meyering@lucent.com>
62098
62099         * lib/localcharset.c: Update from latest gettext.
62100         * lib/config.charset: Likewise.
62101
62102 2001-09-20  Jim Meyering  <meyering@lucent.com>
62103
62104         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
62105         strtoimax.
62106         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
62107         strtoumax.
62108
62109 2001-09-20  Jim Meyering  <meyering@lucent.com>
62110
62111         * lib/xstrtol.c (strtoimax): Guard declaration with
62112         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
62113         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
62114         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
62115         (strtoumax): Likewise, for completeness (it wasn't necessary).
62116
62117 2001-09-17  Paul Eggert  <eggert@twinsun.com>
62118
62119         * lib/strtoimax.c (HAVE_LONG_LONG):
62120         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
62121         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
62122         to work around bug in IBM C compiler.
62123
62124 2001-09-17  Jim Meyering  <meyering@lucent.com>
62125
62126         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
62127         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
62128         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
62129         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
62130         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
62131         whenever the right hand side need not be expanded by the shell.
62132
62133 2001-09-16  Paul Eggert  <eggert@twinsun.com>
62134
62135         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
62136         library.  It's not correct, as some older glibcs are buggy.
62137         fnmatch wasn't fixed until glibc 2.2.
62138
62139         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
62140         special shell magic here.
62141
62142 2001-09-16  Jim Meyering  <meyering@lucent.com>
62143
62144         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
62145         * m4/jm-macros.m4: Require it.
62146
62147 2001-09-16  Jim Meyering  <meyering@lucent.com>
62148
62149         * lib/mkdir.c: New file.
62150
62151 2001-09-15  Jim Meyering  <meyering@lucent.com>
62152
62153         * m4/jm-macros.m4: Check for help2man.
62154
62155 2001-09-11  Jim Meyering  <meyering@lucent.com>
62156
62157         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
62158         The body, by Paul Eggert, was moved here from configure.in.
62159         * m4/jm-macros.m4: Require UTILS_HOST_OS.
62160
62161 2001-09-04  Paul Eggert  <eggert@twinsun.com>
62162
62163         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
62164         (jm_PREREQ): Use it.
62165
62166 2001-09-04  Paul Eggert  <eggert@twinsun.com>
62167
62168         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
62169         Use ssize_t, not int, to store result of readlink.
62170         Check for ssize_t overflow as well as size_t overflow,
62171         as POSIX says the result of readlink is implementation-defined
62172         when ssize_t overflows.
62173         Remove unnecessary cast to char*.
62174         Use free+malloc instead of realloc, as the storage doesn't need
62175         to be preserved and it's clearer and can be more efficient that way.
62176         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
62177         * lib/xreadlink.h (xreadlink): Update prototype.
62178
62179 2001-09-04  Paul Eggert  <eggert@twinsun.com>
62180
62181         * lib/xgetcwd.c: Revert some of the previous change; intead,
62182         fix the HAVE_GETCWD_NULL code to behave more like the
62183         !HAVE_GETCWD_NULL code used to.
62184
62185         Include "xalloc.h".
62186         (xgetcwd): Do not return NULL when memory is exhausted; instead,
62187         invoke xalloc_die.
62188
62189 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62190
62191         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
62192         sys/param.h, as pathmax.h includes them.
62193
62194 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62195
62196         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
62197         (jm_PREREQ_XGETCWD): New macro.
62198
62199         * m4/getcwd.m4: New file.
62200
62201 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62202
62203         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
62204         like the HAVE_GETCWD_NULL code.
62205         Include pathmax.h if not HAVE_GETCWD.
62206         Do not include xalloc.h.
62207         (INITIAL_BUFFER_SIZE): New symbol.
62208         Do not use xmalloc / xrealloc, since the caller is responsible for
62209         handling errors.  Preserve errno around `free' during failure.
62210         Do not overrun buffer when using getwd.
62211
62212 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62213
62214         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
62215         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
62216         getcwd (NULL, 0).
62217
62218 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62219
62220         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
62221         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
62222         spotted by Jim Meyering.
62223
62224 2001-09-03  Jim Meyering  <meyering@lucent.com>
62225
62226         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
62227         failure.
62228
62229 2001-09-02  Jim Meyering  <meyering@lucent.com>
62230
62231         * lib/error.c: Update from GNU libc.
62232
62233 2001-09-01  Jim Meyering  <meyering@lucent.com>
62234
62235         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
62236         Used by df.
62237
62238 2001-09-01  Jim Meyering  <meyering@lucent.com>
62239
62240         * lib/xreadlink.c: New file.
62241         * lib/xreadlink.h: New file.
62242         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
62243         xreadlink.h.
62244
62245         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
62246         doesn't conflict with sparc Solaris 7's definition in
62247         /usr/include/sys/int_types.h.
62248
62249         * lib/exclude.c: Use `""', not `<>' to #include non-system header
62250         files.
62251         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
62252         and strncasecmp as r-values.  Unixware didn't have declarations.
62253
62254 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62255
62256         * lib/xstrtol.h: Add copyright notice.
62257         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
62258         LONGINT_INVALID_SUFFIX_CHAR.
62259
62260 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62261
62262         * lib/xstrtol.c (strtoimax): New decl.
62263
62264 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62265
62266         * lib/xgetcwd.c: Don't include pathmax.h.
62267         Include stdlib.h and unistd.h if available.
62268         Include xalloc.h.
62269         (xmalloc, xstrdup, free): Remove decls.
62270         (xgetcwd): Don't assume sizes fit in unsigned.
62271         Check for overflow when computing sizes.
62272         Simplify reallocation code.
62273
62274 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62275
62276         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
62277         a directory's st_size can have an arbitrary value, so the old
62278         usage could waste an arbitrary amount of memory.  All uses
62279         changed.
62280         * lib/savedir.h: Update prototype.
62281
62282 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62283
62284         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
62285
62286         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
62287         old strtoimax.c.
62288
62289         Also, make the following further changes to make this file's
62290         configuration more similar to that of strtol.c:
62291         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
62292         (strtoumax, uintmax_t, strtoull, strtol): Remove.
62293         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
62294         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
62295         changed to signed values.
62296
62297         And make the following changes as well:
62298         Fix copyright notice, as 1999 was missing.
62299         (verify): New macro.
62300         (strtoimax): Check sizes at compile-time, not run-time.
62301         Prefer strtol to strtoll if both work.
62302         (main): Remove; it was not that useful and was a pain to maintain.
62303
62304         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
62305
62306 2001-08-31  Jim Meyering  <meyering@lucent.com>
62307
62308         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
62309         Use an initial, malloc'd, buffer of length 128 rather than
62310         a statically allocated one of length 1024.
62311
62312 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62313
62314         Simplify code, partly by assuming autoconf 2.52 semantics.
62315
62316         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
62317
62318         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
62319         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
62320         All uses removed.
62321         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
62322         Move AC_REQUIRE to next-to-top level, to avoid confusion.
62323         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
62324         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
62325         jm_AC_HEADER_INTTYPES_H.
62326         * m4/jm-macros.m4 (jm_MACROS): Likewise.
62327
62328         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
62329
62330         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
62331         Quote first arg of AC_DEFUN.
62332         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
62333         since they are needed to parse the include file even if we need
62334         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
62335         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
62336         but with opposite signedness.
62337
62338 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62339
62340         Merge 'exclude' changes from tar 1.13.22.
62341         This fixes one or two unlikely storage allocation overflow bugs,
62342         but doesn't change user-visible behavior otherwise.
62343
62344 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62345
62346         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
62347         (jm_PREREQ_EXCLUDE): New macro.
62348
62349 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62350
62351         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
62352         tm to be declared.
62353
62354 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62355
62356         * lib/hash.c: Remove '2001' from copyright notice.
62357
62358 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62359
62360         * lib/full-write.h: New file.
62361         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
62362         * lib/full-write.c: Correct credits, as cccp.c no longer
62363         exists and anyway it was so heavily changed from the old cccp
62364         code as to be unrecognizable.  Include full-write.h.
62365         (full_write) Return size_t, with short writes meaning failure.
62366         All callers changed.  This fixes a bug with large buffers
62367         on 64-bit hosts.
62368         * lib/utime.c: Include full-write.h.
62369
62370 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62371
62372         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
62373         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
62374         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
62375         Include if available.
62376         (<xalloc.h>): Include
62377         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
62378         (verify): New macro.  Use it to verify that EXCLUDE macros do not
62379         collide with FNM macros.
62380         (struct patopts): New struct.
62381         (struct exclude): Use it, as exclude patterns now come with options.
62382         (new_exclude): Support above changes.
62383         (new_exclude, add_exclude_file):
62384         Initial size must now be a power of two to simplify overflow checking.
62385         (free_exclude, fnmatch_no_wildcards): New function.
62386         (excluded_filename): No longer requires options arg, as the options
62387         are determined by add_exclude.  Now returns bool, not int.
62388         (excluded_filename, add_exclude):
62389         Add support for the fancy new exclusion options.
62390         (add_exclude, add_exclude_file): Now takes int options arg.
62391         Check for arithmetic overflow when computing sizes.
62392         (add_exclude_file): xrealloc might modify errno, so don't
62393         realloc until after errno might be used.
62394
62395         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
62396         New macros.
62397         (free_exclude): New decl.
62398         (add_exclude, add_exclude_file): Now takes int options arg.
62399         (excluded_filename): No longer requires options arg, as the options
62400         are determined by add_exclude.  Now returns bool, not int.
62401
62402 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62403
62404         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
62405
62406 2001-08-27  Jim Meyering  <meyering@lucent.com>
62407
62408         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
62409
62410         * lib/version-etc.c (N_): Remove definition.
62411         Revert most of last change.
62412         Instead, simply don't mark the `Copyright...' string for translation.
62413         Based on advice from Paul Eggert.
62414
62415         * lib/strtoxmax.c: Tweak comment.
62416
62417 2001-08-26  Jim Meyering  <meyering@lucent.com>
62418
62419         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
62420
62421         * m4/xstrtoimax.m4: New file.
62422         * m4/xstrtoumax.m4: Add comments explaining why we
62423         AC_REPLACE_FUNCS(strtol).
62424
62425 2001-08-26  Jim Meyering  <meyering@lucent.com>
62426
62427         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
62428         of copyright with `%s' so translators don't get an untranslated
62429         message in 2002.
62430         (COPYRIGHT_YEAR): Define.
62431         (version_etc): Use fprintf rather than fputs.
62432         Suggestion from Ulrich Drepper.
62433
62434         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
62435
62436         * lib/strtoll.c: New file, from GNU libc.
62437         * lib/xstrtoimax.c: New file.
62438
62439         * lib/xstrtol.h: Add xstrtoimax.
62440         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
62441         * lib/strtoimax.c: New file.  Likewise, but first define
62442         STRTOUXMAX_SIGNED.
62443
62444         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
62445         ...
62446         * lib/strtoxmax.c: ... then renamed to this.
62447
62448 2001-08-18  Paul Eggert  <eggert@twinsun.com>
62449
62450         * m4/inttypes.m4: Add AC_PREREQ(2.13).
62451         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
62452         (jm_AC_TYPE_INTMAX_T): New macro.
62453         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
62454
62455         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
62456
62457         * m4/longlong.m4: Renamed from ulonglong.m4.
62458         * m4/inttypes.m4: Renamed from inttypes_h.m4.
62459         * m4/uintmax_t.m4: Removed.
62460
62461 2001-08-13  Paul Eggert  <eggert@twinsun.com>
62462
62463         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
62464         Port to Solaris 8, where 'sed' requires a space after the 'r'
62465         command, and where sh dislikes "$/".  Clean up the spacing a bit.
62466         Redirect output to $tmp just once.
62467
62468 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
62469
62470         * lib/addext.c (<errno.h>): Include.
62471         (errno): Declare if not defined.
62472         (addext): Work correctly when pathconf returns -1 and leaves
62473         errno alone because there is no limit.  Also, work even if
62474         pathconf returns a value greater than SIZE_MAX.
62475
62476 2001-08-12  Jim Meyering  <meyering@lucent.com>
62477
62478         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
62479         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
62480         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
62481         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
62482         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
62483         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
62484         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
62485         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
62486         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
62487         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
62488         utime.m4, utimes.m4, xstrtoumax.m4:
62489         Quote the first argument in each use of AC_DEFUN.
62490
62491 2001-08-12  Jim Meyering  <meyering@lucent.com>
62492
62493         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
62494         Simply `return getcwd (NULL, 0);'.
62495         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
62496         Use 1300 as initial value for length, not PATH_MAX.
62497
62498         * lib/pathmax.h: Clean up cpp syntax.
62499
62500 2001-08-12  Jim Meyering  <meyering@lucent.com>
62501
62502         * lib/gettimeofday.c: New file.
62503         * lib/gtod.h: New file.
62504         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
62505
62506 2001-08-05  Jim Meyering  <meyering@lucent.com>
62507
62508         * m4/jm-macros.m4: Require autoconf-2.52.
62509
62510 2001-08-04  Jim Meyering  <meyering@lucent.com>
62511
62512         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
62513         stmt, to get in sync with glibc.
62514
62515 2001-08-03  Paul Eggert  <eggert@twinsun.com>
62516
62517         The following changes are from gettext 0.10.39 as maintained by
62518         Bruno Haible.
62519
62520         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
62521         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
62522         with inverted sense.  All uses changed.
62523
62524         * lib/mbswidth.c: Don't include <limits.h>.
62525         Include <stdlib.h> and <string.h> unconditionally.
62526         (iswcntrl, mbsinit, ISCNTRL): New macros.
62527         (mbsnwidth): Use K&R style function declarations.
62528         Don't bother checking for MB_LEN_MAX == 1, since the compiler
62529         can optimize it when MB_CUR_MAX == 1.
62530         The width of control characters is zero, not 1.
62531
62532 2001-08-03  Paul Eggert  <eggert@twinsun.com>
62533
62534         The following changes are from gettext 0.10.39 as maintained by
62535         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
62536
62537         * m4/codeset.m4: Upgrade to serial AM1.
62538         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
62539         all uses changed.  Quote first arg of AC_DEFUN.
62540         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
62541
62542         * m4/iconv.m4: Upgrade to serial AM2.
62543         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
62544         Add --with-libconv-prefix.
62545         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
62546         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
62547         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
62548         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
62549         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
62550
62551         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
62552         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
62553         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
62554         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
62555         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
62556         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
62557         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
62558         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
62559         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
62560
62561         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
62562         string.h any more.
62563
62564         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
62565         not the default value.
62566
62567         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
62568         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
62569         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
62570         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
62571         Also check for iswcntrl, used for wcwidth fallback.
62572         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
62573         to Autoconf 2.13.
62574
62575 2001-08-03  Jim Meyering  <meyering@lucent.com>
62576
62577         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
62578         as it was in the original.  Reported by Paul Eggert.
62579
62580 2001-07-16  Jim Meyering  <meyering@lucent.com>
62581
62582         * m4/gettimeofday.m4: New file.
62583         Prompted by a report from Bernhard Baehr.
62584
62585 2001-07-15  Jim Meyering  <meyering@lucent.com>
62586
62587         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
62588         stuff. Now it's in ../Makefile.cfg.
62589
62590 2001-07-15  Jim Meyering  <meyering@lucent.com>
62591
62592         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
62593         (BUILT_SOURCES): Add unlocked-io.h.
62594         (io_functions): Define.
62595         (unlocked-io.h): New rule.
62596         (DISTCLEANFILES): Add unlocked-io.h.
62597         (all-local): Depend on unlocked-io.h, to ensure it is created.
62598
62599         * lib/unlocked-io.hin: New file
62600
62601         * lib/regex.c: Update from glibc.
62602
62603 2001-07-05  Jim Meyering  <meyering@lucent.com>
62604
62605         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
62606         recommendation.
62607         (libfetish_a_SOURCES): Put all .h files here instead.
62608         Remove a thus-exposed (better checks in automake) duplicate and
62609         two unnecessary .h files.
62610
62611 2001-07-04  Jim Meyering  <meyering@lucent.com>
62612
62613         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
62614         that generates jm-glibc-io.m4 so that it doesn't trigger any make
62615         distcheck failure.
62616
62617 2001-07-02  Jim Meyering  <meyering@lucent.com>
62618
62619         The following changes were prompted by suggestions from Bruno Haible.
62620
62621         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
62622         is now generated.
62623         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
62624         definition of EXTRA_DIST.
62625         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
62626         ensure that the generated file is created/updated whenever the list
62627         of $(unlocked_functions) is changed.
62628         (jm-glibc-io.m4): New rule.
62629         (unlocked-io.h): New rule -- currently unused.
62630
62631 2001-06-24  Jim Meyering  <meyering@lucent.com>
62632
62633         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
62634         unmatched right bracket, rather than kludging it with an extra,
62635         falsely-matching quote in a comment.  Patch by Akim Demaille.
62636
62637 2001-06-11  Jim Meyering  <meyering@lucent.com>
62638
62639         * lib/regex.c: Update from GNU libc.
62640
62641 2001-05-27  Jim Meyering  <meyering@lucent.com>
62642
62643         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
62644         Check for ut_type in struct utmp.
62645
62646 2001-05-27  Jim Meyering  <meyering@lucent.com>
62647
62648         * lib/readutmp.h (UT_TYPE): Define.
62649
62650 2001-05-24  Jim Meyering  <meyering@lucent.com>
62651
62652         * lib/argmatch.c: Include "quote.h".
62653         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
62654         quote function.  Reported by Göran Uddeborg.
62655
62656 2001-05-22  Jim Meyering  <meyering@lucent.com>
62657
62658         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
62659         now that we use the package-supplied version unconditionally.
62660         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
62661
62662 2001-05-21  Jim Meyering  <meyering@lucent.com>
62663
62664         * m4/regex.m4: Change a couple backticks to single quotes to avoid
62665         shell syntax errors.
62666
62667 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
62668
62669         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
62670
62671 2001-05-20  Paul Eggert  <eggert@twinsun.com>
62672
62673         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
62674         Don't bother to check library strftime, since
62675         we'll be using our own my_strftime function anyway.
62676         Define my_strftime instead of strftime.
62677
62678 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
62679
62680         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
62681         which is not yet declared.
62682
62683 2001-05-15  Jim Meyering  <meyering@lucent.com>
62684
62685         * m4/regex.m4: Use proper quoting so brackets appear in the test
62686         program.
62687         Reported by, and with help from, Bruno Haible.
62688
62689 2001-05-13  Jim Meyering  <meyering@lucent.com>
62690
62691         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
62692         undefined.
62693
62694 2001-05-11  Paul Eggert  <eggert@twinsun.com>
62695
62696         dirname code cleanup.  base_name now behaves more compatibly
62697         with POSIX basename when given file names that have trailing
62698         slashes, and similarly for dir_name.  Add new primitives
62699         base_len and dir_len.  Put the directory-name-related decls
62700         into dirname.h.
62701
62702         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
62703         * lib/backupfile.c (base_name): Likewise.
62704         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
62705         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
62706         * lib/makepath.c (strip_trailing_slashes): Likewise.
62707         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
62708         ISSLASH): Likewise.
62709         * lib/rename.c (strip_trailing_slashes): Likewise.
62710         * lib/same.c (base_name): Likewise.
62711         * lib/stripslash.c (ISSLASH): Likewise.
62712
62713         * lib/addext.c: Include <dirname.h> after size_t is defined.
62714         * lib/backupfile.c: Likewise.
62715
62716         * lib/addext.c (addext): Use base_len to trim redundant
62717         trailing slashes instead of doing it ourselves.
62718         But do not trim the last slash if it is not redundant.
62719
62720         * lib/backupfile.c (find_backup_file_name,
62721         max_backup_version): Use base_len instead of rolling it ourselves.
62722         Handle the case of "" and (on DOS) "C:" correctly.
62723
62724         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
62725         needed. Include <string.h>, <dirname.h>.
62726         (base_name): Allow file names ending in slashes, other than names
62727         that are all slashes.  In this case, return the basename followed
62728         by the slashes.  This is more general, and can be used in places
62729         where the original base_name purposely had an assertion failure.
62730         (base_len): New function.
62731
62732         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
62733         Do not include <assert.h>; no longer needed.
62734         Include xalloc.h.
62735         (memrchr): Remove decl.
62736         (dir_name_r): Remove.
62737         (dir_len): Renamed from dirlen.  All callers changed.
62738         Rewrite in terms of base_name, for simplicity and consistency.
62739         (dir_name): Never return NULL.  All callers changed.
62740         Do not include <stdlib.h> in test program; no longer needed.
62741         return 0; is fine for test program.
62742
62743         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
62744         New macros.
62745         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
62746
62747         * lib/path-concat.c (path_concat): Use base_len to compute
62748         base length, not strlen; this means we cannot rely on memcpy
62749         to null-terminate.
62750
62751         * lib/same.c (STREQ): Remove.
62752         (same_name): Handle the case where the basename ends in trailing '/'.
62753
62754         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
62755         a slash was stripped.  Do not strip the last slash after a
62756         file system prefix.
62757
62758 2001-05-11  Paul Eggert  <eggert@twinsun.com>
62759
62760         * lib/Makefile.am (libfetish_a_SOURCES):
62761         Add strftime.c, since we now compile it on all hosts.
62762
62763         * lib/strftime.c (my_strftime):
62764         Define to nstrftime if emacs, but only if my_strftime is not defined.
62765         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
62766         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
62767         Add one more extra argument: a nanoseconds value.
62768         All uses changed.
62769         (ns): New macro.
62770         (my_strftime function): Add %N format.
62771         (emacs_strftimeu): Renamed from emacs_strftime,
62772         with extra ut argument.
62773
62774 2001-05-09  Paul Eggert  <eggert@twinsun.com>
62775
62776         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
62777
62778 2001-04-21  Jim Meyering  <meyering@lucent.com>
62779
62780         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
62781         doesn't interfere.
62782
62783 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
62784
62785         * m4/ftruncate.m4: Check for chsize.
62786         Link with ftruncate.o unconditionally if ftruncate is missing.
62787         This was required when cross-compiling to i586-mingw32msvc.
62788
62789 2001-04-08  Jim Meyering  <meyering@lucent.com>
62790
62791         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
62792         recomputed; that's necessary when the offset spans a DST transition.
62793         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
62794
62795 2001-04-02  Jim Meyering  <meyering@lucent.com>
62796
62797         * lib/regex.h, regex.c: Update from GNU libc.
62798
62799 2001-03-24  Jim Meyering  <meyering@lucent.com>
62800
62801         * m4/jm-macros.m4: Require autoconf-2.49d.
62802
62803 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
62804
62805         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
62806
62807 2001-03-19  Paul Eggert  <eggert@twinsun.com>
62808
62809         * lib/version-etc.c (version_etc_copyright): Update to 2001.
62810
62811 2001-03-17  Jim Meyering  <meyering@lucent.com>
62812
62813         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
62814         now that the version in autoconf is equivalent.
62815         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
62816
62817         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
62818         Suggestion from Akim Demaille.
62819
62820         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
62821         (jm_PREREQ_TEMPNAME): New function.
62822
62823 2001-03-16  Paul Eggert  <eggert@twinsun.com>
62824
62825         * lib/tempname.c (uint64_t): Define to uintmax_t if
62826         not defined, and if UINT64_MAX is not defined.
62827         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
62828         Reported by John David Anglin.
62829
62830 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
62831
62832         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
62833         resolve alias if codeset is empty.
62834         * lib/config.charset (BeOS): Use wildcard syntax.
62835
62836 2001-03-13  Jim Meyering  <meyering@lucent.com>
62837
62838         * lib/path-concat.c (path_concat)
62839         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
62840         concatenating e.g., `C:' and `foo'.
62841         From Bruno Haible.
62842
62843 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
62844
62845         * lib/localcharset.c (locale_charset): Don't use
62846         setlocale(LC_CTYPE,NULL). Don't return NULL.
62847         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
62848
62849 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
62850
62851         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
62852         support for DOS/DJGPP.
62853
62854 2001-03-01  Paul Eggert  <eggert@twinsun.com>
62855
62856         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
62857         lacks mkstemp.  Compile our own tempname.c if we compile our own
62858         mkstemp.c, as mkstemp relies on tempname.
62859
62860 2001-03-01  Jim Meyering  <meyering@lucent.com>
62861
62862         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
62863         AH_VERBATIM really does output its argument verbatim.
62864
62865 2001-02-28  Paul Eggert  <eggert@twinsun.com>
62866
62867         * lib/Makefile.am (libfetish_a_SOURCES):
62868         Add dup-safer.c, fopen-safer.c.
62869         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
62870
62871         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
62872         * lib/unistd-safer.h: New files.
62873
62874 2001-02-25  Paul Eggert  <eggert@twinsun.com>
62875
62876         The mkstemp replacement is taken from glibc 2.2.2, with some
62877         portability fixes for use outside glibc, as follows:
62878
62879         * lib/tempname.c (struct_stat64): New macro.
62880         (direxists, __gen_tempname): Use it.
62881         This avoids a portability problem with Solaris 8.
62882
62883         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
62884         (<stddef.h>, <stdint.h>, <string.h>):
62885         Include only if STDC_HEADERS || _LIBC.
62886         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
62887         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
62888         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
62889         (__set_errno): Define this macro if <errno.h> doesn't.
62890         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
62891         Define these macros if <stdio.h> doesn't.
62892         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
62893         Define these macros if <sys/stat.h>
62894         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
62895         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
62896         __xstat64): Define if not _LIBC.
62897         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
62898         (__gen_tempname): Invoke gettimeofday only if
62899         HAVE_GETTIMEOFDAY || _LIBC;
62900         otherwise, fall back on plain "time".
62901         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
62902
62903         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
62904
62905         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
62906
62907 2001-02-18  Paul Eggert  <eggert@twinsun.com>
62908
62909         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
62910
62911 2001-02-17  Paul Eggert  <eggert@twinsun.com>
62912
62913         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
62914         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
62915         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
62916         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
62917
62918 2001-02-17  Paul Eggert  <eggert@twinsun.com>
62919
62920         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
62921         Remove workaround macros for hosts that have mbrtowc but not
62922         mbstate_t, as we now insist on proper declarations for both
62923         before using mbrtowc.
62924
62925 2001-02-17  Jim Meyering  <meyering@lucent.com>
62926
62927         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
62928         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
62929         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
62930         UnixWare 7.1.1.
62931
62932         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
62933         rather than AC_CACHE_VAL.
62934
62935 2001-02-17  Jim Meyering  <meyering@lucent.com>
62936
62937         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
62938         around included file name.
62939
62940         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
62941
62942         * lib/strftime.c: Update from GNU libc (the only changes were to
62943         comments).
62944
62945 2001-02-17  Jim Meyering  <meyering@lucent.com>
62946
62947         * lib/regex.c: Update from libc.
62948
62949 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
62950
62951         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
62952         clash.
62953
62954 2001-02-16  Paul Eggert  <eggert@twinsun.com>
62955
62956         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
62957         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
62958         Reported by Mark Hounschell via Paul Eggert.
62959
62960 2001-02-07  Jim Meyering  <meyering@lucent.com>
62961
62962         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
62963
62964 2001-02-05  Jim Meyering  <meyering@lucent.com>
62965
62966         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
62967         it includes the patch required for `large file' support with at least
62968         HP-UX's 10.20 /bin/cc.
62969
62970 2001-02-03  Jim Meyering  <meyering@lucent.com>
62971
62972         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
62973         AS_IF, now that it works once again (mysteriously).
62974         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
62975
62976 2001-01-30  Jim Meyering  <meyering@lucent.com>
62977
62978         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
62979         * m4/chown.m4: Rename conftestchown to conftest.chown.
62980         * m4/rename.m4: s/conftestdir/conftest.d1/ and
62981         s/conftestdir2/conftest.d2/.
62982         * m4/utimes.m4: s/conftestdata/conftest.data/
62983         Inspired by Pavel Roskin's change in autoconf.
62984
62985 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
62986
62987         * lib/config.charset: Update for FreeBSD 4.2.
62988
62989 2001-01-27  Jim Meyering  <meyering@lucent.com>
62990
62991         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
62992         a use of AS_IF.
62993         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
62994
62995 2001-01-26  Jim Meyering  <meyering@lucent.com>
62996
62997         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
62998         quotearg.c includes it.
62999
63000 2001-01-26  Jim Meyering  <meyering@lucent.com>
63001
63002         * lib/quotearg.c: Include stddef.h.
63003         * lib/quote.c: Include stddef.h.
63004         Reported by Axel Kittenberger.
63005
63006         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
63007         line in double quotes so that it evokes a better diagnostic.
63008         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
63009         Reported by Axel Kittenberger.
63010
63011 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
63012
63013         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
63014         as if it was a `charset'.
63015
63016 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
63017
63018         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
63019         has const.
63020
63021 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
63022
63023         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
63024         to avoid a warning.  Add back 'const' to inptr.
63025
63026 2001-01-20  Jim Meyering  <meyering@lucent.com>
63027
63028         Be sure that headers are checked before used in code compiled
63029         for the type checks.
63030         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
63031         In place of that, invoke jm_CHECK_ALL_TYPES.
63032         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
63033         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
63034         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
63035         The check for ssize_t was mistakenly run before the test for unistd.h.
63036
63037         The configure-time check for stdbool.h was missing.
63038         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
63039         (jm_PREREQ_HASH): New function.
63040
63041 2001-01-17  Jim Meyering  <meyering@lucent.com>
63042
63043         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
63044         for autoconf-2.49c.
63045         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
63046
63047 2001-01-16  Jim Meyering  <meyering@lucent.com>
63048
63049         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
63050         From Bruno Haible.
63051
63052 2001-01-14  Jim Meyering  <meyering@lucent.com>
63053
63054         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
63055         foo and bar.  Create conftestdir/ in the script, not in the C code.
63056         Remove directories in the script, not in the C code.
63057         Remove conftestdir{,2} before trying to create the directory.
63058         Make the entire configure script fail if the mkdir fails.
63059
63060 2001-01-14  Jim Meyering  <meyering@lucent.com>
63061
63062         * lib/rename.c: New file.  From Volker Borchert.
63063         Include stdlib.h, string.h or strings.h, and xalloc.h.
63064         Use strip_trailing_slashes rather than open-coding it.
63065
63066 2001-01-03  Paul Eggert  <eggert@twinsun.com>
63067
63068         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
63069
63070 2001-01-03  Jim Meyering  <meyering@lucent.com>
63071
63072         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
63073         of local `inptr' to avoid warning with some system declarations of
63074         iconv.
63075
63076 2001-01-02  Volker Borchert  <bt@teknon.de>
63077
63078         * m4/rename.m4: New file.
63079         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
63080
63081 2001-01-01  Jim Meyering  <meyering@lucent.com>
63082
63083         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
63084         even on systems with utmpx.h.  It's necessary for the declaration of
63085         utmp's ut_user member.  Reported by Andreas Jaeger.
63086
63087         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
63088         available. They are required for the declarations of getgrgid and
63089         getpwuid resp.
63090         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
63091         Reported by Andreas Jaeger.
63092
63093 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
63094
63095         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
63096         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
63097         so `make install' also works in VPATH builds.
63098
63099 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
63100
63101         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
63102         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
63103         can be used in subdirectories.
63104
63105 2000-12-29  Paul Eggert  <eggert@twinsun.com>
63106
63107         * lib/modechange.c: Do not assume that mode_t uses the
63108         traditional octal encoding.  E.g. "chmod 1 FOO" should set
63109         the other-execute bit of FOO even if S_IXOTH != 1.
63110
63111         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
63112         WOTH, XOTH, ALLM): New macros.
63113         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
63114          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
63115         Use them.
63116         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
63117         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
63118         (mode_compile):
63119         No need to use uintmax_t; unsigned long is long enough.
63120         Don't bother to get suffix since we don't use it.
63121
63122 2000-12-26  Jim Meyering  <meyering@lucent.com>
63123
63124         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
63125         better with autoheader.
63126
63127 2000-12-24  Jim Meyering  <meyering@lucent.com>
63128
63129         * lib/hash.c (is_prime): Return explicit boolean values.
63130         (hash_get_first): Return NULL to appease Irix5.6's 89.
63131         Reported by Nelson Beebe.
63132
63133 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
63134
63135         * lib/localcharset.c (locale_charset): Add support for Win32.
63136
63137 2000-12-18  Paul Eggert  <eggert@twinsun.com>
63138
63139         * lib/physmem.h, lib/physmem.c: New files.
63140
63141         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
63142         (noinst_HEADERS): Add physmem.h.
63143
63144         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
63145         't' for compatibility with Solaris 8 sort.
63146
63147 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
63148
63149         * lib/config.charset: Add support for BeOS.
63150
63151 2000-12-17  Jim Meyering  <meyering@lucent.com>
63152
63153         * m4/dos.m4 (jm_AC_DOS): New file and macro.
63154         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
63155
63156 2000-12-16  Jim Meyering  <meyering@lucent.com>
63157
63158         This bug had a serious impact on chown: `chown N:M FILE' (for integer
63159         N and M) would have treated it like `chown N:N FILE'.
63160
63161         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
63162
63163 2000-12-16  Jim Meyering  <meyering@lucent.com>
63164
63165         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
63166         SHELLS_FILE to a file name that's useful on djgpp systems.
63167         Include stdlib.h.
63168         (ADDITIONAL_DEFAULT_SHELLS): Define.
63169         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
63170         Based mostly on a patch from Prashant TR.
63171
63172 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
63173
63174         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
63175         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
63176         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
63177
63178 2000-12-08  Andreas Schwab  <schwab@suse.de>
63179
63180         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
63181         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
63182
63183 2000-12-07  Jim Meyering  <meyering@lucent.com>
63184
63185         * lib/stripslash.c (ISSLASH): Define.
63186         (strip_trailing_slashes): Use ISSLASH rather than comparing against
63187         `/'.
63188         From Prashant TR.
63189
63190         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
63191         (dir_name_r): Declare this function as static.
63192         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
63193         manifest itself on a name containing a mix of slashes and
63194         backslashes.
63195         Make this function work with names starting with a DOS-style
63196         drive letter and colon prefix.
63197         (dir_name): Append `.' if necessary.
63198         Based mostly on patches from Prashant TR and Eli Zaretskii.
63199
63200         * lib/dirname.h (dir_name_r): Remove prototype.
63201
63202 2000-12-06  Paul Eggert  <eggert@twinsun.com>
63203
63204         * m4/off_t-format.m4: Remove this file.
63205         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
63206
63207 2000-12-06  Jim Meyering  <meyering@lucent.com>
63208
63209         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
63210         replacement strtoull, we may well need the replacement strtoul, too.
63211         Check for declarations of strtoul and strtoull.
63212         Check for strtol.  Mainly as a cue to cause automake to include
63213         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
63214         Check for limits.h -- strtol.c needs it.
63215
63216 2000-12-05  Jim Meyering  <meyering@lucent.com>
63217
63218         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
63219
63220 2000-12-04  Jim Meyering  <meyering@lucent.com>
63221
63222         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
63223         Also include memory.h, stdlib.h, unistd.h if appropriate.
63224         Reported by Andreas Jaeger (conflicting declaration of malloc).
63225
63226 2000-12-02  Jim Meyering  <meyering@lucent.com>
63227
63228         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
63229         * m4/jm-macros.m4 (jm_MACROS): require it.
63230
63231 2000-12-02  Jim Meyering  <meyering@lucent.com>
63232
63233         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
63234
63235 2000-12-01  Paul Eggert  <eggert@twinsun.com>
63236
63237         * lib/memrchr.c: Include <config.h> before any system include file.
63238
63239 2000-11-30  Jim Meyering  <meyering@lucent.com>
63240
63241         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
63242
63243 2000-11-30  Jim Meyering  <meyering@lucent.com>
63244
63245         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
63246
63247 2000-11-29  Paul Eggert  <eggert@twinsun.com>
63248
63249         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
63250
63251 2000-11-26  Jim Meyering  <meyering@lucent.com>
63252
63253         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
63254
63255 2000-11-22  Paul Eggert  <eggert@twinsun.com>
63256
63257         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
63258         size of (size_t) -1; it's not portable.
63259
63260 2000-11-17  Jim Meyering  <meyering@lucent.com>
63261
63262         * lib/strstr.c: Update from GNU libc.
63263
63264 2000-11-17  Akim Demaille  <akim@epita.fr>
63265
63266         * lib/obstack.h: Formatting changes.
63267         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
63268         prevent type checking.
63269         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
63270         cast the value to (void *): assigning a `foo *' to a `void *'
63271         variable is valid.
63272         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
63273
63274 2000-11-16  Jim Meyering  <meyering@lucent.com>
63275
63276         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
63277
63278 2000-11-11  Jim Meyering  <meyering@lucent.com>
63279
63280         * lib/error.c: Add a couple #includes, merging from GNU libc version.
63281
63282 2000-11-10  Jim Meyering  <meyering@lucent.com>
63283
63284         * lib/obstack.h: Update from GNU libc.
63285         * lib/obstack.c: Likewise.
63286
63287 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
63288
63289         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
63290
63291 2000-11-06  Paul Eggert  <eggert@twinsun.com>
63292
63293         * lib/getusershell.c (setusershell): Use rewind rather than
63294         fseek/fseeko, to avoid configuration hassles with fseeko.
63295         Don't bother opening SHELLS_FILE if shellstream is NULL;
63296         it's not necessary.
63297
63298 2000-11-05  Jim Meyering  <meyering@lucent.com>
63299
63300         * lib/makepath.h (make_dir): Declare.
63301         * lib/makepath.c (make_dir): Remove `static' attribute.
63302         Tweak a comment.
63303
63304 2000-11-04  Jim Meyering  <meyering@lucent.com>
63305
63306         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
63307
63308 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
63309
63310         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
63311         last one in a bucket, advance to the next bucket.
63312
63313 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
63314
63315         * lib/fnmatch.c: Do not comment out all the code if we are using
63316         the GNU C library, because in some cases we are replacing buggy
63317         code in the GNU C library itself.
63318
63319 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
63320
63321         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
63322         (regex_compile): Catch bogus \(\1\).
63323
63324 2000-10-30  Paul Eggert  <eggert@twinsun.com>
63325
63326         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
63327         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
63328         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
63329
63330 2000-10-30  Paul Eggert  <eggert@twinsun.com>
63331
63332         * lib/error.h, getline.h, modechange.h:
63333         Remove "2000" from Copyright line, as the file hasn't been
63334         changed this year other than in the copyright notice.
63335
63336         * lib/xalloc.h: Add "2000" to Copyright line, as this file
63337         was changed this year.
63338
63339 2000-10-29  Jim Meyering  <meyering@lucent.com>
63340
63341         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
63342         renaming.
63343         * m4/ls-mntd-fs.m4: Likewise
63344
63345 2000-10-29  Jim Meyering  <meyering@lucent.com>
63346
63347         * lib/xstat.in: Fix grammar in comment.
63348
63349 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
63350
63351         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
63352         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
63353         doesn't define __restrict_arr.
63354
63355 2000-10-28  Jim Meyering  <meyering@lucent.com>
63356
63357         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
63358         (jm_PREREQ_MEMCHR): New function.
63359
63360 2000-10-28  Jim Meyering  <meyering@lucent.com>
63361
63362         * lib/memchr.c: Update from libc.
63363         Adjust for portability:
63364         [HAVE_STDLIB_H]: Include stdlib.h.
63365         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
63366         Undef __memchr, too.
63367         [!weak_alias]: Define __memchr to memchr.
63368
63369         * lib/regex.c: Update from libc.
63370         * lib/regex.h: Likewise.
63371         * lib/getopt1.c: Likewise.
63372         * lib/memcmp.c: Likewise.
63373
63374         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
63375         Avoid using fseek, when possible -- it's broken by design.
63376         Patch by Ulrich Drepper.
63377
63378 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
63379
63380         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
63381         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
63382         Giving in to popular pressure to shut up the compiler with casts.
63383
63384 2000-10-26  Jim Meyering  <meyering@lucent.com>
63385
63386         * lib/strftime.c: Update from libc.
63387
63388 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
63389
63390         * regex.c: More `unsigned char' -> `re_char' changes.
63391         Also change several `int' into `re_wchar_t'.
63392         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
63393         (PUSH_FAILURE_POINTER): Don't cast any more.
63394         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
63395         We want GCC to complain, since this piece of code makes
63396         re_match non-reentrant, which *should* be fixed.
63397         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
63398         (EXTEND_BUFFER): Use RETALLOC.
63399         (SET_LIST_BIT): Don't cast.
63400         (re_wchar_t): New type.
63401         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
63402         that those two functions will always properly return.
63403         (IMMEDIATE_QUIT_CHECK): Cast to void.
63404         (analyse_first): Use recursion rather than an explicit stack.
63405         (re_compile_fastmap): Can't fail anymore.
63406         (re_search_2): Don't check re_compile_fastmap for failure.
63407         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
63408         Now also sets the new value (passed in a new argument).
63409         (re_match_2_internal): Use it.
63410         Also, use a new var `reg' of type size_t when looping through regs
63411         rather than reuse the inappropriate `mcnt'.
63412
63413 2000-10-25  Jim Meyering  <meyering@lucent.com>
63414
63415         * lib/obstack.c: Update from libc.
63416
63417 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
63418
63419         * regex.c (regex_compile): Change the way of handling a range from
63420         a char less than 256 to a char not less than 256.
63421
63422 2000-10-24  Andrew Innes  <andrewi@gnu.org>
63423
63424         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
63425         NT-Emacs only.
63426         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
63427         so that re_search functions only quit when callers expect them to.
63428
63429 2000-10-23  Jim Meyering  <meyering@lucent.com>
63430
63431         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
63432         wrong.  That set_locale call must not have any side effects.
63433         From Paul Eggert.
63434
63435 2000-10-22  Jim Meyering  <meyering@lucent.com>
63436
63437         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
63438         [CYCLIC]: Remove now-unused definition.
63439
63440         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
63441         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
63442         Suggestion from Ulrich Drepper.
63443
63444 2000-10-21  Jim Meyering  <meyering@lucent.com>
63445
63446         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
63447         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
63448         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
63449
63450 2000-10-21  Jim Meyering  <meyering@lucent.com>
63451
63452         * lib/dirname.c (memrchr): Declare if necessary.
63453         (dir_name): Remove the restriction that there be no
63454         trailing slashes.  Now, this code skips past them, effectively
63455         ignoring them.
63456         [TEST_DIRNAME] (main): New unit tests.
63457
63458         * lib/memrchr.c: New file from GNU libc.
63459         Undef __memrchr, too.
63460         [!weak_alias]: Define __memrchr to memrchr.
63461         Guard weak_alias use with `#ifdef weak_alias'.
63462
63463 2000-10-21  Jim Meyering  <meyering@lucent.com>
63464
63465         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
63466         (dir_name): Use dir_name_r.
63467         * lib/dirname.h (dir_name_r): Declare it.
63468
63469 2000-10-17  Jim Meyering  <meyering@lucent.com>
63470
63471         * lib/quote.h (PARAMS): Define and use.
63472         Reported by Akim Demaille.
63473
63474         * lib/getopt.c: Update from libc.
63475
63476 2000-10-16  Jim Meyering  <meyering@lucent.com>
63477
63478         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
63479         setlocale.
63480         From Jan Fedak.
63481
63482 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
63483
63484         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
63485
63486 2000-09-25  Jim Meyering  <meyering@lucent.com>
63487
63488         * lib/md5.h (rol): Define (from GnuPG).
63489
63490         * lib/sha.c: Give credit (GnuPG) where due.
63491         (M): Use rol rather than open-coding it.
63492         Add a FIXME comment.
63493
63494 2000-09-21  Jim Meyering  <meyering@lucent.com>
63495
63496         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
63497         Reported by Michael Stone.
63498
63499 2000-09-20  Jim Meyering  <meyering@lucent.com>
63500
63501         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
63502         (noinst_HEADERS): Add sha.h.
63503         Based on code from Scott G. Miller and from GnuPG.
63504
63505 2000-09-18  Jim Meyering  <meyering@lucent.com>
63506
63507         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
63508         LIBS. Otherwise, everyone ends up linking with -lelf for some
63509         configurations.
63510         Reported by Mike Stone.
63511
63512 2000-09-15  Jim Meyering  <meyering@lucent.com>
63513
63514         * lib/regex.c: Update from libc.
63515
63516 2000-09-10  Jim Meyering  <meyering@lucent.com>
63517
63518         * lib/getopt.c (_getopt_internal): Update from glibc.
63519
63520 2000-09-09  Jim Meyering  <meyering@lucent.com>
63521
63522         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
63523         think it should be used as a general replacement for isascii.
63524         * lib/fnmatch.c: Likewise.
63525         * lib/mbswidth.c: Likewise
63526         * lib/regex.c: Likewise.
63527
63528         Don't use atoi.
63529         * lib/userspec.c: Include sys/param.h and limits.h.
63530         Include xstrtol.h.
63531         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
63532         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
63533         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
63534         UID, GID.  Check range.
63535
63536 2000-09-06  Jim Meyering  <meyering@lucent.com>
63537
63538         * lib/getopt.c (_getopt_internal): Update from glibc.
63539
63540 2000-08-30  Jim Meyering  <meyering@lucent.com>
63541
63542         * lib/strftime.c: Merge in changes from GNU libc.
63543
63544 2000-08-26  Jim Meyering  <meyering@lucent.com>
63545
63546         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
63547         * m4/fpending.m4: New file.
63548
63549 2000-08-26  Jim Meyering  <meyering@lucent.com>
63550
63551         * lib/closeout.c: Include "__fpending.h".
63552         (close_stdout_status): Return right away if there's nothing to flush.
63553
63554         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
63555         * lib/__fpending.c: New file.
63556         * lib/__fpending.h: New file.
63557
63558 2000-08-20  Jim Meyering  <meyering@lucent.com>
63559
63560         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
63561         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
63562         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
63563
63564 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
63565
63566         Improve fileutils installation on systems where running
63567         programs (like install) can't be unlinked.
63568         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
63569         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
63570
63571 2000-08-07  Paul Eggert  <eggert@twinsun.com>
63572
63573         Standardize on "memory exhausted" instead of "Memory exhausted"
63574         or "virtual memory exhausted".
63575         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
63576         "virtual memory exhausted".
63577         * lib/same.c (same_name): Invoke xalloc_die instead of printing
63578         our own message.
63579         * lib/userspec.c (parse_user_spec): Likewise.
63580         * lib/bumpalloc.h: comment fix
63581         * lib/same.c, userspec.c: Include xalloc.h.
63582
63583         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
63584         not char *const and pointing to a constant array.
63585         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
63586         (xrealloc): Comment fix.
63587
63588         * lib/userspec.c (parse_user_spec):
63589         Don't translate a message until just before returning,
63590         to avoid unnecessary translation.
63591
63592 2000-08-07  Jim Meyering  <meyering@lucent.com>
63593
63594         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
63595         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
63596         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
63597         getgroups.c, gethostname.c, getopt.h, group-member.c,
63598         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
63599         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
63600         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
63601         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
63602         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
63603         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
63604         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
63605         yesno.c: Back out Copyright date changes for each file with no change
63606         this year.  This eases coordination with other programs using the same
63607         source code modules.  From Paul Eggert.
63608
63609 2000-08-06  Paul Eggert  <eggert@twinsun.com>
63610
63611         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
63612         not char, for compatibility with glibc 2.1.3 strftime.c.
63613
63614 2000-08-03  Greg McGary  <greg@mcgary.org>
63615
63616         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
63617         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
63618         (EXTEND_BUFFER): Use them.
63619
63620 2000-08-01  Jim Meyering  <meyering@lucent.com>
63621
63622         * lib/dirname.c (ISSLASH): Define.
63623         (BACKSLASH_IS_PATH_SEPARATOR): Define.
63624         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
63625         both `\' and `/' may be use as path separators.
63626         Based on a patch from Prashant TR.
63627
63628 2000-07-31  Paul Eggert  <eggert@twinsun.com>
63629
63630         * lib/quotearg.c (quotearg_n_options): Don't make the initial
63631         slot vector a constant, since it might get modified.
63632
63633 2000-07-31  Jim Meyering  <meyering@lucent.com>
63634
63635         * lib/xmalloc.c: Use `virtual memory exhausted', not
63636         `Memory exhausted'.
63637         * lib/obstack.c (print_and_abort): Likewise.
63638
63639 2000-07-30  Paul Eggert  <eggert@twinsun.com>
63640
63641         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
63642         buffer, so that the caller can always quote one small
63643         component of a "memory exhausted" message in slot 0.
63644         From a suggestion by Jim Meyering.
63645
63646 2000-07-30  Jim Meyering  <meyering@lucent.com>
63647
63648         * lib/makepath.c (make_path): Quote the other instance, too.
63649
63650         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
63651         (STATIC_BUF_SIZE): Define.
63652         (quotearg_n_options): Use only statically allocated storage when
63653         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
63654         than STATIC_BUF_SIZE.
63655
63656 2000-07-29  Jim Meyering  <meyering@lucent.com>
63657
63658         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
63659         * lib/dirname.c (dir_name): Likewise.
63660
63661         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
63662         `/'.
63663
63664         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
63665         (dir_name): Assert that there are no trailing slashes.
63666
63667 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
63668
63669         * lib/mbswidth.h (mbswidth): Add a flags argument.
63670         (mbswidth): New declaration.
63671         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
63672         * lib/mbswidth.c (mbswidth): Add a flags argument.
63673         (mbsnwidth): New function.
63674
63675 2000-07-24  Jim Meyering  <meyering@lucent.com>
63676
63677         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
63678
63679 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63680
63681         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
63682
63683 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63684
63685         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
63686         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
63687         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
63688         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
63689         invoke multibyte primitives.
63690
63691 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63692
63693         * lib/quotearg.c:
63694         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
63695         so that mbstate_t is always defined.
63696
63697         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
63698         be 1 in at least one GCC installation, and this configuration
63699         error is likely to be common.  Ignoring MB_LEN_MAX hurts
63700         performance on hosts that have mbrtowc but have only unibyte
63701         locales, but I assume these hosts are rare.
63702
63703 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63704
63705         * lib/mbswidth.c (_XOPEN_SOURCE):
63706         Don't define; this causes problems on Solaris 7.
63707         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
63708
63709 2000-07-23  Jim Meyering  <meyering@lucent.com>
63710
63711         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
63712         too: getgrgid, getpwuid, getuid.
63713
63714 2000-07-23  Jim Meyering  <meyering@lucent.com>
63715
63716         * lib/basename.c (base_name): Add an assertion.
63717
63718 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
63719
63720         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
63721         shadow its mbsinit function.
63722
63723 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
63724
63725         * lib/mbswidth.h: New file.
63726         * lib/mbswidth.c: New file.
63727         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
63728         (noinst_HEADERS): Add mbswidth.h.
63729
63730 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
63731
63732         * lib/config.charset: Add support for FreeBSD. Improve support for
63733         HP-UX and IRIX 6.
63734
63735 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
63736
63737         * m4/mbswidth.m4: New file.
63738         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
63739
63740 2000-07-15  Jim Meyering  <meyering@lucent.com>
63741
63742         * lib/makepath.c: Include quote.h.
63743         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
63744         corresponding argument in a `quote (...)' call.
63745         Give better diagnostics.
63746
63747         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
63748         (noinst_HEADERS): Add quote.h.
63749
63750         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
63751         from tar's src/misc.c.
63752         * lib/quote.h: New file.  Prototypes for same.
63753
63754 2000-07-14  Paul Eggert  <eggert@twinsun.com>
63755
63756         From a suggestion by Bruno Haible.
63757         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
63758         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
63759         to decide whether to define the BeOS workaround macro;
63760         this adjusts to the change to AC_MBSTATE_T.
63761
63762 2000-07-14  Jim Meyering  <meyering@lucent.com>
63763
63764         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
63765         jm_AC_TYPE_UINTMAX_T.
63766
63767 2000-07-13  Paul Eggert  <eggert@twinsun.com>
63768
63769         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
63770
63771         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
63772         quotearg_buffer_restyled): Add support for
63773         clocale_quoting_style.  Undo previous change to
63774         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
63775         and "{RIGHT QUOTATION MARK}" msgids.
63776
63777 2000-07-10  Paul Eggert  <eggert@twinsun.com>
63778
63779         From a suggestion by Bruno Haible.
63780         * m4/mbstate_t.m4 (AC_MBSTATE_T):
63781         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
63782         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
63783         and mbstate_t, to a single-part test that simply defines mbstate_t.
63784         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
63785         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
63786
63787 2000-07-10  Jim Meyering  <meyering@lucent.com>
63788
63789         * m4/strerror_r.m4: Mirror the correction made in autoconf.
63790
63791         * m4/gnu-source.m4: Output to confdefs.h directly.
63792         Suggestion from Akim Demaille.
63793
63794 2000-07-09  Paul Eggert  <eggert@twinsun.com>
63795
63796         The old behavior of quoting `like this' doesn't look good with
63797         newer, ISO-style fonts.  See:
63798         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
63799
63800         Instead, quote "like this" by default.  Let the translator
63801         tailor the locale-specific quoting behavior by providing
63802         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
63803
63804         * lib/quotearg.c (N_): New macro.
63805         (gettext_default): New function.
63806         (quotearg_buffer_restyled): Use
63807         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
63808         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
63809
63810 2000-07-09  Jim Meyering  <meyering@lucent.com>
63811
63812         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
63813         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
63814
63815         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
63816         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
63817
63818 2000-07-09  Jim Meyering  <meyering@lucent.com>
63819
63820         * lib/Most files: Update copyright dates to include 2000.
63821
63822 2000-07-08  Jim Meyering  <meyering@lucent.com>
63823
63824         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
63825         if not defined.
63826         (xgethostname): Remove now-unnecessary #ifdef.
63827         Move declaration of `err' into loop where it's used.
63828
63829 2000-07-05  Paul Eggert  <eggert@twinsun.com>
63830         and Bruno Haible  <haible@clisp.cons.org>
63831
63832         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
63833         only if the test for an object-type mbstate_t fails.  This
63834         prevents us from mistakenly reporting that mbstate_t is a
63835         system object type after we "#define mbstate_t int" to work
63836         around its lack.
63837
63838 2000-07-05  Paul Eggert  <eggert@twinsun.com>
63839         and Bruno Haible  <haible@clisp.cons.org>
63840
63841         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
63842
63843 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
63844
63845         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
63846         to strerror_r.
63847         Include <ctype.h> for use of isalpha.
63848
63849 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
63850
63851         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
63852         by allocating a larger buffer. Test the gethostname return value for
63853         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
63854         returns an error and ENAMETOOLONG isn't defined.
63855
63856 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
63857
63858         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
63859         dimension.
63860
63861 2000-07-04  Jim Meyering  <meyering@lucent.com>
63862
63863         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
63864         of the deprecated AC_CHECKING.
63865
63866 2000-07-04  Jim Meyering  <meyering@lucent.com>
63867
63868         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
63869         Reported by Bruno Haible.
63870
63871 2000-07-04  Jim Meyering  <meyering@lucent.com>
63872
63873         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
63874         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
63875         lacks mbrtowc.
63876
63877 2000-07-03  Paul Eggert  <eggert@twinsun.com>
63878
63879         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
63880         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
63881
63882 2000-07-03  Paul Eggert  <eggert@twinsun.com>
63883         and Bruno Haible  <haible@clisp.cons.org>
63884
63885         * lib/quotearg.c (mbrtowc):
63886         Assign to *pwc, and return 1 only if result is nonzero.
63887         (iswprint): Use ISPRINT when substituting our own mbrtowc.
63888
63889 2000-07-03  Jim Meyering  <meyering@lucent.com>
63890
63891         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
63892
63893 2000-07-03  Jim Meyering  <meyering@lucent.com>
63894
63895         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
63896         This is necessary to get a definition of e.g., UTMP_FILE on
63897         HP-UX 10.20.
63898         From Bob Proulx.
63899
63900 2000-07-02  Jim Meyering  <meyering@lucent.com>
63901
63902         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
63903
63904         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
63905         AC_LIBOBJ(function_name).
63906         * m4/chown.m4: Likewise.
63907         * m4/fnmatch.m4: Likewise.
63908         * m4/ftruncate.m4: Likewise.
63909         * m4/getgroups.m4: Likewise.
63910         * m4/getline.m4: Likewise.
63911         * m4/group-member.m4: Likewise.
63912         * m4/jm-macros.m4: Likewise.
63913         * m4/lstat.m4: Likewise.
63914         * m4/malloc.m4: Likewise.
63915         * m4/memcmp.m4: Likewise.
63916         * m4/nanosleep.m4: Likewise.
63917         * m4/putenv.m4: Likewise.
63918         * m4/realloc.m4: Likewise.
63919         * m4/regex.m4: Likewise.
63920         * m4/stat.m4: Likewise.
63921         * m4/strftime.m4: Likewise.
63922
63923 2000-07-02  Jim Meyering  <meyering@lucent.com>
63924
63925         * lib/quotearg.c (mbstate_t): Don't define here.
63926
63927 2000-07-02  Jim Meyering  <meyering@lucent.com>
63928
63929         * lib/nanosleep.c (SIGCONT): Define if not already defined.
63930
63931 2000-07-01  Jim Meyering  <meyering@lucent.com>
63932
63933         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
63934
63935 2000-07-01  Jim Meyering  <meyering@lucent.com>
63936
63937         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
63938         problem.
63939
63940 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
63941
63942         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
63943         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
63944
63945 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
63946
63947         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
63948         per change in ../m4/ls-mntd-fs.m4.
63949         (read_filesystem_list): Ignore symbolic links.
63950
63951 2000-06-29  Jim Meyering  <meyering@lucent.com>
63952
63953         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
63954         for declaration of strcmp.
63955
63956         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
63957
63958         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
63959         Avoid warning by casting result to `char *' to remove `const'.
63960
63961 2000-06-28  Jim Meyering  <meyering@lucent.com>
63962
63963         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
63964         included by quotearg.c, for which we perform this test.  From
63965         Bruno Haible.
63966
63967 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
63968
63969         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
63970         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
63971         <utmpx.h> exists, put readutmp.o into LIBOBJS.
63972
63973 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
63974
63975         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
63976
63977 2000-06-26  Paul Eggert  <eggert@twinsun.com>
63978
63979         savedir now sets errno on failure and invokes xmalloc to get memory.
63980         Fix a couple of other minor bugs while we're at it.
63981
63982         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
63983         (NAMLEN): Remove macro.
63984         (malloc, realloc): Remove decls.
63985         (stpcpy): Likewise.
63986         ("xalloc.h"): Include.
63987         (NAME_SIZE_DEFAULT): New macro.
63988         (savedir): Use xmalloc / xrealloc to allocate memory.
63989         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
63990         Skip "" directory entries.
63991         Use strlen to calculate directory entry length, since the old method
63992         is rarely used these days and isn't worth supporting.
63993         Don't use a pointer after freeing it.
63994         Check for integer overflow when calculating allocation size.
63995         Use memcpy to copy entries, instead of stpcpy.
63996         Set errno properly when returning NULL.
63997         Check for readdir error.
63998
63999 2000-06-26  Jim Meyering  <meyering@lucent.com>
64000
64001         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
64002
64003 2000-06-25  Jim Meyering  <meyering@lucent.com>
64004
64005         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
64006         Linux header bug when _XOPEN_SOURCE is defined to 500.
64007
64008 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
64009
64010         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
64011         deficiency.
64012
64013 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
64014
64015         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
64016         Include xalloc.h.
64017         Don't include <stdlib.h>.  Don't declare malloc, realloc.
64018
64019 2000-06-24  Jim Meyering  <meyering@lucent.com>
64020
64021         * m4/strerror_r.m4: Revive this file -- to try out an experimental
64022         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
64023         for which strerror does return char*, but which lacks a conveniently
64024         accessible declaration of the function.  If the compile-test says
64025         strerror_r doesn't work, then resort to a `run'-test that works on
64026         BeOS and segfaults on DEC Unix.
64027
64028 2000-06-24  Jim Meyering  <meyering@lucent.com>
64029
64030         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
64031
64032 2000-06-23  Paul Eggert  <eggert@twinsun.com>
64033
64034         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
64035         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
64036
64037 2000-06-23  Paul Eggert  <eggert@twinsun.com>
64038
64039         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
64040         (mbrtowc, mbstate_t): Define substitutes if
64041         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
64042         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
64043         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
64044
64045 2000-06-23  Jim Meyering  <meyering@lucent.com>
64046
64047         * m4/afs.m4: Add missing AC_MSG_RESULT.
64048         Reported by Bruno Haible.
64049
64050         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
64051         Suggestion from Bruno Haible.
64052
64053 2000-06-23  Jim Meyering  <meyering@lucent.com>
64054
64055         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
64056
64057 2000-06-21  Jim Meyering  <meyering@lucent.com>
64058
64059         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
64060
64061 2000-06-21  Jim Meyering  <meyering@lucent.com>
64062
64063         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
64064         (noinst_HEADERS): Add getstr.h.
64065
64066         * lib/getline.c (getstr): Move into a separate file.
64067         * lib/getstr.c (getstr): New file, extracted from getline.c, with
64068         the following changes: new parameter, delim2; both delim[12]
64069         parameters have type `int', not `char'.  The latter would lose
64070         with 8-bit delimiters.
64071         * lib/getstr.h: New file.
64072
64073 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
64074
64075         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
64076         than 1024, return a memory chunk of least possible size, instead
64077         of size PATH_MAX + 2. In the loop, increment the size proportionally.
64078         Use free/xmalloc instead of xrealloc to avoid copying for very long
64079         paths.
64080
64081 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
64082
64083         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
64084         the empty string.
64085
64086 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
64087
64088         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
64089         address, not strdup.  Include <stdlib.h> and don't declare free().
64090
64091 2000-06-19  Jim Meyering  <meyering@lucent.com>
64092
64093         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
64094
64095 2000-06-18  Jim Meyering  <meyering@lucent.com>
64096
64097         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
64098
64099         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
64100         `checking whether...' message to be consistent with that of the
64101         lstat test.
64102
64103 2000-06-18  Jim Meyering  <meyering@lucent.com>
64104
64105         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
64106         Besides, these days every porting target provides a mkdir function.
64107
64108         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
64109         needed. (this snippet comes from src/system.h).
64110
64111 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
64112
64113         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
64114
64115 2000-06-15  Paul Eggert  <eggert@twinsun.com>
64116
64117         * lib/human.c (adjust_value): New function.
64118         (human_readable_inexact): Apply rounding style even when
64119         printing approximate values.
64120
64121 2000-06-14  Paul Eggert  <eggert@twinsun.com>
64122
64123         * lib/human.c (human_readable_inexact): Allow an input block
64124         size that is not a multiple of the output block size, and vice versa.
64125         Reported by Piergiorgio Sartor.
64126
64127 2000-06-14  Paul Eggert  <eggert@twinsun.com>
64128
64129         * lib/getdate.y (get_date): Apply relative times after time
64130         zone indicator, not before.  Reported by Todd A. Jacobs.
64131
64132 2000-06-13  Jim Meyering  <meyering@lucent.com>
64133
64134         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
64135
64136         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
64137
64138 2000-06-12  Paul Eggert  <eggert@twinsun.com>
64139
64140         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
64141
64142 2000-06-12  Jim Meyering  <meyering@lucent.com>
64143
64144         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
64145         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
64146         optional argument.
64147         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
64148         the optional argument, `lib'.
64149
64150 2000-06-08  Jim Meyering  <meyering@lucent.com>
64151
64152         * m4/largefile.m4: Remove file (now that it's part of autoconf).
64153
64154 2000-06-04  Paul Eggert  <eggert@twinsun.com>
64155
64156         Rewrite largefile configuration so that we don't need to run
64157         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
64158         AC_CANONICAL_HOST in configure.in -- jmm]
64159
64160         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
64161         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
64162         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
64163         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
64164         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
64165         All uses changed.
64166         Instead of inspecting the output of getconf, try to compile the
64167         test program without and with the macro definition.
64168         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
64169         for getconf.  Instead, check for the needed flags by compiling
64170         test programs.
64171
64172 2000-06-04  Paul Eggert  <eggert@twinsun.com>
64173
64174         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
64175
64176 2000-06-04  Jim Meyering  <meyering@lucent.com>
64177
64178         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
64179         SunOS 4.1.4 for which gid_t is an unsigned type.
64180
64181 2000-06-03  Jim Meyering  <meyering@lucent.com>
64182
64183         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
64184         now that autoconf requires that.
64185
64186         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
64187         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
64188         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
64189
64190 2000-06-03  Jim Meyering  <meyering@lucent.com>
64191
64192         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
64193
64194 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
64195
64196         * m4/glibc21.m4: New file.
64197         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
64198
64199 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
64200
64201         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
64202         newer, don't install charset.alias.
64203         * lib/config.charset: Change the Linux/glibc rules so they become empty
64204         on glibc-2.1 or newer.
64205
64206 2000-06-02  Jim Meyering  <meyering@lucent.com>
64207
64208         * lib/mountlist.c: Back out last change.  Instead, do this...
64209         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
64210         me_dummy member using the same `ignore'-testing code.
64211         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
64212         fs_type strings.
64213         From Mark D. Roth.
64214
64215 2000-05-29  Jim Meyering  <meyering@lucent.com>
64216
64217         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
64218         mounts with the `ignore' attribute.  Based on a patch from
64219         Mark D. Roth.
64220
64221 2000-05-28  Jim Meyering  <meyering@lucent.com>
64222
64223         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
64224         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64225         * m4/stat.m4: Likewise.
64226         * m4/lstat.m4: Likewise.
64227         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
64228
64229         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
64230         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
64231
64232 2000-05-26  Jim Meyering  <meyering@lucent.com>
64233
64234         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
64235
64236 2000-05-24  Jim Meyering  <meyering@lucent.com>
64237
64238         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
64239         autoconf requires that.
64240         * m4/lib-check.m4: Likewise.
64241         * m4/jm-macros.m4: Likewise.
64242         * m4/strftime.m4: Likewise.
64243
64244         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
64245         AC_CHECK_DECLS, now that autoconf requires that.
64246
64247 2000-05-22  Jim Meyering  <meyering@lucent.com>
64248
64249         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64250         * m4/lstat.m4: Likewise.
64251
64252 2000-05-22  Jim Meyering  <meyering@lucent.com>
64253
64254         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
64255
64256 2000-05-20  Jim Meyering  <meyering@lucent.com>
64257
64258         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
64259         (jm_PREREQ): Use it.
64260
64261 2000-05-18  Jim Meyering  <meyering@lucent.com>
64262
64263         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
64264         back, too, since it may have been modified by allocate_entry.
64265         (hash_delete): Rewrite to use neither the assignment operator
64266         nor the comma operator in an if-expression.
64267
64268 2000-05-15  Paul Eggert  <eggert@twinsun.com>
64269
64270         * lib/closeout.c:
64271         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
64272         Remove; no longer needed.
64273         "quotearg.h": Add include.
64274         (file_name): Do not bother to explicitly initialize to NULL; it's less
64275         efficient on some hosts.
64276         (close_stdout_status): Remove test as to whether stdout was already
64277         closed; it breaks for the case "echo x | sort >&-".
64278         Quote file name colons.
64279         Do not assume that _("write error") lacks format strings.
64280
64281 2000-05-15  Jim Meyering  <meyering@lucent.com>
64282
64283         * lib/version-etc.c (version_etc_copyright): Update the copyright
64284         string used in all --version output.
64285
64286 2000-05-14  Jim Meyering  <meyering@lucent.com>
64287
64288         * lib/closeout.c (close_stdout_set_file_name): New function.
64289         (close_stdout_status): Use new file-scoped global.
64290         Return right away if fstat says the stdout file descriptor is invalid.
64291         * lib/closeout.h (close_stdout_set_file_name): Declare.
64292
64293 2000-05-10  Jim Meyering  <meyering@lucent.com>
64294
64295         * lib/closeout.c [default_exit_status]: New file-scoped variable.
64296         (close_stdout_set_status): New function.
64297         * lib/closeout.h (close_stdout_set_status): Declare.
64298
64299 2000-05-09  Jim Meyering  <meyering@lucent.com>
64300
64301         * m4/gettext.m4: Rename this...
64302         * m4/libintl.m4: ...to this.
64303
64304 2000-05-08  Jim Meyering  <meyering@lucent.com>
64305
64306         * lib/long-options.c: Don't include closeout.h.
64307         (parse_long_options): Don't call close_stdout for --version.
64308
64309 2000-05-06  Paul Eggert  <eggert@twinsun.com>
64310
64311         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
64312         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
64313         2.1.3 bug.  This avoids a clash when files like regex.c define
64314         _GNU_SOURCE.
64315
64316 2000-05-06  Jim Meyering  <meyering@lucent.com>
64317
64318         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
64319         (AC_REPLACE_FUNCS): Add strnlen.
64320
64321         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
64322         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
64323
64324         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
64325         AC_SEARCH_LIBS call for nanosleep.
64326         (LIB_NANOSLEEP): Set and AC_SUBST.
64327
64328 2000-05-06  Jim Meyering  <meyering@lucent.com>
64329
64330         * lib/strnlen.c: Undefine __strnlen and strnlen.
64331         [!weak_alias]: Define __strnlen to strnlen.
64332
64333         * lib/atexit.c: New file, from libiberty.
64334
64335 2000-05-06  Jim Meyering  <meyering@lucent.com>
64336
64337         * lib/closeout.c (close_stdout_status): Also check for errors on the
64338         stderr stream.
64339
64340 2000-05-05  Jim Meyering  <meyering@lucent.com>
64341
64342         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
64343         AC_SEARCH_LIBS call for clock_gettime.
64344         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
64345
64346         * m4/search-libs.m4: Update from autoconf.
64347
64348         su doesn't work on Solaris 2.6.
64349         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
64350         <shadow.h>.  Reported by Dragos Harabor.
64351
64352 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
64353
64354         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
64355         memcpy instead of xmalloc, xrealloc, path_concat.
64356         (locale_charset): Treat empty environment variables as absent.
64357         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
64358
64359 2000-05-04  Jim Meyering  <meyering@lucent.com>
64360
64361         * lib/getopt.c: Update from glibc.
64362         * lib/obstack.c: Likewise.
64363         * lib/obstack.h: Likewise.
64364         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
64365         file
64366
64367         * lib/regex.h: Likewise.
64368         * lib/strndup.c: Likewise.
64369         * lib/strnlen.c: New file, from glibc.
64370
64371 2000-05-03  Jim Meyering  <meyering@lucent.com>
64372
64373         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
64374
64375 2000-05-02  Paul Eggert  <eggert@twinsun.com>
64376
64377         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
64378         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
64379         compile-time test, rather than inspecting host and OS, to
64380         decide whether to define _LARGEFILE_SOURCE.
64381
64382 2000-05-01  Jim Meyering  <meyering@lucent.com>
64383
64384         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
64385
64386         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
64387         Based on a patch from Bruno Haible.
64388
64389 2000-05-01  Jim Meyering  <meyering@lucent.com>
64390
64391         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
64392
64393 2000-04-29  Jim Meyering  <meyering@lucent.com>
64394
64395         * lib/path-concat.c: Declare strdup only if it's not defined.
64396         * lib/canon-host.c: Likewise.
64397
64398 2000-04-28  Jim Meyering  <meyering@lucent.com>
64399
64400         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
64401         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
64402         is included first, then limits.h is included by locale.h by libintl.h.
64403         From John David Anglin.
64404
64405 2000-04-25  Jim Meyering  <meyering@lucent.com>
64406
64407         * lib/makepath.c (S_IRWXUGO): Define.
64408         (make_path): Always perform explicit chmod if MODE specifies any
64409         of the `special' permission bits.  Prompted by a bug report against
64410         install from Mate Wierdl and Joost van Baal.
64411
64412 2000-04-18  Jim Meyering  <meyering@lucent.com>
64413
64414         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
64415         (jm_PREREQ): Use it.
64416
64417 2000-04-18  Jim Meyering  <meyering@lucent.com>
64418
64419         * lib/README: New file.
64420
64421         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
64422         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
64423
64424 2000-04-17  Jim Meyering  <meyering@lucent.com>
64425
64426         Get it right :-)
64427         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
64428         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
64429         Suggestion from Akim Demaille.
64430
64431 2000-04-17  Jim Meyering  <meyering@lucent.com>
64432
64433         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
64434         the definition of it to rpl_strftime also defined-away the system's
64435         declaration.
64436
64437 2000-04-15  Jim Meyering  <meyering@lucent.com>
64438
64439         Use `C' to denote so-called `contiguous' files, the same way
64440         that tar does.
64441         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
64442         (ftypelet): Use S_ISCTG.
64443         From Michael Deutschmann.
64444
64445 2000-04-14  Jim Meyering  <meyering@lucent.com>
64446
64447         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
64448         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
64449         clobbered.
64450
64451 2000-04-14  Jim Meyering  <meyering@lucent.com>
64452
64453         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
64454
64455 2000-04-13  Jim Meyering  <meyering@lucent.com>
64456
64457         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
64458         AH_VERBATIM to insert required #ifndef into config.h.in.
64459         Suggestion from Akim Demaille.
64460
64461 2000-04-12  Jim Meyering  <meyering@lucent.com>
64462
64463         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
64464         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
64465         Christian Krackowizer.
64466
64467         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
64468         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
64469         (AC_SYS_LARGEFILE): Require.
64470         (AM_C_PROTOTYPES): Require.
64471
64472 2000-04-08  Jim Meyering  <meyering@lucent.com>
64473
64474         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
64475         names don't conflict.  Reported by Eli Zaretskii.
64476
64477 2000-04-07  Jim Meyering  <meyering@lucent.com>
64478
64479         * lib/putenv.c: Move inclusion of errno.h so it follows that of
64480         sys/types.h, to work around system header problems on AIX 3.2.5.
64481         From Bruno Haible.
64482
64483 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
64484
64485         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
64486         bug.  Deal with the different error behavior of Irix iconv.
64487
64488 2000-04-05  Paul Eggert  <eggert@twinsun.com>
64489
64490         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
64491         IRIX if the installer said otherwise.
64492
64493 2000-04-05  Jim Meyering  <meyering@lucent.com>
64494
64495         Portability tweaks required for ultrix4.3.
64496         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
64497         (jm_CHECK_DECLS): Add getutent to the list of functions.
64498         (_jm_DECL_HEADERS): Add utmpx.h.
64499         From John David Anglin.
64500
64501         * m4/strftime.m4: Back out the 2000-04-02 change.
64502         Instead of that change, simply undefine putenv in the test program.
64503
64504 2000-04-05  Jim Meyering  <meyering@lucent.com>
64505
64506         Portability tweaks required for ultrix4.3.
64507         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
64508         getutent.
64509         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
64510         * lib/canon-host.c: Declare strdup.
64511         * lib/path-concat.c: Likewise.
64512         From John David Anglin.
64513
64514 2000-04-04  Jim Meyering  <meyering@lucent.com>
64515
64516         Be more DOS 8.3-friendly.
64517         * lib/ref-add.sin: Renamed from ref-add.sed.in.
64518         * lib/ref-del.sin: Renamed from ref-del.sed.in.
64519         * lib/Makefile.am: Reflect renaming.
64520         Reported by Eli Zaretskii.
64521
64522         Use a temporary file name that won't clash with `charset.alias'
64523         in the DOS 8.3 name space.
64524         * lib/Makefile.am (charset_tmp): Define.
64525         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
64526         (uninstall-local): Likewise.
64527         Reported by Eli Zaretskii.
64528
64529 2000-04-03  Jim Meyering  <meyering@lucent.com>
64530
64531         * m4/gettext.m4: Fix typo in comment.
64532
64533         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
64534         textutils/configure.in).  Suggestion from Paul Eggert.
64535         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
64536
64537 2000-04-02  Paul Eggert  <eggert@twinsun.com>
64538
64539         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
64540         variable in the shell rather than using putenv, which isn't
64541         portable.  This avoids the configure-time inter-test dependency
64542         on the potentially-renamed putenv function.
64543
64544 2000-03-30  Paul Eggert  <eggert@twinsun.com>
64545
64546         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
64547         before checking struct stat.st_blksize, so that
64548         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
64549
64550 2000-03-29  Paul Eggert  <eggert@twinsun.com>
64551
64552         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
64553         since strftime.c uses HAVE_STRFTIME to decide whether to use
64554         the underlying strftime.
64555
64556 2000-03-29  Paul Eggert  <eggert@twinsun.com>
64557
64558         * lib/time/strftime.c (my_strftime): Make sure we call the system
64559         strftime, not ourselves, when invoking the underlying strftime.
64560
64561 2000-03-24  Jim Meyering  <meyering@lucent.com>
64562
64563         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
64564         (charset_alias): Define.
64565         (install-exec-local): Factor out common code.
64566         (uninstall-local): Split lines longer than 80.
64567         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
64568         (SUFFIXES): Define.
64569         (.sed.in.sed): New rule.  Don't redirect directly to $@.
64570         (CLEANFILES): Add ref-add.sed and ref-del.sed.
64571
64572 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
64573
64574         * lib/config.charset: Output a line containing "Packages using this
64575         file".
64576         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
64577         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
64578         ref-del.sed): New rules.
64579
64580 2000-03-17  Jim Meyering  <meyering@lucent.com>
64581
64582         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
64583         Otherwise, include <strings.h>
64584
64585 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
64586
64587         * lib/unicodeio.c (utf8_wctomb): New function.
64588         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
64589         format instead of in UCS-4 with platform dependent endianness.
64590
64591 2000-03-10  Jim Meyering  <meyering@lucent.com>
64592
64593         * m4/lib-check.m4: Look for getspnam in -lgen, too.
64594         From Marco Franzen.
64595
64596 2000-03-07  Paul Eggert  <eggert@twinsun.com>
64597
64598         * lib/savedir.c (savedir): Work even if directory size is
64599         negative; this can happen with some screwy NFS configurations.
64600
64601 2000-03-06  Jim Meyering  <meyering@lucent.com>
64602
64603         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
64604         if it's NULL (because we ran out of memory).  From Bruno Haible.
64605
64606 2000-03-05  Jim Meyering  <meyering@lucent.com>
64607
64608         * lib/localcharset.c ("path-concat.h"): Include.
64609         (get_charset_aliases): Use path_concat instead of ANSI string
64610         concatenation.
64611
64612         * lib/unicodeio.h (PARAMS): Define.
64613         Use it to guard prototype.
64614
64615 2000-03-04  Jim Meyering  <meyering@lucent.com>
64616
64617         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
64618         for lib/localcharset.c.
64619
64620 2000-03-04  Jim Meyering  <meyering@lucent.com>
64621
64622         * lib/Makefile.am (install-exec-local): Create $(libdir) before
64623         installing into it.
64624         (uninstall-local): Uncomment this rule so `make distcheck' works
64625         once again.
64626
64627         * lib/unicodeio.c (<errno.h>): Include it.
64628         (errno): Declare if not defined.
64629
64630         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
64631
64632         * lib/config.charset: New version, incorporating remarks from a linux
64633         i18n mailing list.  From Bruno Haible.
64634
64635 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
64636
64637         * m4/codeset.m4: New file.
64638         * m4/iconv.m4: New file.
64639         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
64640
64641 2000-03-03  Jim Meyering  <meyering@lucent.com>
64642
64643         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
64644
64645 2000-03-02  Jim Meyering  <meyering@lucent.com>
64646
64647         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
64648         the messages come out on separate lines.
64649
64650         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
64651         rather than jm_CHECK_DECLARATIONS.
64652         * m4/decl.m4: Remove now-unused file.
64653
64654         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
64655         geteuid.
64656
64657 2000-03-02  Jim Meyering  <meyering@lucent.com>
64658
64659         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
64660
64661 2000-03-01  Jim Meyering  <meyering@lucent.com>
64662
64663         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
64664         * lib/unicodeio.c: Likewise.
64665
64666 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
64667
64668         * lib/config.charset: New file.
64669         * lib/localcharset.c: New file.
64670         * lib/unicodeio.h, lib/unicodeio.c: New files.
64671         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
64672         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
64673         (noinst_HEADERS): Add unicodeio.h.
64674         (all-local, install-exec-local, charset.alias): New targets.
64675
64676 2000-02-28  Paul Eggert  <eggert@twinsun.com>
64677
64678         * lib/quotearg.c (ALERT_CHAR): New macro.
64679         (quotearg_buffer_restyled): Use it.
64680
64681 2000-02-27  Jim Meyering  <meyering@lucent.com>
64682
64683         * m4/check-decl.m4: Add getenv to the list.
64684
64685 2000-02-27  Jim Meyering  <meyering@lucent.com>
64686
64687         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
64688         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
64689
64690         * lib/backupfile.c: Guard inclusion of stdlib.h with
64691         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
64692         Declare malloc if needed.
64693
64694         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
64695         `#ifndef HAVE_DECL..'
64696         now that autoconf always defines the HAVE_DECL_ symbols.
64697         * lib/human.c: Likewise.
64698         * lib/same.c: Likewise.
64699         * lib/strtoumax.c: Likewise.
64700
64701         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
64702         declaration check was not run.
64703         * lib/hash.c: Likewise.
64704         * lib/human.c: Likewise.
64705         * lib/same.c: Likewise.
64706         * lib/strtoumax.c: Likewise.
64707
64708         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
64709         `.', then first look up the entire `.'-containing string as a login
64710         name.
64711
64712 2000-02-23  Jim Meyering  <meyering@lucent.com>
64713
64714         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
64715         in place of my hack.
64716
64717 2000-02-18  Paul Eggert  <eggert@twinsun.com>
64718
64719         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
64720         (textint): New typedef.
64721         (parser_control): Member year changed from int to textint.
64722         All uses changed.
64723         (YYSTYPE): Removed; replaced by %union with int and textint members.
64724         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
64725         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
64726         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
64727         (tSNUMBER, tUNUMBER): Now of type <textintval>.
64728         (date, number, to_year): Use width of number in digits, not its value,
64729         to determine whether it's a 2-digit year, or a 2-digit time.
64730         (yylex): Store number of digits of numeric tokens.
64731         Reported by John Kendall.
64732
64733         (parser_control): Changed from struct parser_control to typedef (for
64734         consistency).  All uses changed.
64735
64736         (tID): Removed; not used.
64737         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
64738
64739 2000-02-14  Paul Eggert  <eggert@twinsun.com>
64740
64741         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
64742         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
64743
64744 2000-02-12  Jim Meyering  <meyering@lucent.com>
64745
64746         * lib/userspec.c (ISDIGIT): Define it.
64747         (isdigit): Remove definition.
64748         (is_number): Use ISDIGIT, not isdigit.
64749         <libintl.h>: Include.
64750         (_ and N_): Define.
64751         (parse_user_spec): Mark translatable strings.
64752
64753 2000-02-10  Jim Meyering  <meyering@lucent.com>
64754
64755         With these changes, nanosleep.[ch] are finally enough like the other
64756         lib/* replacement files to compile on a few more losing systems.
64757
64758         * lib/nanosleep.h: Don't include config.h.
64759         Remove prototype from declaration of nanosleep.
64760         (PARAMS): Remove now-unneeded definition.
64761         * lib/nanosleep.c: #undef nanosleep.
64762         (rpl_nanosleep): Rename from nanosleep.
64763
64764 2000-02-10  Jim Meyering  <meyering@lucent.com>
64765
64766         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
64767         gnu_nanosleep to rpl_nanosleep.
64768
64769 2000-02-09  Jim Meyering  <meyering@lucent.com>
64770
64771         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
64772         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
64773
64774 2000-02-08  Akim Demaille  <akim@epita.fr>
64775
64776         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
64777         `[' and `]' and remove uses of `changequote'.
64778         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
64779         (AC_SYS_LARGEFILE): Likewise.
64780         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
64781         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
64782         of changequote.
64783         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
64784         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
64785         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
64786         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
64787
64788 2000-02-05  Jim Meyering  <meyering@lucent.com>
64789
64790         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
64791         Remove explicit use of AC_HEADER_TIME.  It is required by
64792         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
64793         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
64794         in autoconf whereby the expansion of the latter ended up preceding
64795         the expansion of its prerequisite, AC_HEADER_TIME.
64796         Reported by Volker Borchert.
64797
64798 2000-02-03  Jim Meyering  <meyering@lucent.com>
64799
64800         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
64801
64802 2000-02-03  Jim Meyering  <meyering@lucent.com>
64803
64804         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
64805         rather than with `#if HAVE_UTMPNAME'.
64806
64807 2000-02-02  Jim Meyering  <meyering@lucent.com>
64808
64809         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
64810         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
64811         Reported by Eli Zaretskii.
64812
64813 2000-02-01  Jim Meyering  <meyering@lucent.com>
64814
64815         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
64816
64817 2000-01-31  Jim Meyering  <meyering@lucent.com>
64818
64819         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
64820         functions.  Add the time.h and sys/time.h headers along with the
64821         AC_REQUIRE'ment of AC_HEADER_TIME.
64822
64823 2000-01-31  Jim Meyering  <meyering@lucent.com>
64824
64825         * lib/nanosleep.h (nanosleep): Guard declaration with
64826         `#if ! HAVE_DECL_NANOSLEEP'.
64827         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
64828         the declaration in that vendor's sys/timers.h.
64829         Reported by Christian Krackowizer.
64830
64831         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
64832         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
64833         (ISPRINT): Likewise.
64834         Reported by Tom Tromey.
64835
64836 2000-01-30  Jim Meyering  <meyering@lucent.com>
64837
64838         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
64839
64840         * m4/prereq.m4 (utmp_includes): Define.
64841         Check for ut_user and ut_name members in both struct utmpx
64842         and struct utmp.
64843
64844 2000-01-30  Jim Meyering  <meyering@lucent.com>
64845
64846         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
64847         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
64848         header files where only utmpx.ut_user is declared.
64849
64850         * lib/readutmp.h (UT_USER): Define.
64851
64852 2000-01-29  Jim Meyering  <meyering@lucent.com>
64853
64854         * m4/lib-check.m4: New file containing library-related checks from
64855         fileutils and sh-utils (textutils had none).
64856
64857 2000-01-28  Jim Meyering  <meyering@lucent.com>
64858
64859         * m4/perl.m4: Change format of warning message to look more like that
64860         from the missing script.  Suggestion from François Pinard.
64861
64862 2000-01-25  Jim Meyering  <meyering@lucent.com>
64863
64864         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
64865         well as time.h in the compile check.
64866         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
64867         Fix typo in cross-compiling case: s/yes/no/.
64868
64869 2000-01-23  Jim Meyering  <meyering@lucent.com>
64870
64871         * m4/jm-macros.m4: Move df-related tests here from
64872         fileutils/configure.in
64873
64874         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
64875         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
64876
64877         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
64878         s/space/ac_fsusage_space/.
64879         (jm_FILE_SYSTEM_USAGE): Take two parameters.
64880
64881         * m4/ftruncate.m4: New file (derived from part of
64882         fileutils/configure.in).
64883         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
64884         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
64885
64886         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
64887         AC_SUBST these here, rather than just in sh-util/configure.in, so
64888         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
64889         all the same.
64890         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
64891         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
64892         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
64893         (AC_SUBST(POW_LIBM)): Likewise.
64894         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
64895
64896 2000-01-23  Jim Meyering  <meyering@lucent.com>
64897
64898         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
64899         obstack.c.
64900
64901 2000-01-22  Jim Meyering  <meyering@lucent.com>
64902
64903         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
64904
64905         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
64906
64907         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
64908         configure.in
64909         (AC_CHECK_HEADERS): Likewise for sh-utils.
64910         (AC_CHECK_HEADERS): Likewise for textutils.
64911         Merge the three lists of headers.
64912
64913         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
64914         from fileutils' configure.in.
64915
64916         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
64917         code. Moved tests into their own function (_jm_DECL_HEADERS) in
64918         check-decl.m4.
64919
64920         * m4/check-decl.m4: Use #if rather than #ifdef.
64921         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
64922         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
64923         (_jm_DECL_HEADERS): Define new function.
64924         (jm_CHECK_DECLARATIONS): Require it.
64925
64926 2000-01-22  Jim Meyering  <meyering@lucent.com>
64927
64928         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
64929         [! HAVE_DECL_STRTOULL]: Declare strtoull.
64930         Required for some AIX systems.  Reported by Christian Krackowizer.
64931         [TESTING] (main): New function.
64932
64933         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
64934         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
64935         letters.
64936
64937         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
64938         iswprint.
64939
64940         * lib/strverscmp.c (ISDIGIT): Define.
64941         (strverscmp): Use ISDIGIT, not isdigit.
64942
64943 2000-01-19  Jim Meyering  <meyering@lucent.com>
64944
64945         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
64946         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
64947         defines `struct timespec' in <sys/time.h>
64948
64949         * m4/c-bs-a.m4: Remove uses of changequote altogether.
64950         Thanks to Akim for explaining.
64951
64952 2000-01-17  Paul Eggert  <eggert@twinsun.com>
64953
64954         * lib/nanosleep.c (nanosleep):
64955         Don't use SA_INTERRUPT to decide whether to call sigaction, as
64956         POSIX.1 doesn't require SA_INTERRUPT and some systems
64957         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
64958         it's been part of POSIX.1 since day 1 (in 1988).
64959
64960 2000-01-17  Jim Meyering  <meyering@lucent.com>
64961
64962         * lib/interlock: Remove unused file.  Reported by François Pinard.
64963
64964 2000-01-16  Paul Eggert  <eggert@twinsun.com>
64965
64966         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
64967         alert, backslash, formfeed, and vertical tab unnecessarily in
64968         shell quoting style.
64969
64970 2000-01-16  Jim Meyering  <meyering@lucent.com>
64971
64972         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
64973         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
64974         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
64975         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
64976
64977 2000-01-16  Jim Meyering  <meyering@lucent.com>
64978
64979         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
64980         because the latter didn't work.
64981
64982 2000-01-15  Jim Meyering  <meyering@lucent.com>
64983
64984         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
64985         (AC_REPLACE_FUNCS): Add memcpy and memset.
64986         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
64987         Add strpbrk.
64988         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
64989
64990 2000-01-12  Jim Meyering  <meyering@lucent.com>
64991
64992         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
64993         (jm_PREREQ): Use it.
64994         (jm_PREREQ_READUTMP): New macro.
64995         (jm_PREREQ): Use it.
64996
64997 2000-01-11  Paul Eggert  <eggert@twinsun.com>
64998
64999         Quote multibyte characters correctly.
65000         * m4/c-bs-a.m4: New file.
65001         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
65002         (jm_PREREQ): Use it.
65003
65004 2000-01-11  Paul Eggert  <eggert@twinsun.com>
65005
65006         * m4/uintmax_t.m4: Port to autoconf 2.13.
65007
65008 2000-01-08  Jim Meyering  <meyering@ascend.com>
65009
65010         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
65011         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
65012
65013 2000-01-04  Jim Meyering  <meyering@ascend.com>
65014
65015         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
65016         jm_STRUCT_DIRENT_D_TYPE.
65017         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
65018         jm_STRUCT_DIRENT_D_INO.
65019         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
65020         jm_STRUCT_UTIMBUF.
65021         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
65022         renamings.
65023         * m4/utime.m4: Likewise.
65024
65025         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
65026         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
65027
65028 2000-01-03  Paul Eggert  <eggert@twinsun.com>
65029
65030         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
65031         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
65032
65033 2000-01-02  Jim Meyering  <meyering@ascend.com>
65034
65035         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
65036         remember if this is necessary.
65037
65038 1999-12-26  Jim Meyering  <meyering@ascend.com>
65039
65040         * m4/jm-macros.m4: Use it here.
65041         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
65042
65043 1999-12-23  Jim Meyering  <meyering@ascend.com>
65044
65045         * m4/jm-macros.m4: Check for clock_gettime (moved from
65046         fileutils/configure.in)
65047         Check for gettimeofday.
65048
65049 1999-12-20  Jim Meyering  <meyering@ascend.com>
65050
65051         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
65052         autoconf-2.14a-1999-12-20.
65053
65054 1999-12-19  Jim Meyering  <meyering@ascend.com>
65055
65056         * m4/lstat-slash.m4: New file.
65057         * m4/jm-macros.m4: Use the new macro:
65058         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
65059
65060 1999-12-07  Jim Meyering  <meyering@ascend.com>
65061
65062         * m4/perl.m4: Require that File::Compare be available, too.
65063         Too many systems seem to lack it.
65064
65065         * m4/strftime.m4: Add checks for most of the cpp macros tested in
65066         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
65067
65068 1999-11-18  Paul Eggert  <eggert@twinsun.com>
65069
65070         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
65071         problem with the QNX 4.25 shell, which doesn't propagate exit
65072         status of failed commands inside shell assignments.
65073
65074 1999-11-17  Jim Meyering  <meyering@ascend.com>
65075
65076         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
65077
65078 1999-11-07  Jim Meyering  <meyering@ascend.com>
65079
65080         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
65081
65082 1999-11-06  Jim Meyering  <meyering@ascend.com>
65083
65084         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
65085         * m4/jm-macros.m4 (jm_MACROS): Use it here.
65086
65087 1999-11-05  Jim Meyering  <meyering@ascend.com>
65088
65089         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
65090         configure.in of textutils, fileutils, and sh-utils into this one
65091         (shared between those packages) file.
65092         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
65093         AC_STRUCT_ST_BLKSIZE.
65094
65095 1999-11-03  Jim Meyering  <meyering@ascend.com>
65096
65097         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
65098         of AC_CHECK_TYPE checks includes unistd.h.
65099         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
65100         Suggestion from Akim Demaille.
65101
65102 1999-10-30  Jim Meyering  <meyering@ascend.com>
65103
65104         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
65105         m4-quoted string.
65106         * m4/ls-mntd-fs.m4: Likewise.
65107         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
65108         * m4/jm-winsz1.m4: Likewise.
65109
65110         * m4/const.m4: Remove file, since the fix made it into the experimental
65111         version of autoconf.
65112         * m4/mktime.m4: Likewise.
65113
65114         * m4/check-type.m4: Remove file, now that the latest version of
65115         AC_CHECK_TYPE takes a third arg to specify additional #includes.
65116
65117         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
65118         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
65119         AC_CHECK_TYPE.
65120
65121 1999-10-04  Jim Meyering  <meyering@ascend.com>
65122
65123         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
65124
65125 1999-09-22  Paul Eggert  <eggert@twinsun.com>
65126
65127         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
65128         2.95.1 bug with HP-UX 10.20.
65129
65130 1999-09-17  Jim Meyering  <meyering@ascend.com>
65131
65132         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
65133         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
65134         due to missing strdup (against sh-utils-2.0).
65135
65136 1999-08-29  Jim Meyering  <meyering@ascend.com>
65137
65138         * m4/jm-macros.m4: Require jm_BISON.
65139         * m4/bison.m4: New file.
65140
65141 1999-08-17  Paul Eggert  <eggert@twinsun.com>
65142
65143         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
65144         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
65145
65146 1999-08-05  Jim Meyering  <meyering@ascend.com>
65147
65148         * m4/getline.m4: Rename test file from conftestdata to conftest.data
65149         to avoid conflicts with `conftest' on 8+3 filesystems.
65150         Suggestion from Eli Zaretskii.
65151
65152 1999-08-04  Jim Meyering  <meyering@ascend.com>
65153
65154         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
65155         fileutils and sh-utils (textutils's getline test was inadequate).
65156         (AM_FUNC_GETLINE): Run this test.
65157         (AC_CHECK_FUNCS): Check for getdelim.
65158         Reported by Bob Proulx.
65159
65160 1999-08-02  Jim Meyering  <meyering@ascend.com>
65161
65162         * m4/jm-macros.m4: Add a comment.
65163
65164 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65165
65166         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
65167         <inttypes.h> defines strtoumax as a macro (and not as a
65168         function).
65169
65170 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65171
65172         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
65173         that we can shift, multiply and divide unsigned long long
65174         values; Ultrix cc can't do it.
65175
65176 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65177
65178         * m4/mktime.m4: New file, which is a preview of what should appear
65179         in the next public autoconf release.
65180
65181 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65182
65183         * m4/lfs.m4: Remove this file.
65184         * m4/largefile.m4: New file.  It contains the old contents of
65185         lfs.m4, except that all names with prefix AC_LFS have been
65186         changed to use the prefix AC_SYS_LARGEFILE instead, to be
65187         compatible with future autoconf versions.  Also, some minor m4
65188         quoting problems have been fixed.
65189
65190 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65191
65192         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
65193         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
65194         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
65195         and simplify the shell code.
65196
65197 1999-08-01  Jim Meyering  <meyering@ascend.com>
65198
65199         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
65200         m4.
65201
65202 1999-07-20  Jim Meyering  <meyering@ascend.com>
65203
65204         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
65205
65206 1999-07-15  Jim Meyering  <meyering@ascend.com>
65207
65208         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
65209
65210 1999-05-22  Jim Meyering  <meyering@ascend.com>
65211
65212         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
65213
65214 1999-05-20  Jim Meyering  <meyering@ascend.com>
65215
65216         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
65217         Add a colon after each `then' in case $4 is empty.
65218
65219 1999-05-16  Jim Meyering  <meyering@ascend.com>
65220
65221         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
65222
65223 1999-05-10  Jim Meyering  <meyering@ascend.com>
65224
65225         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
65226
65227         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
65228         AC_FUNC_MKTIME.
65229
65230 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
65231
65232         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
65233
65234 1999-05-04  Paul Eggert  <eggert@twinsun.com>
65235
65236         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
65237         not CPPFLAGS, so that linking works correctly in IRIX.
65238
65239 1999-04-30  Paul Eggert  <eggert@twinsun.com>
65240
65241         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
65242
65243 1999-04-20  Paul Eggert  <eggert@twinsun.com>
65244
65245         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
65246         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
65247         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
65248         jm_AC_TYPE_UNSIGNED_LONG_LONG.
65249         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
65250
65251         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
65252
65253 1999-04-20  Jim Meyering  <meyering@ascend.com>
65254
65255         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
65256         AC_REPLACE xstroull if necessary.  From Paul Eggert.
65257         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
65258
65259 1999-04-18  Jim Meyering  <meyering@ascend.com>
65260
65261         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
65262         * m4/jm-macros.m4: Use it.
65263
65264 1999-04-06  Jim Meyering  <meyering@ascend.com>
65265
65266         * m4/strftime.m4: Remove test for %f.
65267
65268 1999-03-29  Jim Meyering  <meyering@ascend.com>
65269
65270         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
65271         superset of the AC_TYPE_* checks in the textutils, fileutils,
65272         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
65273         AC_TYPE_PID_T.
65274
65275 1999-03-28  Jim Meyering  <meyering@ascend.com>
65276
65277         * m4/jm-macros.m4: Define GNU_PACKAGE here.
65278         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
65279         replaced e.g., in the *.sh files of the sh-utils.
65280
65281 1999-03-20  Jim Meyering  <meyering@ascend.com>
65282
65283         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
65284         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
65285         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
65286
65287 1999-03-19  Jim Meyering  <meyering@ascend.com>
65288
65289         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
65290
65291 1999-03-12  Jim Meyering  <meyering@ascend.com>
65292
65293         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
65294
65295 1999-03-07  Jim Meyering  <meyering@ascend.com>
65296
65297         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
65298         declared.
65299
65300 1999-02-17  Jim Meyering  <meyering@ascend.com>
65301
65302         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
65303         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
65304
65305 1999-02-07  Jim Meyering  <meyering@ascend.com>
65306
65307         * m4/group-member.m4: New file -- extracted from sh-utils'
65308         configure.in.
65309
65310         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
65311         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
65312
65313 1999-02-06  Jim Meyering  <meyering@ascend.com>
65314
65315         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
65316         * m4/fnmatch.m4: Likewise.
65317         * m4/getgroups.m4: Likewise.
65318         * m4/lstat.m4: Likewise.
65319         * m4/malloc.m4: Likewise.
65320         * m4/putenv.m4: Likewise.
65321         * m4/realloc.m4: Likewise.
65322         * m4/regex.m4: Likewise.
65323         * m4/stat.m4: Likewise.
65324         * m4/strftime.m4: Likewise.
65325         Suggestion from Alain Magloire.
65326
65327         * m4/chown.m4: Use `.$ac_objext', not `.o'.
65328         * m4/fnmatch.m4: Likewise.
65329         * m4/getgroups.m4: Likewise.
65330         * m4/getline.m4: Likewise.
65331         * m4/lstat.m4: Likewise.
65332         * m4/malloc.m4: Likewise.
65333         * m4/memcmp.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/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
65342         an argument.
65343
65344         * m4/regex.m4: Add a run-time Test for proper operation of
65345         re_compile_pattern.
65346
65347 1999-01-31  Jim Meyering  <meyering@ascend.com>
65348
65349         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
65350
65351 1999-01-30  Jim Meyering  <meyering@ascend.com>
65352
65353         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
65354
65355         * m4/jm-mktime.m4: Make this a wrapper around the official
65356         AM_FUNC_MKTIME rather than my private copy, now that the official one
65357         is up to date.
65358         * m4/mktime.m4: Remove file.
65359
65360         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
65361         * m4/uptime.m4: Likewise.
65362         * m4/uintmax_t.m4: Likewise.
65363
65364 1999-01-28  Jim Meyering  <meyering@ascend.com>
65365
65366         * m4/jm-macros.m4: Use jm_AFS.
65367         * m4/afs.m4: New file (from fileutils' configure.in).
65368
65369         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
65370         * m4/chown.m4: Likewise.
65371         * m4/d-ino.m4: Likewise.
65372         * m4/d-type.m4: Likewise.
65373         * m4/fnmatch.m4: Likewise.
65374         * m4/getgroups.m4: Likewise.
65375         * m4/gettext.m4: Likewise.
65376         * m4/jm-mktime.m4: Likewise.
65377         * m4/jm-winsz2.m4: Likewise.
65378         * m4/lcmessage.m4: Likewise.
65379         * m4/ls-mntd-fs.m4: Likewise.
65380         * m4/malloc.m4: Likewise.
65381         * m4/memcmp.m4: Likewise.
65382         * m4/putenv.m4: Likewise.
65383         * m4/realloc.m4: Likewise.
65384         * m4/st_mtim.m4: Likewise.
65385         * m4/strftime.m4: Likewise.
65386
65387 1999-01-16  Jim Meyering  <meyering@ascend.com>
65388
65389         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
65390         (ARGMATCH_DIE_DECL): Define.
65391
65392 1999-01-12  Jim Meyering  <meyering@ascend.com>
65393
65394         * m4/Makefile.am.in: Rewrite to avoid using fmt.
65395         Reported by Lars Hecking.
65396
65397 1999-01-10  Jim Meyering  <meyering@ascend.com>
65398
65399         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
65400         gross kludge.
65401         * m4/inttypes_h.m4: Likewise.
65402         * m4/lstat.m4: Likewise.
65403         * m4/malloc.m4: Likewise.
65404         * m4/readdir.m4: Likewise.
65405         * m4/realloc.m4: Likewise.
65406         * m4/st_dm_mode.m4: Likewise.
65407         * m4/stat.m4: Likewise.
65408         * m4/utimbuf.m4: Likewise.
65409         * m4/utimes.m4: Likewise.
65410
65411         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
65412         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
65413         comments in config.h.in are meaningful.
65414
65415         * m4/jm-macros.m4: Require autoconf-2.13 here.
65416
65417         * m4/regex.m4: By default, don't use the included regex.c on systems
65418         with glibc 2.  Suggestion from Uli Drepper.
65419
65420 1999-01-02  Jim Meyering  <meyering@ascend.com>
65421
65422         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
65423
65424 1998-12-18  Jim Meyering  <meyering@ascend.com>
65425
65426         * m4/Makefile.am.in (Makefile.am): Simplify rule.
65427         Based on a suggestion from Lars Hecking.
65428
65429 1998-11-16  Paul Eggert  <eggert@twinsun.com>
65430
65431         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
65432
65433 1998-11-16  Jim Meyering  <meyering@ascend.com>
65434
65435         * m4/lfs.m4: Double-quote the `uname...` expression.
65436
65437 1998-11-14  Jim Meyering  <meyering@ascend.com>
65438
65439         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
65440         * m4/stat.m4: Likewise.
65441
65442 1998-11-03  Jim Meyering  <meyering@ascend.com>
65443
65444         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
65445         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
65446
65447 1998-10-18  Jim Meyering  <meyering@ascend.com>
65448
65449         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
65450
65451 1998-10-17  Jim Meyering  <meyering@ascend.com>
65452
65453         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
65454         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
65455         calls for those previously hard-coded headers.  Instead, take a new
65456         parameter.
65457         (jm_CHECK_DECLARATIONS): Reflect interface change.
65458         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
65459         (jm_CHECK_DECL_LOCALTIME_R): New macro.
65460
65461         * m4/mktime.m4: Test for spring-forward gap before long-running test.
65462
65463 1998-10-14  Jim Meyering  <meyering@ascend.com>
65464
65465         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
65466         instead of "TZ=America/Vancouver".  From Paul Eggert.
65467
65468 1998-10-11  Jim Meyering  <meyering@ascend.com>
65469
65470         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
65471         This adds a test for a recently added compatibility fix for mktime.c.
65472         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
65473
65474 1998-09-27  Jim Meyering  <meyering@ascend.com>
65475
65476         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
65477
65478         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
65479         ../configure.in, including a change from Gordon Matzigkeit to allow
65480         cross-compiling for the Hurd.
65481
65482         * m4/glibc.m4: New file/macro to test for the GNU C Library
65483         versions 1 and 2.  From Gordon Matzigkeit.
65484         Indent.
65485
65486 1998-09-21  Jim Meyering  <meyering@ascend.com>
65487
65488         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
65489
65490 1998-08-18  Paul Eggert  <eggert@twinsun.com>
65491
65492         Port nanosecond-resolution times to UnixWare 2.1.2 and
65493         pedantic Solaris 2.6.
65494
65495         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
65496         AC_STRUCT_ST_MTIM.
65497         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
65498         Generate name of ns member, instead of just 1 or undef.
65499         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
65500
65501 1998-08-15  Jim Meyering  <meyering@ascend.com>
65502
65503         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
65504         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
65505         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
65506         instead of jm_TYPE_SSIZE_T.
65507
65508 1998-08-12  Jim Meyering  <meyering@ascend.com>
65509
65510         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
65511
65512 1998-08-02  Jim Meyering  <meyering@ascend.com>
65513
65514         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
65515         in acconfig.h manually.
65516
65517 1998-07-31  Paul Eggert  <eggert@twinsun.com>
65518
65519         * m4/st_mtim.m4: New file.
65520
65521 1998-07-28  Jim Meyering  <meyering@ascend.com>
65522
65523         * m4/utimes.m4: Undef stat.
65524
65525 1998-07-25  Jim Meyering  <meyering@ascend.com>
65526
65527         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
65528         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
65529
65530 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
65531
65532         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
65533         uid and gid actually remain unchanged.
65534
65535 1998-07-07  Jim Meyering  <meyering@ascend.com>
65536
65537         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
65538
65539 1998-07-04  Jim Meyering  <meyering@ascend.com>
65540
65541         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
65542         to prove that this macro can be used in packages without regex.c.
65543
65544 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
65545
65546         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
65547         is to be used.
65548
65549 1998-07-03  Jim Meyering  <meyering@ascend.com>
65550
65551         * m4/gettext.m4: Add -lintl if it's found to be necessary.
65552
65553         * m4/gettext.m4: New file -- from gettext-0.10.35.
65554         * m4/lcmessage.m4: Likewise.
65555         * m4/progtest.m4: Likewise.
65556
65557         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
65558         * m4/jm-macros.m4: Require the new macro.
65559
65560 1998-06-29  Jim Meyering  <meyering@ascend.com>
65561
65562         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
65563         for the definition of NGROUPS (used in a system header included
65564         by sys/mount.h).
65565
65566 1998-06-28  Jim Meyering  <meyering@ascend.com>
65567
65568         * m4/ls-mntd-fs.m4: New file.
65569         * m4/fstypename.m4: New file.
65570
65571         * m4/jm-macros.m4: Require the new macro.
65572         * m4/jm-glibc-io.m4: New file.
65573
65574 1998-05-19  Jim Meyering  <meyering@ascend.com>
65575
65576         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
65577         * m4/lchown.m4: New file.
65578
65579         * m4/Makefile.am.in: New file.
65580         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
65581
65582 1998-05-14  Jim Meyering  <meyering@ascend.com>
65583
65584         * m4/Makefile.am (EXTRA_DIST): Add them.
65585         * m4/jm-macros.m4: New file.
65586         * m4/utimbuf.m4: New file.
65587
65588 1998-05-12  Jim Meyering  <meyering@ascend.com>
65589
65590         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
65591
65592 1998-05-11  Jim Meyering  <meyering@ascend.com>
65593
65594         * m4/isc-posix.m4: New file.
65595
65596 1998-05-10  Jim Meyering  <meyering@ascend.com>
65597
65598         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
65599
65600 1998-05-09  Jim Meyering  <meyering@ascend.com>
65601
65602         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
65603         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
65604         with automake.
65605
65606         * m4/ssize_t.m4: New file.
65607         * m4/mktime.m4: Remove file -- the new automake has this now.
65608
65609 1998-04-26  Jim Meyering  <meyering@ascend.com>
65610
65611         * m4/assert.m4: New file.
65612         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
65613
65614 1998-04-05  Jim Meyering  <meyering@ascend.com>
65615
65616         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
65617         (jm_PREREQ): Use it here.
65618
65619 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
65620
65621         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
65622         in acconfig.h.
65623
65624 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
65625
65626         * m4/prereq.m4: New file.
65627         * m4/error.m4: New file.
65628         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
65629
65630 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
65631
65632         * m4/getline.m4: Don't set am_cv_func_working_getline before the
65633         cache-check for the same variable -- that defeated the purpose of
65634         the test; the test program was never run.  This was a problem only
65635         on systems with losing getline functions -- HP-UX 10.20 is one.
65636         Reported by Bjorn Helgaas.
65637
65638 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
65639
65640         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
65641
65642 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
65643
65644         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
65645
65646         * m4/const.m4: New file.  Use an initializer in this declaration
65647         typedef int charset[2]; const charset x;
65648         Reported by Bob Glickstein.
65649
65650 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
65651
65652         * m4/chown.m4: Fix reversed types on -1 args to chown.
65653         From Kaveh Ghazi.
65654
65655 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
65656
65657         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
65658         Add lseek and memchr.
65659
65660         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
65661         T.E.Dickey <dickey@clark.net> said that some older preprocessors
65662         have a 20-character limit on names.
65663
65664 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
65665
65666         * m4/inttypes_h.m4: New file.
65667         * m4/uintmax_t.m4: New file.
65668         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
65669
65670
65671         -----
65672
65673         Local Variables:
65674         coding: utf-8
65675         End:
65676
65677         Copyright (C) 1997-2010 Free Software Foundation, Inc.
65678
65679         Copying and distribution of this file, with or without
65680         modification, are permitted provided the copyright notice
65681         and this notice are preserved.